Public: anyone can read this; the crew can change it.

Presence works on every repository page: a per-reader together frame (#16415) #16470

opened this

Check · Review · Land · Live — Pushed since the last review. Next: reviewer, pushed since the last review.

Ready to land

0.7.663 shipped presence but two people on trevato/voxel never saw each other: the together line and its stream seat existed only on a plain repository's code home and in Talk's pane, and voxel is an app, so neither its app page, files nor pulls took a seat.

Notes · 12 files · +169 −70

look green — its preview answered, ready for a look deploy f55f1ee

Check passeddeploy f55f1ee

Website spec: 25 findings (report only)

Look

10 pages beside main · 0 new to this pull

/apps

main

at d83448f ·

this pull

In the dark

main

at d83448f ·

this pull

at f55f1ee ·

/changelog

main

at d83448f ·

this pull

In the dark

main

at d83448f ·

this pull

at f55f1ee ·

/docs

main

at d83448f ·

this pull

In the dark

main

at d83448f ·

this pull

at f55f1ee ·

/explore

main

at d83448f ·

this pull

In the dark

main

at d83448f ·

this pull

at f55f1ee ·

/looks/failed

main

at d83448f ·

this pull

In the dark

main

at d83448f ·

this pull

at f55f1ee ·

/looks/missing

main

at d83448f ·

this pull

In the dark

main

at d83448f ·

this pull

at f55f1ee ·

/nope/nothing

main

at d83448f ·

this pull

In the dark

main

at d83448f ·

this pull

at f55f1ee ·

/notes

main

at d83448f ·

this pull

In the dark

main

at d83448f ·

this pull

at f55f1ee ·

/review

main

at d83448f ·

this pull

In the dark

main

at d83448f ·

this pull

at f55f1ee ·

/security

main

at d83448f ·

this pull

In the dark

main

at d83448f ·

this pull

at f55f1ee ·

opened this

0.7.663 shipped presence but two people on trevato/voxel never saw each other: the together line and its stream seat existed only on a plain repository's code home and in Talk's pane, and voxel is an app, so neither its app page, files nor pulls took a seat. Every repository page now holds an empty slot for a signed-in reader (no query at render); the stream sends a together frame with the line rendered for that reader alone (names they may see, counts otherwise) on open and whenever someone comes or goes, replacing the payload-less presence.changed. A mirrored pull is said by its origin author, never Your change to the mirror's keeper. Probe: two real accounts on production, each must hear the other.

🤖 Generated with Claude Code

commented

<!-- look-pages 89a7d256de9a --> Look pages for 89a7d25, from the gate:

  • look pages (named): this pull changes src/web/chrome.ts, src/web/client.ts, src/web/pages/repo.ts; a commit names /talk
Changes requested — before the latest push

No security finding: the frame's HTML is rendered server-side per reader, escaped, and gated by canRead. Two things to fix, both about the page being drawn.

  1. With JavaScript off, the line is gone from every repository page. The repository home used to server-render who is here, what was done lately and the landing. Now every page holds an empty slot that only the stream fills. DESIGN.md requires everything to work with JS off, and the first paint should be server-rendered. Render the line into the slot at draw time, or at least lately and landed, which need no live data. The stream then only updates it. The change says drawing reads nothing for it; that is a regression, not a gain.
  2. The slot starts empty and fills after the stream opens. On a repo with a line, every page's content jumps down when it arrives. That is layout shift on every repository page. Server-rendering the first paint (point 1) removes it. Otherwise reserve the space.

Smaller: the new together client handler (src/web/client.ts, the source.addEventListener('together'...) block) has no test. The server frame is tested, but nothing proves the browser swaps it into #together only when data-presence matches. Add one beside test/talk-live-pane.test.ts. Also src/http/sse.ts now imports from src/web/, which inverts the layering. Pass the renderer in, or move togetherLine out of web/.

The terminal door is not covered by this diff. Confirm the TUI repository screen shows the same line, or say why not.

commented

<!-- look-pages f55f1ee40a05 --> Look pages for f55f1ee, from the gate:

  • look pages (named): this pull changes src/web/chrome.ts, src/web/client.ts, src/web/pages/repo.ts; a commit names /talk
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs