feat(chat): broker Codex approvals and complete typed tool interactions

This commit is contained in:
2026-10-20 17:41:35 +01:00
parent f31806cfcb
commit 35329e4022
21 changed files with 879 additions and 84 deletions
+9
View File
@@ -322,6 +322,15 @@ transient client logs are presentation, not separate server capabilities.
## Chat sessions
Structured tools use `chat_answer` with
`chat_answer: {session_id, form_id, answers, action?}`. Optional `action` is
`accept`, `decline` or `cancel` only when advertised by the pending form's
`actions`; ordinary question replies can omit it. Answers retain JSON types.
OpenCode cancellation calls the existing form DELETE API. Codex MCP elicitation
returns the corresponding action/content; other Codex questions accept answers
only. Permission frames may provide `always_label: "Allow for session"` to avoid
misrepresenting a session-scoped grant as a permanent policy change.
The brokered OpenCode chat exposes the operator's own sessions, separate from the
sessions pipeline runs create. The protocol types are: