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
+1
View File
@@ -29,6 +29,7 @@ func chatSamples() []struct {
{"query", ChatQuery{SessionID: "ses_1", Limit: 50}},
{"prompt", ChatPromptRequest{SessionID: "ses_1", Text: "hello", Model: "m", Agent: "build", Files: []string{"file:///tmp/a.png"}, Client: "Pixel 9 Pro XL"}},
{"prompt_queued_ack", Message{Type: ChatPrompt, ID: "a1", ChatQueued: true}},
{"prompt_steered_ack", Message{Type: ChatPrompt, ID: "a2", ChatSteered: true}},
{"subscribe", ChatQuery{SessionID: "ses_1"}},
{"event_user", ChatEventFrame{
SessionID: "ses_1", MessageID: "usr_1", Kind: ChatEventUser, Client: "Pixel 10 Pro Fold",
+3
View File
@@ -246,6 +246,9 @@ type Message struct {
// accepted into the session's queue instead of being sent immediately.
ChatSubscribe *ChatQuery `json:"chat_subscribe,omitempty"`
ChatQueued bool `json:"chat_queued,omitempty"`
// ChatSteered means the prompt was handed to the turn already running; its
// reply is that turn's continuing output.
ChatSteered bool `json:"chat_steered,omitempty"`
// ChatQueue is the session's server-held prompt queue: pushed as a
// chat_queue frame when it changes and carried by the chat_subscribe and
// chat_unqueue replies.