Merge branch 'ws-delivery'

This commit is contained in:
2026-11-07 01:42:55 +00:00
14 changed files with 97 additions and 21 deletions
+4
View File
@@ -6,6 +6,10 @@ when the `claude` CLI is installed. The selected backend is stored on the
operator-session row and returned as `backend` on every `chat_sessions` row, so a
restart does not have to guess from the session id.
When a `chat_prompt` is accepted during a running turn, the reply sets
`chat_steered: true` when the backend hands it to that turn; otherwise it sets
`chat_queued: true` while the prompt waits for the turn to finish.
## Restarts keep sessions running
A server restart or stop does not stop chat sessions. Only an operator action
+2 -1
View File
@@ -555,7 +555,8 @@ sessions pipeline runs create. The protocol types are:
- `chat_prompt` may come from any client. A prompt whose session already has a turn
in flight is handed to that turn at once when the harness accepts mid-turn input
(Claude Code reads it from stdin at its next step; Codex takes it with
`turn/steer` pinned to the active turn) and is acknowledged as sent. Otherwise
`turn/steer` pinned to the active turn) and is acknowledged with
`chat_steered: true`. Otherwise
(OpenCode, or a turn that ended meanwhile) it is written to the session's durable
server-side queue (bounded, currently 8) and acknowledged with
`chat_queued: true`; the agent never receives two interleaved turns. Queued