App: open a chat with one round trip
The thread controller asks chat_subscribe to carry the newest history page (history: true, limit 200) and applies it from the reply; a server that leaves the page out is asked with chat_messages as before. Deltas arriving before the reply are recorded from the start of the subscribe, and settle against the page's live_seq exactly as for a separate read. Also documents the subscribe history field and benchmarks the indexed page at limits 20 and 100. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -684,6 +684,12 @@ sessions pipeline runs create. The protocol types are:
|
||||
`prompts`): the prompts the server still holds for the session, each with
|
||||
`operation_id`, `message_id`, `native_message_id`, `text`, `client`,
|
||||
`attachments` and `queued_at`, so a reloaded client draws them as queued.
|
||||
A body with `history: true` (and `limit`) asks the reply to also carry the
|
||||
newest history page — `chat_history`, `chat_messages` and `chat_turn_diffs`,
|
||||
exactly as a `chat_messages` reply — read once the subscription is attached,
|
||||
so opening a chat takes one round trip. A server that does not support it,
|
||||
or whose read failed, leaves the page out and the client asks with
|
||||
`chat_messages`.
|
||||
- `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
|
||||
|
||||
Reference in New Issue
Block a user