feat(chat): per-chat permission modes for Claude, Codex and OpenCode

This commit is contained in:
2026-10-24 18:16:10 +01:00
parent ef575898f2
commit 6d430948a6
29 changed files with 1512 additions and 3 deletions
+5
View File
@@ -210,6 +210,11 @@ type Message struct {
ChatModels []ChatModel `json:"chat_models,omitempty"`
// ModelRequest is the chat_model body and echoed selection.
ModelRequest *ChatModelRequest `json:"chat_model,omitempty"`
// ChatModes is the chat_modes reply: the permission modes the session's
// harness offers, with the session's current mode in ModeRequest.
ChatModes []ChatMode `json:"chat_modes,omitempty"`
// ModeRequest is the chat_mode body and echoed selection.
ModeRequest *ChatModeRequest `json:"chat_mode,omitempty"`
// ChatSubscribe attaches this connection to one session's shared stream; the
// body names the session like ChatQuery. A chat_prompt response sets
// ChatQueued when the prompt had to wait for an in-flight turn and was