feat(web/claw): open every key, read-only when it has no stream
android / debug (push) Successful in 2m29s
ci / test (push) Successful in 42s
ci / docker (push) Successful in 2m0s
ci / web (push) Successful in 12s
android / release (push) Successful in 2m17s
ci / checks (push) Successful in 1m13s
ci / chart (push) Successful in 6s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 2m0s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 13s
ci / publish-edge-chart (push) Successful in 3s
android / debug (push) Successful in 2m29s
ci / test (push) Successful in 42s
ci / docker (push) Successful in 2m0s
ci / web (push) Successful in 12s
android / release (push) Successful in 2m17s
ci / checks (push) Successful in 1m13s
ci / chart (push) Successful in 6s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 2m0s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 13s
ci / publish-edge-chart (push) Successful in 3s
Every row in the sidebar was disabled unless its key started with a resident prefix, so a forge thread or a finished job could only be paused or aborted, never read. Now every row opens. A resident key subscribes as before. Any other key loads the snapshot its history route serves, which carries `read_only`; the header says `snapshot` instead of claiming a live stream, and the composer becomes a line saying why there is none. The mirror is the same one the stream feeds, so paging, outcomes, and the turn renderer come for free. That view has no stream to tell it a dispatch ran, so the inventory's revision drives reloads: a poll that sees it move fetches the newest page again, and nothing else does, so the pages a reader walked back to survive polling. `phone:` joins the client's resident prefixes, which the daemon already carried: those rows were dead ends that refused the message the phone client sends every day. The user label follows the key: a chat or phone key's rows are the human's, any other key's are the prompt its dispatch started with.
This commit is contained in:
1 parent
8d7dc7c4c7
commit
1a1ace014a
5 files changed
+153
-49
No files matched your search
+12
-4
@@ -130,11 +130,19 @@ Two consequences worth knowing before changing this code:
|
||||
(`[A-Za-z0-9._-]{1,64}`), switches the chat to the new key, and
|
||||
lets 400/409 land in the error banner. The interactive prefixes
|
||||
(`interactive:`) list above the fold; *others* holds the whole rest
|
||||
of the inventory — `task:`, `calendar:`, the phone's status keys
|
||||
of the inventory — `task:`, `calendar:`, the phone's keys
|
||||
(`phone:…`), the coding jobs' `job:<instance>#<id>` keys and forge
|
||||
keys. Only the resident prefixes have a transcript, so a row in
|
||||
*others* for anything else is a control row: no click-through, but
|
||||
the same pause/resume/abort and delete as every other row.
|
||||
keys.
|
||||
- **Every row opens, and some open read-only.** A resident key
|
||||
(`interactive:`, `task:`, `phone:`, `calendar:`) has a live stream,
|
||||
and the chat resets its mirror whenever that stream reopens. A key
|
||||
outside them has none: its dispatch runs outside the hub. The panel
|
||||
fetches `GET /v1/sessions/{key}/history` instead, which serves the
|
||||
session the engine checkpointed, and shows the turns with a
|
||||
`snapshot` status and the composer replaced by a line saying why.
|
||||
The inventory's `revision` is that view's only reload signal: a poll
|
||||
that sees it move fetches the newest page again, so an older page
|
||||
the reader walked back to survives polling until a turn runs.
|
||||
- **Deleting a session is a decision, not a click.** The row's delete
|
||||
button only names the key; the shell's dialog spells out that the
|
||||
turn history goes with it, and `DELETE /v1/sessions/{key}` runs on
|
||||
|
||||
Reference in new issue
Block a user