Pages kept current by polling: every three seconds they fetched /api/version (the queue's change counter), then /pending to replace the list, or reloaded a request's page. Split out of #22, where the progress work will build on it.
One stream. Each page follows /events, a stream of Server-Sent Events. The main page gets its pending list (#pending); a request's page gets the request (#request), heading included.
Regions, as HTML. Each morph event is a whole element with its id, rendered by the page's own templates. Agent-supplied text is escaped by them only, never in the browser, and an event is never empty (browsers drop those).
Morphing. The page script morphs each region in with idiomorph 0.8.0, vendored as assets/idiomorph.js (0BSD; the npm package's dist/idiomorph.js, unchanged, with its integrity hash in the header). Open details, the focus and typing stay, so a request's page no longer reloads when it's answered.
Catching up. A region comes when the stream starts and whenever it changes, at most once a second, so a page catches up when the browser reconnects. Signing out ends the stream.
/api/version, /pending and Queue::version are gone. The CSP is unchanged: idiomorph needs no eval or inline styles.
Checked:
nix flake check passes; the stream has unit tests (the main page's list as it changes, a request's page only when its request does, signing out).
The morph in jsdom: an open details section stays open, typing in a focused input stays, and new content arrives.
Not checked: a browser against a live broker (signing in needs a passkey).
Pages kept current by polling: every three seconds they fetched `/api/version` (the queue's change counter), then `/pending` to replace the list, or reloaded a request's page. Split out of #22, where the progress work will build on it.
- **One stream.** Each page follows `/events`, a stream of Server-Sent Events. The main page gets its pending list (`#pending`); a request's page gets the request (`#request`), heading included.
- **Regions, as HTML.** Each `morph` event is a whole element with its `id`, rendered by the page's own templates. Agent-supplied text is escaped by them only, never in the browser, and an event is never empty (browsers drop those).
- **Morphing.** The page script morphs each region in with [idiomorph](https://github.com/bigskysoftware/idiomorph) 0.8.0, vendored as `assets/idiomorph.js` (0BSD; the npm package's `dist/idiomorph.js`, unchanged, with its integrity hash in the header). Open details, the focus and typing stay, so a request's page no longer reloads when it's answered.
- **Catching up.** A region comes when the stream starts and whenever it changes, at most once a second, so a page catches up when the browser reconnects. Signing out ends the stream.
- `/api/version`, `/pending` and `Queue::version` are gone. The CSP is unchanged: idiomorph needs no `eval` or inline styles.
Checked:
- `nix flake check` passes; the stream has unit tests (the main page's list as it changes, a request's page only when its request does, signing out).
- The morph in jsdom: an open details section stays open, typing in a focused input stays, and new content arrives.
Not checked: a browser against a live broker (signing in needs a passkey).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Pages polled `/api/version` every three seconds, then fetched the
pending list and replaced it, or reloaded a request's page. Now each
page follows one stream from `/events`, whose `morph` events carry a
region of the page: the pending list, or the request, as a whole
element with its `id`, rendered by the page's own templates. The page
script morphs it into the page with idiomorph, vendored, so open
details, the focus and typing stay.
The stream starts with the current region, so a page catches up when
the browser reconnects, and it ends when the approver signs out.
`/api/version` and `/pending` are gone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Pages kept current by polling: every three seconds they fetched
/api/version(the queue's change counter), then/pendingto replace the list, or reloaded a request's page. Split out of #22, where the progress work will build on it./events, a stream of Server-Sent Events. The main page gets its pending list (#pending); a request's page gets the request (#request), heading included.morphevent is a whole element with itsid, rendered by the page's own templates. Agent-supplied text is escaped by them only, never in the browser, and an event is never empty (browsers drop those).assets/idiomorph.js(0BSD; the npm package'sdist/idiomorph.js, unchanged, with its integrity hash in the header). Open details, the focus and typing stay, so a request's page no longer reloads when it's answered./api/version,/pendingandQueue::versionare gone. The CSP is unchanged: idiomorph needs noevalor inline styles.Checked:
nix flake checkpasses; the stream has unit tests (the main page's list as it changes, a request's page only when its request does, signing out).Not checked: a browser against a live broker (signing in needs a passkey).
🤖 Generated with Claude Code
b43338e805toa7e4a02470