feat(web/claw): list every key and control its dispatch

The sidebar listed only the resident prefixes. The phone's status keys,
the coding jobs' `job:<instance>#<id>` keys and the forge threads were
on the wire and invisible in the client: an operator watching a job fill
a queue had no row to look at, let alone act on. *Others* now carries
the whole inventory, folded to the working count as before and every row
listed unfolded. A row the chat cannot open is a control row — the
resident prefixes are the only ones with a transcript — so it renders
as a disabled entry rather than a dead click-through, and it keeps the
status dot, the held badge and the depth that every row has.

Beside the delete button, on hover: `hold` posts the pause and the row
badges `held` in the warn tone, `run` posts the resume, `stop` posts the
abort. `stop` is disabled when there is neither a live turn nor queued
work, so an idle row sends nothing instead of collecting a no-op
answer. What the abort did reads in the notice — the turn stopped, N
queued items dropped, or nothing running — straight from the answer's
`cut` and `dropped`.

An aborted turn renders in the warn tone too: cut by the operator, not
failed, and unlike a steered turn nothing replaces it. The About page's
route list gains the three, and the README's inventory and delete
paragraphs follow the fold and the controls.

nuxt typecheck and build pass; checked against a mock daemon on a
seeded store, folded and unfolded, with a held row, a queued job and an
aborted turn.
This commit is contained in:
vhaudiquet committed 2026-11-23 22:38:26 +01:00
1 parent 38292b6344
commit dc269472eb
6 files changed
+224 -16

No files matched your search

@@ -14,6 +14,9 @@ const routes = [
{ method: 'GET', path: '/v1/sessions', note: 'the dispatch-key inventory' },
{ method: 'POST', path: '/v1/sessions', note: 'create an interactive session from a name' },
{ method: 'DELETE', path: '/v1/sessions/{key}', note: 'delete a session and its turn history' },
{ method: 'POST', path: '/v1/sessions/{key}/pause', note: "hold a key's dispatch" },
{ method: 'POST', path: '/v1/sessions/{key}/resume', note: 'lift the hold' },
{ method: 'POST', path: '/v1/sessions/{key}/abort', note: 'cut the live turn, or drop the queue' },
{ method: 'POST', path: '/v1/sessions/{key}/messages', note: 'message ingest, 202 + stream' },
{ method: 'GET', path: '/v1/sessions/{key}/events', note: 'the turn-event stream (SSE)' },
{ method: 'POST', path: '/v1/consents/{id}', note: 'answer a consent (a secret or a grant)' },