Lightweight coding agent that runs in your terminal
Rust
ignore v1 in JSON schema codegen (#12408)
Michael Bolin1779feb6a7b5
diff --git a/codex-rs/app-server-protocol/schema/json/ClientRequest.json b/codex-rs/app-server-protocol/schema/json/ClientRequest.jsonindex 76ba36735c..cee6e6d04b 100644--- a/codex-rs/app-server-protocol/schema/json/ClientRequest.json+++ b/codex-rs/app-server-protocol/schema/json/ClientRequest.json@@ -5,21 +5,6 @@"description": "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.","type": "string"},- "AddConversationListenerParams": {- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "experimentalRawEvents": {- "default": false,- "type": "boolean"- }- },- "required": [- "conversationId"- ],- "type": "object"- },"AppsListParams": {"description": "EXPERIMENTAL - list available apps/connectors.","properties": {@@ -53,21 +38,6 @@},"type": "object"},- "ArchiveConversationParams": {- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "rolloutPath": {- "type": "string"- }- },- "required": [- "conversationId",- "rolloutPath"- ],- "type": "object"- },"AskForApproval": {"oneOf": [{@@ -110,53 +80,6 @@}]},- "AskForApproval2": {- "description": "Determines the conditions under which the user is consulted to approve running the command proposed by Codex.",- "oneOf": [- {- "description": "Under this policy, only \"known safe\" commands—as determined by `is_safe_command()`—that **only read files** are auto‑approved. Everything else will ask the user to approve.",- "enum": [- "untrusted"- ],- "type": "string"- },- {- "description": "DEPRECATED: *All* commands are auto‑approved, but they are expected to run inside a sandbox where network access is disabled and writes are confined to a specific set of paths. If the command fails, it will be escalated to the user to approve execution without a sandbox. Prefer `OnRequest` for interactive runs or `Never` for non-interactive runs.",- "enum": [- "on-failure"- ],- "type": "string"- },- {- "description": "The model decides when to ask the user for approval.",- "enum": [- "on-request"- ],- "type": "string"- },- {- "additionalProperties": false,- "description": "Fine-grained rejection controls for approval prompts.\n\nWhen a field is `true`, prompts of that category are automatically rejected instead of shown to the user.",- "properties": {- "reject": {- "$ref": "#/definitions/RejectConfig"- }- },- "required": [- "reject"- ],- "title": "RejectAskForApproval2",- "type": "object"- },- {- "description": "Never ask the user to approve commands. Failures are immediately returned to the model, and never escalated to the user for approval.",- "enum": [- "never"- ],- "type": "string"- }- ]- },"ByteRange": {"properties": {"end": {@@ -187,17 +110,6 @@],"type": "object"},- "CancelLoginChatGptParams": {- "properties": {- "loginId": {- "type": "string"- }- },- "required": [- "loginId"- ],- "type": "object"- },"ClientInfo": {"properties": {"name": {@@ -443,44 +355,6 @@],"type": "object"},- "ExecOneOffCommandParams": {- "properties": {- "command": {- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "type": [- "string",- "null"- ]- },- "sandboxPolicy": {- "anyOf": [- {- "$ref": "#/definitions/SandboxPolicy2"- },- {- "type": "null"- }- ]- },- "timeoutMs": {- "format": "uint64",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "required": [- "command"- ],- "type": "object"- },"ExperimentalFeatureListParams": {"properties": {"cursor": {@@ -538,37 +412,6 @@],"type": "object"},- "ForkConversationParams": {- "properties": {- "conversationId": {- "anyOf": [- {- "$ref": "#/definitions/ThreadId"- },- {- "type": "null"- }- ]- },- "overrides": {- "anyOf": [- {- "$ref": "#/definitions/NewConversationParams"- },- {- "type": "null"- }- ]- },- "path": {- "type": [- "string",- "null"- ]- }- },- "type": "object"- },"FunctionCallOutputBody": {"anyOf": [{@@ -679,51 +522,6 @@},"type": "object"},- "GetAuthStatusParams": {- "properties": {- "includeToken": {- "type": [- "boolean",- "null"- ]- },- "refreshToken": {- "type": [- "boolean",- "null"- ]- }- },- "type": "object"- },- "GetConversationSummaryParams": {- "anyOf": [- {- "properties": {- "rolloutPath": {- "type": "string"- }- },- "required": [- "rolloutPath"- ],- "title": "RolloutPathGetConversationSummaryParams",- "type": "object"- },- {- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- }- },- "required": [- "conversationId"- ],- "title": "ConversationIdGetConversationSummaryParams",- "type": "object"- }- ]- },"GhostCommit": {"description": "Details of a ghost commit created from a repository state.","properties": {@@ -756,17 +554,6 @@],"type": "object"},- "GitDiffToRemoteParams": {- "properties": {- "cwd": {- "type": "string"- }- },- "required": [- "cwd"- ],- "type": "object"- },"HazelnutScope": {"enum": ["example",@@ -818,214 +605,79 @@],"type": "object"},- "InputItem": {+ "ListMcpServerStatusParams": {+ "properties": {+ "cursor": {+ "description": "Opaque pagination cursor returned by a previous call.",+ "type": [+ "string",+ "null"+ ]+ },+ "limit": {+ "description": "Optional page size; defaults to a server-defined value.",+ "format": "uint32",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "LocalShellAction": {"oneOf": [{"properties": {- "data": {- "properties": {- "text": {- "type": "string"- },- "text_elements": {- "default": [],- "description": "UI-defined spans within `text` used to render or persist special elements.",- "items": {- "$ref": "#/definitions/V1TextElement"- },- "type": "array"- }+ "command": {+ "items": {+ "type": "string"},- "required": [- "text"- ],- "type": "object"+ "type": "array"},- "type": {- "enum": [- "text"- ],- "title": "TextInputItemType",- "type": "string"- }- },- "required": [- "data",- "type"- ],- "title": "TextInputItem",- "type": "object"- },- {- "properties": {- "data": {- "properties": {- "image_url": {- "type": "string"- }+ "env": {+ "additionalProperties": {+ "type": "string"},- "required": [- "image_url"- ],- "type": "object"+ "type": [+ "object",+ "null"+ ]+ },+ "timeout_ms": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]},"type": {"enum": [- "image"+ "exec"],- "title": "ImageInputItemType",+ "title": "ExecLocalShellActionType","type": "string"+ },+ "user": {+ "type": [+ "string",+ "null"+ ]+ },+ "working_directory": {+ "type": [+ "string",+ "null"+ ]}},"required": [- "data",+ "command","type"],- "title": "ImageInputItem",- "type": "object"- },- {- "properties": {- "data": {- "properties": {- "path": {- "type": "string"- }- },- "required": [- "path"- ],- "type": "object"- },- "type": {- "enum": [- "localImage"- ],- "title": "LocalImageInputItemType",- "type": "string"- }- },- "required": [- "data",- "type"- ],- "title": "LocalImageInputItem",- "type": "object"- }- ]- },- "InterruptConversationParams": {- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- }- },- "required": [- "conversationId"- ],- "type": "object"- },- "ListConversationsParams": {- "properties": {- "cursor": {- "type": [- "string",- "null"- ]- },- "modelProviders": {- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "pageSize": {- "format": "uint",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- },- "ListMcpServerStatusParams": {- "properties": {- "cursor": {- "description": "Opaque pagination cursor returned by a previous call.",- "type": [- "string",- "null"- ]- },- "limit": {- "description": "Optional page size; defaults to a server-defined value.",- "format": "uint32",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- },- "LocalShellAction": {- "oneOf": [- {- "properties": {- "command": {- "items": {- "type": "string"- },- "type": "array"- },- "env": {- "additionalProperties": {- "type": "string"- },- "type": [- "object",- "null"- ]- },- "timeout_ms": {- "format": "uint64",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- },- "type": {- "enum": [- "exec"- ],- "title": "ExecLocalShellActionType",- "type": "string"- },- "user": {- "type": [- "string",- "null"- ]- },- "working_directory": {- "type": [- "string",- "null"- ]- }- },- "required": [- "command",- "type"- ],- "title": "ExecLocalShellAction",+ "title": "ExecLocalShellAction","type": "object"}]@@ -1112,17 +764,6 @@}]},- "LoginApiKeyParams": {- "properties": {- "apiKey": {- "type": "string"- }- },- "required": [- "apiKey"- ],- "type": "object"- },"McpServerOauthLoginParams": {"properties": {"name": {@@ -1219,94 +860,6 @@],"type": "string"},- "NetworkAccess2": {- "description": "Represents whether outbound network access is available to the agent.",- "enum": [- "restricted",- "enabled"- ],- "type": "string"- },- "NewConversationParams": {- "properties": {- "approvalPolicy": {- "anyOf": [- {- "$ref": "#/definitions/AskForApproval2"- },- {- "type": "null"- }- ]- },- "baseInstructions": {- "type": [- "string",- "null"- ]- },- "compactPrompt": {- "type": [- "string",- "null"- ]- },- "config": {- "additionalProperties": true,- "type": [- "object",- "null"- ]- },- "cwd": {- "type": [- "string",- "null"- ]- },- "developerInstructions": {- "type": [- "string",- "null"- ]- },- "includeApplyPatchTool": {- "type": [- "boolean",- "null"- ]- },- "model": {- "type": [- "string",- "null"- ]- },- "modelProvider": {- "type": [- "string",- "null"- ]- },- "profile": {- "type": [- "string",- "null"- ]- },- "sandbox": {- "anyOf": [- {- "$ref": "#/definitions/SandboxMode2"- },- {- "type": "null"- }- ]- }- },- "type": "object"- },"Personality": {"enum": ["none",@@ -1371,57 +924,6 @@}]},- "ReadOnlyAccess2": {- "description": "Determines how read-only file access is granted inside a restricted sandbox.",- "oneOf": [- {- "description": "Restrict reads to an explicit set of roots.\n\nWhen `include_platform_defaults` is `true`, platform defaults required for basic execution are included in addition to `readable_roots`.",- "properties": {- "include_platform_defaults": {- "default": true,- "description": "Include built-in platform read roots required for basic process execution.",- "type": "boolean"- },- "readable_roots": {- "description": "Additional absolute roots that should be readable.",- "items": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": "array"- },- "type": {- "enum": [- "restricted"- ],- "title": "RestrictedReadOnlyAccess2Type",- "type": "string"- }- },- "required": [- "type"- ],- "title": "RestrictedReadOnlyAccess2",- "type": "object"- },- {- "description": "Allow unrestricted file reads.",- "properties": {- "type": {- "enum": [- "full-access"- ],- "title": "FullAccessReadOnlyAccess2Type",- "type": "string"- }- },- "required": [- "type"- ],- "title": "FullAccessReadOnlyAccess2",- "type": "object"- }- ]- },"ReasoningEffort": {"description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning","enum": [@@ -1522,39 +1024,6 @@}]},- "RejectConfig": {- "properties": {- "mcp_elicitations": {- "description": "Reject MCP elicitation prompts.",- "type": "boolean"- },- "rules": {- "description": "Reject prompts triggered by execpolicy `prompt` rules.",- "type": "boolean"- },- "sandbox_approval": {- "description": "Reject approval prompts related to sandbox escalation.",- "type": "boolean"- }- },- "required": [- "mcp_elicitations",- "rules",- "sandbox_approval"- ],- "type": "object"- },- "RemoveConversationListenerParams": {- "properties": {- "subscriptionId": {- "type": "string"- }- },- "required": [- "subscriptionId"- ],- "type": "object"- },"RequestId": {"anyOf": [{@@ -1922,46 +1391,6 @@}]},- "ResumeConversationParams": {- "properties": {- "conversationId": {- "anyOf": [- {- "$ref": "#/definitions/ThreadId"- },- {- "type": "null"- }- ]- },- "history": {- "items": {- "$ref": "#/definitions/ResponseItem"- },- "type": [- "array",- "null"- ]- },- "overrides": {- "anyOf": [- {- "$ref": "#/definitions/NewConversationParams"- },- {- "type": "null"- }- ]- },- "path": {- "type": [- "string",- "null"- ]- }- },- "type": "object"- },"ReviewDelivery": {"enum": ["inline",@@ -2095,14 +1524,6 @@],"type": "string"},- "SandboxMode2": {- "enum": [- "read-only",- "workspace-write",- "danger-full-access"- ],- "type": "string"- },"SandboxPolicy": {"oneOf": [{@@ -2218,216 +1639,6 @@}]},- "SandboxPolicy2": {- "description": "Determines execution restrictions for model shell commands.",- "oneOf": [- {- "description": "No restrictions whatsoever. Use with caution.",- "properties": {- "type": {- "enum": [- "danger-full-access"- ],- "title": "DangerFullAccessSandboxPolicy2Type",- "type": "string"- }- },- "required": [- "type"- ],- "title": "DangerFullAccessSandboxPolicy2",- "type": "object"- },- {- "description": "Read-only access configuration.",- "properties": {- "access": {- "allOf": [- {- "$ref": "#/definitions/ReadOnlyAccess2"- }- ],- "description": "Read access granted while running under this policy."- },- "type": {- "enum": [- "read-only"- ],- "title": "ReadOnlySandboxPolicy2Type",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ReadOnlySandboxPolicy2",- "type": "object"- },- {- "description": "Indicates the process is already in an external sandbox. Allows full disk access while honoring the provided network setting.",- "properties": {- "network_access": {- "allOf": [- {- "$ref": "#/definitions/NetworkAccess2"- }- ],- "default": "restricted",- "description": "Whether the external sandbox permits outbound network traffic."- },- "type": {- "enum": [- "external-sandbox"- ],- "title": "ExternalSandboxSandboxPolicy2Type",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ExternalSandboxSandboxPolicy2",- "type": "object"- },- {- "description": "Same as `ReadOnly` but additionally grants write access to the current working directory (\"workspace\").",- "properties": {- "exclude_slash_tmp": {- "default": false,- "description": "When set to `true`, will NOT include the `/tmp` among the default writable roots on UNIX. Defaults to `false`.",- "type": "boolean"- },- "exclude_tmpdir_env_var": {- "default": false,- "description": "When set to `true`, will NOT include the per-user `TMPDIR` environment variable among the default writable roots. Defaults to `false`.",- "type": "boolean"- },- "network_access": {- "default": false,- "description": "When set to `true`, outbound network access is allowed. `false` by default.",- "type": "boolean"- },- "read_only_access": {- "allOf": [- {- "$ref": "#/definitions/ReadOnlyAccess2"- }- ],- "description": "Read access granted while running under this policy."- },- "type": {- "enum": [- "workspace-write"- ],- "title": "WorkspaceWriteSandboxPolicy2Type",- "type": "string"- },- "writable_roots": {- "description": "Additional folders (beyond cwd and possibly TMPDIR) that should be writable from within the sandbox.",- "items": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": "array"- }- },- "required": [- "type"- ],- "title": "WorkspaceWriteSandboxPolicy2",- "type": "object"- }- ]- },- "SendUserMessageParams": {- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "items": {- "items": {- "$ref": "#/definitions/InputItem"- },- "type": "array"- }- },- "required": [- "conversationId",- "items"- ],- "type": "object"- },- "SendUserTurnParams": {- "properties": {- "approvalPolicy": {- "$ref": "#/definitions/AskForApproval2"- },- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "cwd": {- "type": "string"- },- "effort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ]- },- "items": {- "items": {- "$ref": "#/definitions/InputItem"- },- "type": "array"- },- "model": {- "type": "string"- },- "outputSchema": {- "description": "Optional JSON Schema used to constrain the final assistant message for this turn."- },- "sandboxPolicy": {- "$ref": "#/definitions/SandboxPolicy2"- },- "summary": {- "$ref": "#/definitions/ReasoningSummary"- }- },- "required": [- "approvalPolicy",- "conversationId",- "cwd",- "items",- "model",- "sandboxPolicy",- "summary"- ],- "type": "object"- },- "SetDefaultModelParams": {- "properties": {- "model": {- "type": [- "string",- "null"- ]- },- "reasoningEffort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ]- }- },- "type": "object"- },"Settings": {"description": "Settings for a collaboration mode.","properties": {@@ -2667,9 +1878,6 @@],"type": "object"},- "ThreadId": {- "type": "string"- },"ThreadListParams": {"properties": {"archived": {@@ -3245,50 +2453,6 @@}]},- "V1ByteRange": {- "properties": {- "end": {- "description": "End byte offset (exclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "start": {- "description": "Start byte offset (inclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "end",- "start"- ],- "type": "object"- },- "V1TextElement": {- "properties": {- "byteRange": {- "allOf": [- {- "$ref": "#/definitions/V1ByteRange"- }- ],- "description": "Byte range in the parent `text` buffer that this element occupies."- },- "placeholder": {- "description": "Optional human-readable placeholder for the element, displayed in the UI.",- "type": [- "string",- "null"- ]- }- },- "required": [- "byteRange"- ],- "type": "object"- },"WebSearchAction": {"oneOf": [{@@ -3418,542 +2582,13 @@},"method": {"enum": [- "initialize"- ],- "title": "InitializeRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/InitializeParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "InitializeRequest",- "type": "object"- },- {- "description": "NEW APIs",- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "thread/start"- ],- "title": "Thread/startRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ThreadStartParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Thread/startRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "thread/resume"- ],- "title": "Thread/resumeRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ThreadResumeParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Thread/resumeRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "thread/fork"- ],- "title": "Thread/forkRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ThreadForkParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Thread/forkRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "thread/archive"- ],- "title": "Thread/archiveRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ThreadArchiveParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Thread/archiveRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "thread/name/set"- ],- "title": "Thread/name/setRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ThreadSetNameParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Thread/name/setRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "thread/unarchive"- ],- "title": "Thread/unarchiveRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ThreadUnarchiveParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Thread/unarchiveRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "thread/compact/start"- ],- "title": "Thread/compact/startRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ThreadCompactStartParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Thread/compact/startRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "thread/rollback"- ],- "title": "Thread/rollbackRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ThreadRollbackParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Thread/rollbackRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "thread/list"- ],- "title": "Thread/listRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ThreadListParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Thread/listRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "thread/loaded/list"- ],- "title": "Thread/loaded/listRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ThreadLoadedListParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Thread/loaded/listRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "thread/read"- ],- "title": "Thread/readRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ThreadReadParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Thread/readRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "skills/list"- ],- "title": "Skills/listRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/SkillsListParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Skills/listRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "skills/remote/list"- ],- "title": "Skills/remote/listRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/SkillsRemoteReadParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Skills/remote/listRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "skills/remote/export"- ],- "title": "Skills/remote/exportRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/SkillsRemoteWriteParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Skills/remote/exportRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "app/list"- ],- "title": "App/listRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/AppsListParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "App/listRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "skills/config/write"- ],- "title": "Skills/config/writeRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/SkillsConfigWriteParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Skills/config/writeRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "turn/start"- ],- "title": "Turn/startRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/TurnStartParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Turn/startRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "turn/steer"- ],- "title": "Turn/steerRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/TurnSteerParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Turn/steerRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "turn/interrupt"- ],- "title": "Turn/interruptRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/TurnInterruptParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Turn/interruptRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "review/start"- ],- "title": "Review/startRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ReviewStartParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Review/startRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "model/list"- ],- "title": "Model/listRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ModelListParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Model/listRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "experimentalFeature/list"+ "initialize"],- "title": "ExperimentalFeature/listRequestMethod",+ "title": "InitializeRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/ExperimentalFeatureListParams"+ "$ref": "#/definitions/InitializeParams"}},"required": [@@ -3961,23 +2596,24 @@"method","params"],- "title": "ExperimentalFeature/listRequest",+ "title": "InitializeRequest","type": "object"},{+ "description": "NEW APIs","properties": {"id": {"$ref": "#/definitions/RequestId"},"method": {"enum": [- "mcpServer/oauth/login"+ "thread/start"],- "title": "McpServer/oauth/loginRequestMethod",+ "title": "Thread/startRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/McpServerOauthLoginParams"+ "$ref": "#/definitions/ThreadStartParams"}},"required": [@@ -3985,7 +2621,7 @@"method","params"],- "title": "McpServer/oauth/loginRequest",+ "title": "Thread/startRequest","type": "object"},{@@ -3995,20 +2631,21 @@},"method": {"enum": [- "config/mcpServer/reload"+ "thread/resume"],- "title": "Config/mcpServer/reloadRequestMethod",+ "title": "Thread/resumeRequestMethod","type": "string"},"params": {- "type": "null"+ "$ref": "#/definitions/ThreadResumeParams"}},"required": ["id",- "method"+ "method",+ "params"],- "title": "Config/mcpServer/reloadRequest",+ "title": "Thread/resumeRequest","type": "object"},{@@ -4018,13 +2655,13 @@},"method": {"enum": [- "mcpServerStatus/list"+ "thread/fork"],- "title": "McpServerStatus/listRequestMethod",+ "title": "Thread/forkRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/ListMcpServerStatusParams"+ "$ref": "#/definitions/ThreadForkParams"}},"required": [@@ -4032,7 +2669,7 @@"method","params"],- "title": "McpServerStatus/listRequest",+ "title": "Thread/forkRequest","type": "object"},{@@ -4042,13 +2679,13 @@},"method": {"enum": [- "windowsSandbox/setupStart"+ "thread/archive"],- "title": "WindowsSandbox/setupStartRequestMethod",+ "title": "Thread/archiveRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/WindowsSandboxSetupStartParams"+ "$ref": "#/definitions/ThreadArchiveParams"}},"required": [@@ -4056,7 +2693,7 @@"method","params"],- "title": "WindowsSandbox/setupStartRequest",+ "title": "Thread/archiveRequest","type": "object"},{@@ -4066,13 +2703,13 @@},"method": {"enum": [- "account/login/start"+ "thread/name/set"],- "title": "Account/login/startRequestMethod",+ "title": "Thread/name/setRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/LoginAccountParams"+ "$ref": "#/definitions/ThreadSetNameParams"}},"required": [@@ -4080,7 +2717,7 @@"method","params"],- "title": "Account/login/startRequest",+ "title": "Thread/name/setRequest","type": "object"},{@@ -4090,13 +2727,13 @@},"method": {"enum": [- "account/login/cancel"+ "thread/unarchive"],- "title": "Account/login/cancelRequestMethod",+ "title": "Thread/unarchiveRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/CancelLoginAccountParams"+ "$ref": "#/definitions/ThreadUnarchiveParams"}},"required": [@@ -4104,7 +2741,7 @@"method","params"],- "title": "Account/login/cancelRequest",+ "title": "Thread/unarchiveRequest","type": "object"},{@@ -4114,20 +2751,21 @@},"method": {"enum": [- "account/logout"+ "thread/compact/start"],- "title": "Account/logoutRequestMethod",+ "title": "Thread/compact/startRequestMethod","type": "string"},"params": {- "type": "null"+ "$ref": "#/definitions/ThreadCompactStartParams"}},"required": ["id",- "method"+ "method",+ "params"],- "title": "Account/logoutRequest",+ "title": "Thread/compact/startRequest","type": "object"},{@@ -4137,20 +2775,21 @@},"method": {"enum": [- "account/rateLimits/read"+ "thread/rollback"],- "title": "Account/rateLimits/readRequestMethod",+ "title": "Thread/rollbackRequestMethod","type": "string"},"params": {- "type": "null"+ "$ref": "#/definitions/ThreadRollbackParams"}},"required": ["id",- "method"+ "method",+ "params"],- "title": "Account/rateLimits/readRequest",+ "title": "Thread/rollbackRequest","type": "object"},{@@ -4160,13 +2799,13 @@},"method": {"enum": [- "feedback/upload"+ "thread/list"],- "title": "Feedback/uploadRequestMethod",+ "title": "Thread/listRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/FeedbackUploadParams"+ "$ref": "#/definitions/ThreadListParams"}},"required": [@@ -4174,24 +2813,23 @@"method","params"],- "title": "Feedback/uploadRequest",+ "title": "Thread/listRequest","type": "object"},{- "description": "Execute a command (argv vector) under the server's sandbox.","properties": {"id": {"$ref": "#/definitions/RequestId"},"method": {"enum": [- "command/exec"+ "thread/loaded/list"],- "title": "Command/execRequestMethod",+ "title": "Thread/loaded/listRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/CommandExecParams"+ "$ref": "#/definitions/ThreadLoadedListParams"}},"required": [@@ -4199,7 +2837,7 @@"method","params"],- "title": "Command/execRequest",+ "title": "Thread/loaded/listRequest","type": "object"},{@@ -4209,13 +2847,13 @@},"method": {"enum": [- "config/read"+ "thread/read"],- "title": "Config/readRequestMethod",+ "title": "Thread/readRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/ConfigReadParams"+ "$ref": "#/definitions/ThreadReadParams"}},"required": [@@ -4223,7 +2861,7 @@"method","params"],- "title": "Config/readRequest",+ "title": "Thread/readRequest","type": "object"},{@@ -4233,13 +2871,13 @@},"method": {"enum": [- "config/value/write"+ "skills/list"],- "title": "Config/value/writeRequestMethod",+ "title": "Skills/listRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/ConfigValueWriteParams"+ "$ref": "#/definitions/SkillsListParams"}},"required": [@@ -4247,7 +2885,7 @@"method","params"],- "title": "Config/value/writeRequest",+ "title": "Skills/listRequest","type": "object"},{@@ -4257,13 +2895,13 @@},"method": {"enum": [- "config/batchWrite"+ "skills/remote/list"],- "title": "Config/batchWriteRequestMethod",+ "title": "Skills/remote/listRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/ConfigBatchWriteParams"+ "$ref": "#/definitions/SkillsRemoteReadParams"}},"required": [@@ -4271,7 +2909,7 @@"method","params"],- "title": "Config/batchWriteRequest",+ "title": "Skills/remote/listRequest","type": "object"},{@@ -4281,20 +2919,21 @@},"method": {"enum": [- "configRequirements/read"+ "skills/remote/export"],- "title": "ConfigRequirements/readRequestMethod",+ "title": "Skills/remote/exportRequestMethod","type": "string"},"params": {- "type": "null"+ "$ref": "#/definitions/SkillsRemoteWriteParams"}},"required": ["id",- "method"+ "method",+ "params"],- "title": "ConfigRequirements/readRequest",+ "title": "Skills/remote/exportRequest","type": "object"},{@@ -4304,13 +2943,13 @@},"method": {"enum": [- "account/read"+ "app/list"],- "title": "Account/readRequestMethod",+ "title": "App/listRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/GetAccountParams"+ "$ref": "#/definitions/AppsListParams"}},"required": [@@ -4318,24 +2957,23 @@"method","params"],- "title": "Account/readRequest",+ "title": "App/listRequest","type": "object"},{- "description": "DEPRECATED APIs below","properties": {"id": {"$ref": "#/definitions/RequestId"},"method": {"enum": [- "newConversation"+ "skills/config/write"],- "title": "NewConversationRequestMethod",+ "title": "Skills/config/writeRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/NewConversationParams"+ "$ref": "#/definitions/SkillsConfigWriteParams"}},"required": [@@ -4343,7 +2981,7 @@"method","params"],- "title": "NewConversationRequest",+ "title": "Skills/config/writeRequest","type": "object"},{@@ -4353,13 +2991,13 @@},"method": {"enum": [- "getConversationSummary"+ "turn/start"],- "title": "GetConversationSummaryRequestMethod",+ "title": "Turn/startRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/GetConversationSummaryParams"+ "$ref": "#/definitions/TurnStartParams"}},"required": [@@ -4367,24 +3005,23 @@"method","params"],- "title": "GetConversationSummaryRequest",+ "title": "Turn/startRequest","type": "object"},{- "description": "List recorded Codex conversations (rollouts) with optional pagination and search.","properties": {"id": {"$ref": "#/definitions/RequestId"},"method": {"enum": [- "listConversations"+ "turn/steer"],- "title": "ListConversationsRequestMethod",+ "title": "Turn/steerRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/ListConversationsParams"+ "$ref": "#/definitions/TurnSteerParams"}},"required": [@@ -4392,24 +3029,23 @@"method","params"],- "title": "ListConversationsRequest",+ "title": "Turn/steerRequest","type": "object"},{- "description": "Resume a recorded Codex conversation from a rollout file.","properties": {"id": {"$ref": "#/definitions/RequestId"},"method": {"enum": [- "resumeConversation"+ "turn/interrupt"],- "title": "ResumeConversationRequestMethod",+ "title": "Turn/interruptRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/ResumeConversationParams"+ "$ref": "#/definitions/TurnInterruptParams"}},"required": [@@ -4417,24 +3053,23 @@"method","params"],- "title": "ResumeConversationRequest",+ "title": "Turn/interruptRequest","type": "object"},{- "description": "Fork a recorded Codex conversation into a new session.","properties": {"id": {"$ref": "#/definitions/RequestId"},"method": {"enum": [- "forkConversation"+ "review/start"],- "title": "ForkConversationRequestMethod",+ "title": "Review/startRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/ForkConversationParams"+ "$ref": "#/definitions/ReviewStartParams"}},"required": [@@ -4442,7 +3077,7 @@"method","params"],- "title": "ForkConversationRequest",+ "title": "Review/startRequest","type": "object"},{@@ -4452,13 +3087,13 @@},"method": {"enum": [- "archiveConversation"+ "model/list"],- "title": "ArchiveConversationRequestMethod",+ "title": "Model/listRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/ArchiveConversationParams"+ "$ref": "#/definitions/ModelListParams"}},"required": [@@ -4466,7 +3101,7 @@"method","params"],- "title": "ArchiveConversationRequest",+ "title": "Model/listRequest","type": "object"},{@@ -4476,13 +3111,13 @@},"method": {"enum": [- "sendUserMessage"+ "experimentalFeature/list"],- "title": "SendUserMessageRequestMethod",+ "title": "ExperimentalFeature/listRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/SendUserMessageParams"+ "$ref": "#/definitions/ExperimentalFeatureListParams"}},"required": [@@ -4490,7 +3125,7 @@"method","params"],- "title": "SendUserMessageRequest",+ "title": "ExperimentalFeature/listRequest","type": "object"},{@@ -4500,13 +3135,13 @@},"method": {"enum": [- "sendUserTurn"+ "mcpServer/oauth/login"],- "title": "SendUserTurnRequestMethod",+ "title": "McpServer/oauth/loginRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/SendUserTurnParams"+ "$ref": "#/definitions/McpServerOauthLoginParams"}},"required": [@@ -4514,7 +3149,7 @@"method","params"],- "title": "SendUserTurnRequest",+ "title": "McpServer/oauth/loginRequest","type": "object"},{@@ -4524,21 +3159,20 @@},"method": {"enum": [- "interruptConversation"+ "config/mcpServer/reload"],- "title": "InterruptConversationRequestMethod",+ "title": "Config/mcpServer/reloadRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/InterruptConversationParams"+ "type": "null"}},"required": ["id",- "method",- "params"+ "method"],- "title": "InterruptConversationRequest",+ "title": "Config/mcpServer/reloadRequest","type": "object"},{@@ -4548,13 +3182,13 @@},"method": {"enum": [- "addConversationListener"+ "mcpServerStatus/list"],- "title": "AddConversationListenerRequestMethod",+ "title": "McpServerStatus/listRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/AddConversationListenerParams"+ "$ref": "#/definitions/ListMcpServerStatusParams"}},"required": [@@ -4562,7 +3196,7 @@"method","params"],- "title": "AddConversationListenerRequest",+ "title": "McpServerStatus/listRequest","type": "object"},{@@ -4572,13 +3206,13 @@},"method": {"enum": [- "removeConversationListener"+ "windowsSandbox/setupStart"],- "title": "RemoveConversationListenerRequestMethod",+ "title": "WindowsSandbox/setupStartRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/RemoveConversationListenerParams"+ "$ref": "#/definitions/WindowsSandboxSetupStartParams"}},"required": [@@ -4586,7 +3220,7 @@"method","params"],- "title": "RemoveConversationListenerRequest",+ "title": "WindowsSandbox/setupStartRequest","type": "object"},{@@ -4596,13 +3230,13 @@},"method": {"enum": [- "gitDiffToRemote"+ "account/login/start"],- "title": "GitDiffToRemoteRequestMethod",+ "title": "Account/login/startRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/GitDiffToRemoteParams"+ "$ref": "#/definitions/LoginAccountParams"}},"required": [@@ -4610,7 +3244,7 @@"method","params"],- "title": "GitDiffToRemoteRequest",+ "title": "Account/login/startRequest","type": "object"},{@@ -4620,13 +3254,13 @@},"method": {"enum": [- "loginApiKey"+ "account/login/cancel"],- "title": "LoginApiKeyRequestMethod",+ "title": "Account/login/cancelRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/LoginApiKeyParams"+ "$ref": "#/definitions/CancelLoginAccountParams"}},"required": [@@ -4634,7 +3268,7 @@"method","params"],- "title": "LoginApiKeyRequest",+ "title": "Account/login/cancelRequest","type": "object"},{@@ -4644,9 +3278,9 @@},"method": {"enum": [- "loginChatGpt"+ "account/logout"],- "title": "LoginChatGptRequestMethod",+ "title": "Account/logoutRequestMethod","type": "string"},"params": {@@ -4657,7 +3291,7 @@"id","method"],- "title": "LoginChatGptRequest",+ "title": "Account/logoutRequest","type": "object"},{@@ -4667,21 +3301,20 @@},"method": {"enum": [- "cancelLoginChatGpt"+ "account/rateLimits/read"],- "title": "CancelLoginChatGptRequestMethod",+ "title": "Account/rateLimits/readRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/CancelLoginChatGptParams"+ "type": "null"}},"required": ["id",- "method",- "params"+ "method"],- "title": "CancelLoginChatGptRequest",+ "title": "Account/rateLimits/readRequest","type": "object"},{@@ -4691,37 +3324,38 @@},"method": {"enum": [- "logoutChatGpt"+ "feedback/upload"],- "title": "LogoutChatGptRequestMethod",+ "title": "Feedback/uploadRequestMethod","type": "string"},"params": {- "type": "null"+ "$ref": "#/definitions/FeedbackUploadParams"}},"required": ["id",- "method"+ "method",+ "params"],- "title": "LogoutChatGptRequest",+ "title": "Feedback/uploadRequest","type": "object"},{- "description": "DEPRECATED in favor of GetAccount",+ "description": "Execute a command (argv vector) under the server's sandbox.","properties": {"id": {"$ref": "#/definitions/RequestId"},"method": {"enum": [- "getAuthStatus"+ "command/exec"],- "title": "GetAuthStatusRequestMethod",+ "title": "Command/execRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/GetAuthStatusParams"+ "$ref": "#/definitions/CommandExecParams"}},"required": [@@ -4729,7 +3363,7 @@"method","params"],- "title": "GetAuthStatusRequest",+ "title": "Command/execRequest","type": "object"},{@@ -4739,20 +3373,21 @@},"method": {"enum": [- "getUserSavedConfig"+ "config/read"],- "title": "GetUserSavedConfigRequestMethod",+ "title": "Config/readRequestMethod","type": "string"},"params": {- "type": "null"+ "$ref": "#/definitions/ConfigReadParams"}},"required": ["id",- "method"+ "method",+ "params"],- "title": "GetUserSavedConfigRequest",+ "title": "Config/readRequest","type": "object"},{@@ -4762,13 +3397,13 @@},"method": {"enum": [- "setDefaultModel"+ "config/value/write"],- "title": "SetDefaultModelRequestMethod",+ "title": "Config/value/writeRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/SetDefaultModelParams"+ "$ref": "#/definitions/ConfigValueWriteParams"}},"required": [@@ -4776,7 +3411,7 @@"method","params"],- "title": "SetDefaultModelRequest",+ "title": "Config/value/writeRequest","type": "object"},{@@ -4786,20 +3421,21 @@},"method": {"enum": [- "getUserAgent"+ "config/batchWrite"],- "title": "GetUserAgentRequestMethod",+ "title": "Config/batchWriteRequestMethod","type": "string"},"params": {- "type": "null"+ "$ref": "#/definitions/ConfigBatchWriteParams"}},"required": ["id",- "method"+ "method",+ "params"],- "title": "GetUserAgentRequest",+ "title": "Config/batchWriteRequest","type": "object"},{@@ -4809,9 +3445,9 @@},"method": {"enum": [- "userInfo"+ "configRequirements/read"],- "title": "UserInfoRequestMethod",+ "title": "ConfigRequirements/readRequestMethod","type": "string"},"params": {@@ -4822,7 +3458,7 @@"id","method"],- "title": "UserInfoRequest",+ "title": "ConfigRequirements/readRequest","type": "object"},{@@ -4832,13 +3468,13 @@},"method": {"enum": [- "fuzzyFileSearch"+ "account/read"],- "title": "FuzzyFileSearchRequestMethod",+ "title": "Account/readRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/FuzzyFileSearchParams"+ "$ref": "#/definitions/GetAccountParams"}},"required": [@@ -4846,24 +3482,23 @@"method","params"],- "title": "FuzzyFileSearchRequest",+ "title": "Account/readRequest","type": "object"},{- "description": "Execute a command (argv vector) under the server's sandbox.","properties": {"id": {"$ref": "#/definitions/RequestId"},"method": {"enum": [- "execOneOffCommand"+ "fuzzyFileSearch"],- "title": "ExecOneOffCommandRequestMethod",+ "title": "FuzzyFileSearchRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/ExecOneOffCommandParams"+ "$ref": "#/definitions/FuzzyFileSearchParams"}},"required": [@@ -4871,7 +3506,7 @@"method","params"],- "title": "ExecOneOffCommandRequest",+ "title": "FuzzyFileSearchRequest","type": "object"}],diff --git a/codex-rs/app-server-protocol/schema/json/EventMsg.json b/codex-rs/app-server-protocol/schema/json/EventMsg.jsonindex 518d650208..81140db5e9 100644--- a/codex-rs/app-server-protocol/schema/json/EventMsg.json+++ b/codex-rs/app-server-protocol/schema/json/EventMsg.json@@ -3519,7 +3519,7 @@"required": ["state"],- "title": "StateMcpStartupStatus",+ "title": "StartingMcpStartupStatus","type": "object"},{@@ -3534,7 +3534,7 @@"required": ["state"],- "title": "StateMcpStartupStatus2",+ "title": "ReadyMcpStartupStatus","type": "object"},{@@ -3567,7 +3567,7 @@"required": ["state"],- "title": "StateMcpStartupStatus3",+ "title": "CancelledMcpStartupStatus","type": "object"}]diff --git a/codex-rs/app-server-protocol/schema/json/ServerNotification.json b/codex-rs/app-server-protocol/schema/json/ServerNotification.jsonindex bcdbdb33ed..b2dc4c3c3e 100644--- a/codex-rs/app-server-protocol/schema/json/ServerNotification.json+++ b/codex-rs/app-server-protocol/schema/json/ServerNotification.json@@ -1,10 +1,6 @@{"$schema": "http://json-schema.org/draft-07/schema#","definitions": {- "AbsolutePathBuf": {- "description": "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",- "type": "string"- },"AccountLoginCompletedNotification": {"properties": {"error": {@@ -54,30 +50,6 @@},"type": "object"},- "AgentMessageContent": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "Text"- ],- "title": "TextAgentMessageContentType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "TextAgentMessageContent",- "type": "object"- }- ]- },"AgentMessageDeltaNotification": {"properties": {"delta": {@@ -101,70 +73,6 @@],"type": "object"},- "AgentStatus": {- "description": "Agent lifecycle status, derived from emitted events.",- "oneOf": [- {- "description": "Agent is waiting for initialization.",- "enum": [- "pending_init"- ],- "type": "string"- },- {- "description": "Agent is currently running.",- "enum": [- "running"- ],- "type": "string"- },- {- "additionalProperties": false,- "description": "Agent is done. Contains the final assistant message.",- "properties": {- "completed": {- "type": [- "string",- "null"- ]- }- },- "required": [- "completed"- ],- "title": "CompletedAgentStatus",- "type": "object"- },- {- "additionalProperties": false,- "description": "Agent encountered an error.",- "properties": {- "errored": {- "type": "string"- }- },- "required": [- "errored"- ],- "title": "ErroredAgentStatus",- "type": "object"- },- {- "description": "Agent has been shutdown.",- "enum": [- "shutdown"- ],- "type": "string"- },- {- "description": "Agent is not found.",- "enum": [- "not_found"- ],- "type": "string"- }- ]- },"AppBranding": {"description": "EXPERIMENTAL - app metadata returned by app-list APIs.","properties": {@@ -430,53 +338,6 @@],"type": "object"},- "AskForApproval": {- "description": "Determines the conditions under which the user is consulted to approve running the command proposed by Codex.",- "oneOf": [- {- "description": "Under this policy, only \"known safe\" commands—as determined by `is_safe_command()`—that **only read files** are auto‑approved. Everything else will ask the user to approve.",- "enum": [- "untrusted"- ],- "type": "string"- },- {- "description": "DEPRECATED: *All* commands are auto‑approved, but they are expected to run inside a sandbox where network access is disabled and writes are confined to a specific set of paths. If the command fails, it will be escalated to the user to approve execution without a sandbox. Prefer `OnRequest` for interactive runs or `Never` for non-interactive runs.",- "enum": [- "on-failure"- ],- "type": "string"- },- {- "description": "The model decides when to ask the user for approval.",- "enum": [- "on-request"- ],- "type": "string"- },- {- "additionalProperties": false,- "description": "Fine-grained rejection controls for approval prompts.\n\nWhen a field is `true`, prompts of that category are automatically rejected instead of shown to the user.",- "properties": {- "reject": {- "$ref": "#/definitions/RejectConfig"- }- },- "required": [- "reject"- ],- "title": "RejectAskForApproval",- "type": "object"- },- {- "description": "Never ask the user to approve commands. Failures are immediately returned to the model, and never escalated to the user for approval.",- "enum": [- "never"- ],- "type": "string"- }- ]- },"AuthMode": {"description": "Authentication mode for OpenAI-backed providers.","oneOf": [@@ -503,22 +364,6 @@}]},- "AuthStatusChangeNotification": {- "description": "Deprecated notification. Use AccountUpdatedNotification instead.",- "properties": {- "authMethod": {- "anyOf": [- {- "$ref": "#/definitions/AuthMode"- },- {- "type": "null"- }- ]- }- },- "type": "object"- },"ByteRange": {"properties": {"end": {@@ -538,48 +383,6 @@],"type": "object"},- "ByteRange2": {- "properties": {- "end": {- "description": "End byte offset (exclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "start": {- "description": "Start byte offset (inclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "end",- "start"- ],- "type": "object"- },- "CallToolResult": {- "description": "The server's response to a tool call.",- "properties": {- "_meta": true,- "content": {- "items": true,- "type": "array"- },- "isError": {- "type": [- "boolean",- "null"- ]- },- "structuredContent": true- },- "required": [- "content"- ],- "type": "object"- },"CodexErrorInfo": {"description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.","oneOf": [@@ -694,289 +497,106 @@}]},- "CodexErrorInfo2": {- "description": "Codex errors that we expose to clients.",+ "CollabAgentState": {+ "properties": {+ "message": {+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CollabAgentStatus"+ }+ },+ "required": [+ "status"+ ],+ "type": "object"+ },+ "CollabAgentStatus": {+ "enum": [+ "pendingInit",+ "running",+ "completed",+ "errored",+ "shutdown",+ "notFound"+ ],+ "type": "string"+ },+ "CollabAgentTool": {+ "enum": [+ "spawnAgent",+ "sendInput",+ "resumeAgent",+ "wait",+ "closeAgent"+ ],+ "type": "string"+ },+ "CollabAgentToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "CommandAction": {"oneOf": [{- "enum": [- "context_window_exceeded",- "usage_limit_exceeded",- "server_overloaded",- "internal_server_error",- "unauthorized",- "bad_request",- "sandbox_error",- "thread_rollback_failed",- "other"+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"],- "type": "string"+ "title": "ReadCommandAction",+ "type": "object"},{- "additionalProperties": false,"properties": {- "http_connection_failed": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"}},"required": [- "http_connection_failed"+ "command",+ "type"],- "title": "HttpConnectionFailedCodexErrorInfo2",- "type": "object"- },- {- "additionalProperties": false,- "description": "Failed to connect to the response SSE stream.",- "properties": {- "response_stream_connection_failed": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "response_stream_connection_failed"- ],- "title": "ResponseStreamConnectionFailedCodexErrorInfo2",- "type": "object"- },- {- "additionalProperties": false,- "description": "The response SSE stream disconnected in the middle of a turnbefore completion.",- "properties": {- "response_stream_disconnected": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "response_stream_disconnected"- ],- "title": "ResponseStreamDisconnectedCodexErrorInfo2",- "type": "object"- },- {- "additionalProperties": false,- "description": "Reached the retry limit for responses.",- "properties": {- "response_too_many_failed_attempts": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "response_too_many_failed_attempts"- ],- "title": "ResponseTooManyFailedAttemptsCodexErrorInfo2",- "type": "object"- }- ]- },- "CollabAgentRef": {- "properties": {- "agent_nickname": {- "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "agent_role": {- "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver/new agent."- }- },- "required": [- "thread_id"- ],- "type": "object"- },- "CollabAgentState": {- "properties": {- "message": {- "type": [- "string",- "null"- ]- },- "status": {- "$ref": "#/definitions/CollabAgentStatus"- }- },- "required": [- "status"- ],- "type": "object"- },- "CollabAgentStatus": {- "enum": [- "pendingInit",- "running",- "completed",- "errored",- "shutdown",- "notFound"- ],- "type": "string"- },- "CollabAgentStatusEntry": {- "properties": {- "agent_nickname": {- "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "agent_role": {- "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the agent."- },- "thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver/new agent."- }- },- "required": [- "status",- "thread_id"- ],- "type": "object"- },- "CollabAgentTool": {- "enum": [- "spawnAgent",- "sendInput",- "resumeAgent",- "wait",- "closeAgent"- ],- "type": "string"- },- "CollabAgentToolCallStatus": {- "enum": [- "inProgress",- "completed",- "failed"- ],- "type": "string"- },- "CommandAction": {- "oneOf": [- {- "properties": {- "command": {- "type": "string"- },- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "type": {- "enum": [- "read"- ],- "title": "ReadCommandActionType",- "type": "string"- }- },- "required": [- "command",- "name",- "path",- "type"- ],- "title": "ReadCommandAction",- "type": "object"- },- {- "properties": {- "command": {- "type": "string"- },- "path": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "listFiles"- ],- "title": "ListFilesCommandActionType",- "type": "string"- }- },- "required": [- "command",- "type"- ],- "title": "ListFilesCommandAction",+ "title": "ListFilesCommandAction","type": "object"},{@@ -1102,75 +722,11 @@],"type": "object"},- "ContentItem": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "input_text"- ],- "title": "InputTextContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "InputTextContentItem",- "type": "object"- },- {- "properties": {- "image_url": {- "type": "string"- },- "type": {- "enum": [- "input_image"- ],- "title": "InputImageContentItemType",- "type": "string"- }- },- "required": [- "image_url",- "type"- ],- "title": "InputImageContentItem",- "type": "object"- },- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "output_text"- ],- "title": "OutputTextContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "OutputTextContentItem",- "type": "object"- }- ]- },- "ContextCompactedNotification": {- "description": "Deprecated: Use `ContextCompaction` item type instead.",- "properties": {- "threadId": {- "type": "string"+ "ContextCompactedNotification": {+ "description": "Deprecated: Use `ContextCompaction` item type instead.",+ "properties": {+ "threadId": {+ "type": "string"},"turnId": {"type": "string"@@ -1203,223 +759,395 @@],"type": "object"},- "CreditsSnapshot2": {+ "DeprecationNoticeNotification": {"properties": {- "balance": {+ "details": {+ "description": "Optional extra guidance, such as migration steps or rationale.","type": ["string","null"]},- "has_credits": {- "type": "boolean"+ "summary": {+ "description": "Concise summary of what is deprecated.",+ "type": "string"+ }+ },+ "required": [+ "summary"+ ],+ "type": "object"+ },+ "ErrorNotification": {+ "properties": {+ "error": {+ "$ref": "#/definitions/TurnError"},- "unlimited": {+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ },+ "willRetry": {"type": "boolean"}},"required": [- "has_credits",- "unlimited"+ "error",+ "threadId",+ "turnId",+ "willRetry"+ ],+ "type": "object"+ },+ "FileChangeOutputDeltaNotification": {+ "properties": {+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "FileUpdateChange": {+ "properties": {+ "diff": {+ "type": "string"+ },+ "kind": {+ "$ref": "#/definitions/PatchChangeKind"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "kind",+ "path"],"type": "object"},- "CustomPrompt": {+ "FuzzyFileSearchResult": {+ "description": "Superset of [`codex_file_search::FileMatch`]","properties": {- "argument_hint": {+ "file_name": {+ "type": "string"+ },+ "indices": {+ "items": {+ "format": "uint32",+ "minimum": 0.0,+ "type": "integer"+ },"type": [- "string",+ "array","null"]},- "content": {+ "path": {"type": "string"},- "description": {+ "root": {+ "type": "string"+ },+ "score": {+ "format": "uint32",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "file_name",+ "path",+ "root",+ "score"+ ],+ "type": "object"+ },+ "FuzzyFileSearchSessionCompletedNotification": {+ "properties": {+ "sessionId": {+ "type": "string"+ }+ },+ "required": [+ "sessionId"+ ],+ "type": "object"+ },+ "FuzzyFileSearchSessionUpdatedNotification": {+ "properties": {+ "files": {+ "items": {+ "$ref": "#/definitions/FuzzyFileSearchResult"+ },+ "type": "array"+ },+ "query": {+ "type": "string"+ },+ "sessionId": {+ "type": "string"+ }+ },+ "required": [+ "files",+ "query",+ "sessionId"+ ],+ "type": "object"+ },+ "GitInfo": {+ "properties": {+ "branch": {"type": ["string","null"]},- "name": {+ "originUrl": {+ "type": [+ "string",+ "null"+ ]+ },+ "sha": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ItemCompletedNotification": {+ "properties": {+ "item": {+ "$ref": "#/definitions/ThreadItem"+ },+ "threadId": {"type": "string"},- "path": {+ "turnId": {"type": "string"}},"required": [- "content",- "name",- "path"+ "item",+ "threadId",+ "turnId"],"type": "object"},- "DeprecationNoticeNotification": {+ "ItemStartedNotification": {"properties": {- "details": {- "description": "Optional extra guidance, such as migration steps or rationale.",+ "item": {+ "$ref": "#/definitions/ThreadItem"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "item",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "McpServerOauthLoginCompletedNotification": {+ "properties": {+ "error": {"type": ["string","null"]},- "summary": {- "description": "Concise summary of what is deprecated.",+ "name": {"type": "string"+ },+ "success": {+ "type": "boolean"}},"required": [- "summary"+ "name",+ "success"],"type": "object"},- "Duration": {+ "McpToolCallError": {"properties": {- "nanos": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "secs": {- "format": "uint64",- "minimum": 0.0,- "type": "integer"+ "message": {+ "type": "string"}},"required": [- "nanos",- "secs"+ "message"],"type": "object"},- "ErrorNotification": {+ "McpToolCallProgressNotification": {"properties": {- "error": {- "$ref": "#/definitions/TurnError"+ "itemId": {+ "type": "string"+ },+ "message": {+ "type": "string"},"threadId": {"type": "string"},"turnId": {"type": "string"- },- "willRetry": {- "type": "boolean"}},"required": [- "error",+ "itemId",+ "message","threadId",- "turnId",- "willRetry"+ "turnId"],"type": "object"},- "EventMsg": {- "description": "Response event from the agent NOTE: Make sure none of these values have optional types, as it will mess up the extension code-gen.",- "oneOf": [- {- "description": "Error while executing a submission",- "properties": {- "codex_error_info": {- "anyOf": [- {- "$ref": "#/definitions/CodexErrorInfo2"- },- {- "type": "null"- }- ],- "default": null- },- "message": {- "type": "string"- },- "type": {- "enum": [- "error"- ],- "title": "ErrorEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"+ "McpToolCallResult": {+ "properties": {+ "content": {+ "items": true,+ "type": "array"+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "McpToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "MessagePhase": {+ "description": "Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as \"phase unknown\" and keep compatibility behavior for legacy models.",+ "oneOf": [+ {+ "description": "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.",+ "enum": [+ "commentary"],- "title": "ErrorEventMsg",- "type": "object"+ "type": "string"},{- "description": "Warning issued while processing a submission. Unlike `Error`, this indicates the turn continued but the user should still be notified.",- "properties": {- "message": {- "type": "string"- },- "type": {- "enum": [- "warning"- ],- "title": "WarningEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"+ "description": "The assistant's terminal answer text for the current turn.",+ "enum": [+ "final_answer"],- "title": "WarningEventMsg",- "type": "object"+ "type": "string"+ }+ ]+ },+ "ModelRerouteReason": {+ "enum": [+ "highRiskCyberActivity"+ ],+ "type": "string"+ },+ "ModelReroutedNotification": {+ "properties": {+ "fromModel": {+ "type": "string"+ },+ "reason": {+ "$ref": "#/definitions/ModelRerouteReason"+ },+ "threadId": {+ "type": "string"+ },+ "toModel": {+ "type": "string"},+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "fromModel",+ "reason",+ "threadId",+ "toModel",+ "turnId"+ ],+ "type": "object"+ },+ "PatchApplyStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "PatchChangeKind": {+ "oneOf": [{- "description": "Realtime conversation lifecycle start event.","properties": {- "session_id": {- "type": [- "string",- "null"- ]- },"type": {"enum": [- "realtime_conversation_started"+ "add"],- "title": "RealtimeConversationStartedEventMsgType",+ "title": "AddPatchChangeKindType","type": "string"}},"required": ["type"],- "title": "RealtimeConversationStartedEventMsg",+ "title": "AddPatchChangeKind","type": "object"},{- "description": "Realtime conversation streaming payload event.","properties": {- "payload": {- "$ref": "#/definitions/RealtimeEvent"- },"type": {"enum": [- "realtime_conversation_realtime"+ "delete"],- "title": "RealtimeConversationRealtimeEventMsgType",+ "title": "DeletePatchChangeKindType","type": "string"}},"required": [- "payload","type"],- "title": "RealtimeConversationRealtimeEventMsg",+ "title": "DeletePatchChangeKind","type": "object"},{- "description": "Realtime conversation lifecycle close event.","properties": {- "reason": {+ "move_path": {"type": ["string","null"@@ -1427,6517 +1155,915 @@},"type": {"enum": [- "realtime_conversation_closed"+ "update"],- "title": "RealtimeConversationClosedEventMsgType",+ "title": "UpdatePatchChangeKindType","type": "string"}},"required": ["type"],- "title": "RealtimeConversationClosedEventMsg",+ "title": "UpdatePatchChangeKind","type": "object"+ }+ ]+ },+ "PlanDeltaNotification": {+ "description": "EXPERIMENTAL - proposed plan streaming deltas for plan items. Clients should not assume concatenated deltas match the completed plan item content.",+ "properties": {+ "delta": {+ "type": "string"},- {- "description": "Model routing changed from the requested model to a different model.",- "properties": {- "from_model": {- "type": "string"- },- "reason": {- "$ref": "#/definitions/ModelRerouteReason2"- },- "to_model": {- "type": "string"+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "PlanType": {+ "enum": [+ "free",+ "go",+ "plus",+ "pro",+ "team",+ "business",+ "enterprise",+ "edu",+ "unknown"+ ],+ "type": "string"+ },+ "RateLimitSnapshot": {+ "properties": {+ "credits": {+ "anyOf": [+ {+ "$ref": "#/definitions/CreditsSnapshot"},- "type": {- "enum": [- "model_reroute"- ],- "title": "ModelRerouteEventMsgType",- "type": "string"+ {+ "type": "null"}- },- "required": [- "from_model",- "reason",- "to_model",- "type"- ],- "title": "ModelRerouteEventMsg",- "type": "object"+ ]},- {- "description": "Conversation history was compacted (either automatically or manually).",- "properties": {- "type": {- "enum": [- "context_compacted"- ],- "title": "ContextCompactedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ContextCompactedEventMsg",- "type": "object"+ "limitId": {+ "type": [+ "string",+ "null"+ ]},- {- "description": "Conversation history was rolled back by dropping the last N user turns.",- "properties": {- "num_turns": {- "description": "Number of user turns that were removed from context.",- "format": "uint32",- "minimum": 0.0,- "type": "integer"+ "limitName": {+ "type": [+ "string",+ "null"+ ]+ },+ "planType": {+ "anyOf": [+ {+ "$ref": "#/definitions/PlanType"},- "type": {- "enum": [- "thread_rolled_back"- ],- "title": "ThreadRolledBackEventMsgType",- "type": "string"+ {+ "type": "null"}- },- "required": [- "num_turns",- "type"- ],- "title": "ThreadRolledBackEventMsg",- "type": "object"+ ]},- {- "description": "Agent has started a turn. v1 wire format uses `task_started`; accept `turn_started` for v2 interop.",- "properties": {- "collaboration_mode_kind": {- "allOf": [- {- "$ref": "#/definitions/ModeKind"- }- ],- "default": "default"- },- "model_context_window": {- "format": "int64",- "type": [- "integer",- "null"- ]- },- "turn_id": {- "type": "string"+ "primary": {+ "anyOf": [+ {+ "$ref": "#/definitions/RateLimitWindow"},- "type": {- "enum": [- "task_started"- ],- "title": "TaskStartedEventMsgType",- "type": "string"+ {+ "type": "null"}- },- "required": [- "turn_id",- "type"+ ]+ },+ "secondary": {+ "anyOf": [+ {+ "$ref": "#/definitions/RateLimitWindow"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "RateLimitWindow": {+ "properties": {+ "resetsAt": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "usedPercent": {+ "format": "int32",+ "type": "integer"+ },+ "windowDurationMins": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "usedPercent"+ ],+ "type": "object"+ },+ "ReasoningSummaryPartAddedNotification": {+ "properties": {+ "itemId": {+ "type": "string"+ },+ "summaryIndex": {+ "format": "int64",+ "type": "integer"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "summaryIndex",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "ReasoningSummaryTextDeltaNotification": {+ "properties": {+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "summaryIndex": {+ "format": "int64",+ "type": "integer"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "summaryIndex",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "ReasoningTextDeltaNotification": {+ "properties": {+ "contentIndex": {+ "format": "int64",+ "type": "integer"+ },+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "contentIndex",+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "SessionSource": {+ "oneOf": [+ {+ "enum": [+ "cli",+ "vscode",+ "exec",+ "appServer",+ "unknown"],- "title": "TaskStartedEventMsg",- "type": "object"+ "type": "string"},{- "description": "Agent has completed all actions. v1 wire format uses `task_complete`; accept `turn_complete` for v2 interop.",+ "additionalProperties": false,"properties": {- "last_agent_message": {- "type": [- "string",- "null"- ]- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "task_complete"- ],- "title": "TaskCompleteEventMsgType",- "type": "string"+ "subAgent": {+ "$ref": "#/definitions/SubAgentSource"}},"required": [- "turn_id",- "type"+ "subAgent"],- "title": "TaskCompleteEventMsg",+ "title": "SubAgentSessionSource","type": "object"+ }+ ]+ },+ "SubAgentSource": {+ "oneOf": [+ {+ "enum": [+ "review",+ "compact",+ "memory_consolidation"+ ],+ "type": "string"},{- "description": "Usage update for the current session, including totals and last turn. Optional means unknown — UIs should not display when `None`.",+ "additionalProperties": false,"properties": {- "info": {- "anyOf": [- {- "$ref": "#/definitions/TokenUsageInfo"+ "thread_spawn": {+ "properties": {+ "agent_nickname": {+ "default": null,+ "type": [+ "string",+ "null"+ ]},- {- "type": "null"- }- ]- },- "rate_limits": {- "anyOf": [- {- "$ref": "#/definitions/RateLimitSnapshot2"+ "agent_role": {+ "default": null,+ "type": [+ "string",+ "null"+ ]},- {- "type": "null"+ "depth": {+ "format": "int32",+ "type": "integer"+ },+ "parent_thread_id": {+ "$ref": "#/definitions/ThreadId"}- ]- },- "type": {- "enum": [- "token_count"+ },+ "required": [+ "depth",+ "parent_thread_id"],- "title": "TokenCountEventMsgType",- "type": "string"+ "type": "object"}},"required": [- "type"+ "thread_spawn"],- "title": "TokenCountEventMsg",+ "title": "ThreadSpawnSubAgentSource","type": "object"},{- "description": "Agent text output message",+ "additionalProperties": false,"properties": {- "message": {- "type": "string"- },- "phase": {- "anyOf": [- {- "$ref": "#/definitions/MessagePhase"- },- {- "type": "null"- }- ],- "default": null- },- "type": {- "enum": [- "agent_message"- ],- "title": "AgentMessageEventMsgType",+ "other": {"type": "string"}},"required": [- "message",- "type"+ "other"],- "title": "AgentMessageEventMsg",+ "title": "OtherSubAgentSource","type": "object"+ }+ ]+ },+ "TerminalInteractionNotification": {+ "properties": {+ "itemId": {+ "type": "string"},- {- "description": "User/system input message (what was sent to the model)",- "properties": {- "images": {- "description": "Image URLs sourced from `UserInput::Image`. These are safe to replay in legacy UI history events and correspond to images sent to the model.",- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "local_images": {- "default": [],- "description": "Local file paths sourced from `UserInput::LocalImage`. These are kept so the UI can reattach images when editing history, and should not be sent to the model or treated as API-ready URLs.",- "items": {- "type": "string"- },- "type": "array"- },- "message": {- "type": "string"- },- "text_elements": {- "default": [],- "description": "UI-defined spans within `message` used to render or persist special elements.",- "items": {- "$ref": "#/definitions/TextElement2"- },- "type": "array"+ "processId": {+ "type": "string"+ },+ "stdin": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "processId",+ "stdin",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "allOf": [+ {+ "$ref": "#/definitions/ByteRange"+ }+ ],+ "description": "Byte range in the parent `text` buffer that this element occupies."+ },+ "placeholder": {+ "description": "Optional human-readable placeholder for the element, displayed in the UI.",+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "byteRange"+ ],+ "type": "object"+ },+ "TextPosition": {+ "properties": {+ "column": {+ "description": "1-based column number (in Unicode scalar values).",+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "line": {+ "description": "1-based line number.",+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "column",+ "line"+ ],+ "type": "object"+ },+ "TextRange": {+ "properties": {+ "end": {+ "$ref": "#/definitions/TextPosition"+ },+ "start": {+ "$ref": "#/definitions/TextPosition"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "Thread": {+ "properties": {+ "agentNickname": {+ "description": "Optional random unique nickname assigned to an AgentControl-spawned sub-agent.",+ "type": [+ "string",+ "null"+ ]+ },+ "agentRole": {+ "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",+ "type": [+ "string",+ "null"+ ]+ },+ "cliVersion": {+ "description": "Version of the CLI that created the thread.",+ "type": "string"+ },+ "createdAt": {+ "description": "Unix timestamp (in seconds) when the thread was created.",+ "format": "int64",+ "type": "integer"+ },+ "cwd": {+ "description": "Working directory captured for the thread.",+ "type": "string"+ },+ "gitInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/GitInfo"},- "type": {- "enum": [- "user_message"- ],- "title": "UserMessageEventMsgType",- "type": "string"+ {+ "type": "null"}- },- "required": [- "message",- "type"],- "title": "UserMessageEventMsg",- "type": "object"+ "description": "Optional Git metadata captured when the thread was created."+ },+ "id": {+ "type": "string"+ },+ "modelProvider": {+ "description": "Model provider used for this thread (for example, 'openai').",+ "type": "string"+ },+ "name": {+ "description": "Optional user-facing thread title.",+ "type": [+ "string",+ "null"+ ]+ },+ "path": {+ "description": "[UNSTABLE] Path to the thread on disk.",+ "type": [+ "string",+ "null"+ ]+ },+ "preview": {+ "description": "Usually the first user message in the thread, if available.",+ "type": "string"+ },+ "source": {+ "allOf": [+ {+ "$ref": "#/definitions/SessionSource"+ }+ ],+ "description": "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.)."+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/ThreadStatus"+ }+ ],+ "description": "Current runtime status for the thread."+ },+ "turns": {+ "description": "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",+ "items": {+ "$ref": "#/definitions/Turn"+ },+ "type": "array"},+ "updatedAt": {+ "description": "Unix timestamp (in seconds) when the thread was last updated.",+ "format": "int64",+ "type": "integer"+ }+ },+ "required": [+ "cliVersion",+ "createdAt",+ "cwd",+ "id",+ "modelProvider",+ "preview",+ "source",+ "status",+ "turns",+ "updatedAt"+ ],+ "type": "object"+ },+ "ThreadActiveFlag": {+ "enum": [+ "waitingOnApproval",+ "waitingOnUserInput"+ ],+ "type": "string"+ },+ "ThreadArchivedNotification": {+ "properties": {+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "type": "object"+ },+ "ThreadId": {+ "type": "string"+ },+ "ThreadItem": {+ "oneOf": [{- "description": "Agent text output delta message","properties": {- "delta": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "id": {"type": "string"},"type": {"enum": [- "agent_message_delta"+ "userMessage"],- "title": "AgentMessageDeltaEventMsgType",+ "title": "UserMessageThreadItemType","type": "string"}},"required": [- "delta",+ "content",+ "id","type"],- "title": "AgentMessageDeltaEventMsg",+ "title": "UserMessageThreadItem","type": "object"},{- "description": "Reasoning event from agent.","properties": {+ "id": {+ "type": "string"+ },+ "phase": {+ "anyOf": [+ {+ "$ref": "#/definitions/MessagePhase"+ },+ {+ "type": "null"+ }+ ],+ "default": null+ },"text": {"type": "string"},"type": {"enum": [- "agent_reasoning"+ "agentMessage"],- "title": "AgentReasoningEventMsgType",+ "title": "AgentMessageThreadItemType","type": "string"}},"required": [+ "id","text","type"],- "title": "AgentReasoningEventMsg",+ "title": "AgentMessageThreadItem","type": "object"},{- "description": "Agent reasoning delta event from agent.",+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.","properties": {- "delta": {+ "id": {+ "type": "string"+ },+ "text": {"type": "string"},"type": {"enum": [- "agent_reasoning_delta"+ "plan"],- "title": "AgentReasoningDeltaEventMsgType",+ "title": "PlanThreadItemType","type": "string"}},"required": [- "delta",+ "id",+ "text","type"],- "title": "AgentReasoningDeltaEventMsg",- "type": "object"- },- {- "description": "Raw chain-of-thought from agent.",- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "agent_reasoning_raw_content"- ],- "title": "AgentReasoningRawContentEventMsgType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "AgentReasoningRawContentEventMsg",+ "title": "PlanThreadItem","type": "object"},{- "description": "Agent reasoning content delta event from agent.","properties": {- "delta": {- "type": "string"+ "content": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"},- "type": {- "enum": [- "agent_reasoning_raw_content_delta"- ],- "title": "AgentReasoningRawContentDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "type"- ],- "title": "AgentReasoningRawContentDeltaEventMsg",- "type": "object"- },- {- "description": "Signaled when the model begins a new reasoning summary section (e.g., a new titled block).",- "properties": {- "item_id": {- "default": "",+ "id": {"type": "string"},- "summary_index": {- "default": 0,- "format": "int64",- "type": "integer"+ "summary": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"},"type": {"enum": [- "agent_reasoning_section_break"+ "reasoning"],- "title": "AgentReasoningSectionBreakEventMsgType",+ "title": "ReasoningThreadItemType","type": "string"}},"required": [+ "id","type"],- "title": "AgentReasoningSectionBreakEventMsg",+ "title": "ReasoningThreadItem","type": "object"},{- "description": "Ack the client's configure message.","properties": {- "approval_policy": {- "allOf": [- {- "$ref": "#/definitions/AskForApproval"- }- ],- "description": "When to escalate for approval for execution"- },- "cwd": {- "description": "Working directory that should be treated as the *root* of the session.",- "type": "string"- },- "forked_from_id": {- "anyOf": [- {- "$ref": "#/definitions/ThreadId"- },- {- "type": "null"- }- ]- },- "history_entry_count": {- "description": "Current number of entries in the history log.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "history_log_id": {- "description": "Identifier of the history log file (inode on Unix, 0 otherwise).",- "format": "uint64",- "minimum": 0.0,- "type": "integer"- },- "initial_messages": {- "description": "Optional initial messages (as events) for resumed sessions. When present, UIs can use these to seed the history.",- "items": {- "$ref": "#/definitions/EventMsg"- },+ "aggregatedOutput": {+ "description": "The command's output, aggregated from stdout and stderr.","type": [- "array",+ "string","null"]},- "model": {- "description": "Tell the client what model is being queried.",- "type": "string"- },- "model_provider_id": {+ "command": {+ "description": "The command to be executed.","type": "string"},- "network_proxy": {- "anyOf": [- {- "$ref": "#/definitions/SessionNetworkProxyRuntime"- },- {- "type": "null"- }- ],- "description": "Runtime proxy bind addresses, when the managed proxy was started for this session."+ "commandActions": {+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": "array"},- "reasoning_effort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ],- "description": "The effort the model is putting into reasoning about the user's request."+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"},- "rollout_path": {- "description": "Path in which the rollout is stored. Can be `None` for ephemeral threads",+ "durationMs": {+ "description": "The duration of the command execution in milliseconds.",+ "format": "int64","type": [- "string",+ "integer","null"]},- "sandbox_policy": {- "allOf": [- {- "$ref": "#/definitions/SandboxPolicy"- }- ],- "description": "How to sandbox commands executed in the system"- },- "session_id": {- "$ref": "#/definitions/ThreadId"- },- "thread_name": {- "description": "Optional user-facing thread name (may be unset).",+ "exitCode": {+ "description": "The command's exit code.",+ "format": "int32","type": [- "string",+ "integer","null"]},- "type": {- "enum": [- "session_configured"- ],- "title": "SessionConfiguredEventMsgType",+ "id": {"type": "string"- }- },- "required": [- "approval_policy",- "cwd",- "history_entry_count",- "history_log_id",- "model",- "model_provider_id",- "sandbox_policy",- "session_id",- "type"- ],- "title": "SessionConfiguredEventMsg",- "type": "object"- },- {- "description": "Updated session metadata (e.g., thread name changes).",- "properties": {- "thread_id": {- "$ref": "#/definitions/ThreadId"},- "thread_name": {+ "processId": {+ "description": "Identifier for the underlying PTY process (when available).","type": ["string","null"]},- "type": {- "enum": [- "thread_name_updated"- ],- "title": "ThreadNameUpdatedEventMsgType",- "type": "string"- }- },- "required": [- "thread_id",- "type"- ],- "title": "ThreadNameUpdatedEventMsg",- "type": "object"- },- {- "description": "Incremental MCP startup progress updates.",- "properties": {- "server": {- "description": "Server name being started.",- "type": "string"- },"status": {- "allOf": [- {- "$ref": "#/definitions/McpStartupStatus"- }- ],- "description": "Current startup status."+ "$ref": "#/definitions/CommandExecutionStatus"},"type": {"enum": [- "mcp_startup_update"+ "commandExecution"],- "title": "McpStartupUpdateEventMsgType",+ "title": "CommandExecutionThreadItemType","type": "string"}},"required": [- "server",+ "command",+ "commandActions",+ "cwd",+ "id","status","type"],- "title": "McpStartupUpdateEventMsg",+ "title": "CommandExecutionThreadItem","type": "object"},{- "description": "Aggregate MCP startup completion summary.","properties": {- "cancelled": {- "items": {- "type": "string"- },- "type": "array"- },- "failed": {- "items": {- "$ref": "#/definitions/McpStartupFailure"- },- "type": "array"- },- "ready": {+ "changes": {"items": {- "type": "string"+ "$ref": "#/definitions/FileUpdateChange"},"type": "array"},- "type": {- "enum": [- "mcp_startup_complete"- ],- "title": "McpStartupCompleteEventMsgType",- "type": "string"- }- },- "required": [- "cancelled",- "failed",- "ready",- "type"- ],- "title": "McpStartupCompleteEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Identifier so this can be paired with the McpToolCallEnd event.",+ "id": {"type": "string"},- "invocation": {- "$ref": "#/definitions/McpInvocation"+ "status": {+ "$ref": "#/definitions/PatchApplyStatus"},"type": {"enum": [- "mcp_tool_call_begin"+ "fileChange"],- "title": "McpToolCallBeginEventMsgType",+ "title": "FileChangeThreadItemType","type": "string"}},"required": [- "call_id",- "invocation",+ "changes",+ "id",+ "status","type"],- "title": "McpToolCallBeginEventMsg",+ "title": "FileChangeThreadItem","type": "object"},{"properties": {- "call_id": {- "description": "Identifier for the corresponding McpToolCallBegin that finished.",- "type": "string"+ "arguments": true,+ "durationMs": {+ "description": "The duration of the MCP tool call in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]},- "duration": {- "$ref": "#/definitions/Duration"+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallError"+ },+ {+ "type": "null"+ }+ ]},- "invocation": {- "$ref": "#/definitions/McpInvocation"+ "id": {+ "type": "string"},"result": {- "allOf": [+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallResult"+ },{- "$ref": "#/definitions/Result_of_CallToolResult_or_String"+ "type": "null"}- ],- "description": "Result of the tool call. Note this could be an error."+ ]},- "type": {- "enum": [- "mcp_tool_call_end"- ],- "title": "McpToolCallEndEventMsgType",+ "server": {"type": "string"- }- },- "required": [- "call_id",- "duration",- "invocation",- "result",- "type"- ],- "title": "McpToolCallEndEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {+ },+ "status": {+ "$ref": "#/definitions/McpToolCallStatus"+ },+ "tool": {"type": "string"},"type": {"enum": [- "web_search_begin"+ "mcpToolCall"],- "title": "WebSearchBeginEventMsgType",+ "title": "McpToolCallThreadItemType","type": "string"}},"required": [- "call_id",- "type"- ],- "title": "WebSearchBeginEventMsg",- "type": "object"- },- {- "properties": {- "action": {- "$ref": "#/definitions/WebSearchAction2"- },- "call_id": {- "type": "string"- },- "query": {- "type": "string"- },- "type": {- "enum": [- "web_search_end"- ],- "title": "WebSearchEndEventMsgType",- "type": "string"- }- },- "required": [- "action",- "call_id",- "query",- "type"- ],- "title": "WebSearchEndEventMsg",- "type": "object"- },- {- "description": "Notification that the server is about to execute a command.",- "properties": {- "call_id": {- "description": "Identifier so this can be paired with the ExecCommandEnd event.",- "type": "string"- },- "command": {- "description": "The command to be executed.",- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "description": "The command's working directory if not the default cwd for the agent.",- "type": "string"- },- "interaction_input": {- "description": "Raw input sent to a unified exec session (if this is an interaction event).",- "type": [- "string",- "null"- ]- },- "parsed_cmd": {- "items": {- "$ref": "#/definitions/ParsedCommand"- },- "type": "array"- },- "process_id": {- "description": "Identifier for the underlying PTY process (when available).",- "type": [- "string",- "null"- ]- },- "source": {- "allOf": [- {- "$ref": "#/definitions/ExecCommandSource"- }- ],- "default": "agent",- "description": "Where the command originated. Defaults to Agent for backward compatibility."- },- "turn_id": {- "description": "Turn ID that this command belongs to.",- "type": "string"- },- "type": {- "enum": [- "exec_command_begin"- ],- "title": "ExecCommandBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "command",- "cwd",- "parsed_cmd",- "turn_id",- "type"- ],- "title": "ExecCommandBeginEventMsg",- "type": "object"- },- {- "description": "Incremental chunk of output from a running command.",- "properties": {- "call_id": {- "description": "Identifier for the ExecCommandBegin that produced this chunk.",- "type": "string"- },- "chunk": {- "description": "Raw bytes from the stream (may not be valid UTF-8).",- "type": "string"- },- "stream": {- "allOf": [- {- "$ref": "#/definitions/ExecOutputStream"- }- ],- "description": "Which stream produced this chunk."- },- "type": {- "enum": [- "exec_command_output_delta"- ],- "title": "ExecCommandOutputDeltaEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "chunk",- "stream",- "type"- ],- "title": "ExecCommandOutputDeltaEventMsg",- "type": "object"- },- {- "description": "Terminal interaction for an in-progress command (stdin sent and stdout observed).",- "properties": {- "call_id": {- "description": "Identifier for the ExecCommandBegin that produced this chunk.",- "type": "string"- },- "process_id": {- "description": "Process id associated with the running command.",- "type": "string"- },- "stdin": {- "description": "Stdin sent to the running session.",- "type": "string"- },- "type": {- "enum": [- "terminal_interaction"- ],- "title": "TerminalInteractionEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "process_id",- "stdin",- "type"- ],- "title": "TerminalInteractionEventMsg",- "type": "object"- },- {- "properties": {- "aggregated_output": {- "default": "",- "description": "Captured aggregated output",- "type": "string"- },- "call_id": {- "description": "Identifier for the ExecCommandBegin that finished.",- "type": "string"- },- "command": {- "description": "The command that was executed.",- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "description": "The command's working directory if not the default cwd for the agent.",- "type": "string"- },- "duration": {- "allOf": [- {- "$ref": "#/definitions/Duration"- }- ],- "description": "The duration of the command execution."- },- "exit_code": {- "description": "The command's exit code.",- "format": "int32",- "type": "integer"- },- "formatted_output": {- "description": "Formatted output from the command, as seen by the model.",- "type": "string"- },- "interaction_input": {- "description": "Raw input sent to a unified exec session (if this is an interaction event).",- "type": [- "string",- "null"- ]- },- "parsed_cmd": {- "items": {- "$ref": "#/definitions/ParsedCommand"- },- "type": "array"- },- "process_id": {- "description": "Identifier for the underlying PTY process (when available).",- "type": [- "string",- "null"- ]- },- "source": {- "allOf": [- {- "$ref": "#/definitions/ExecCommandSource"- }- ],- "default": "agent",- "description": "Where the command originated. Defaults to Agent for backward compatibility."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/ExecCommandStatus"- }- ],- "description": "Completion status for this command execution."- },- "stderr": {- "description": "Captured stderr",- "type": "string"- },- "stdout": {- "description": "Captured stdout",- "type": "string"- },- "turn_id": {- "description": "Turn ID that this command belongs to.",- "type": "string"- },- "type": {- "enum": [- "exec_command_end"- ],- "title": "ExecCommandEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "command",- "cwd",- "duration",- "exit_code",- "formatted_output",- "parsed_cmd",- "status",- "stderr",- "stdout",- "turn_id",- "type"- ],- "title": "ExecCommandEndEventMsg",- "type": "object"- },- {- "description": "Notification that the agent attached a local image via the view_image tool.",- "properties": {- "call_id": {- "description": "Identifier for the originating tool call.",- "type": "string"- },- "path": {- "description": "Local filesystem path provided to the tool.",- "type": "string"- },- "type": {- "enum": [- "view_image_tool_call"- ],- "title": "ViewImageToolCallEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "path",- "type"- ],- "title": "ViewImageToolCallEventMsg",- "type": "object"- },- {- "properties": {- "approval_id": {- "description": "Identifier for this specific approval callback.\n\nWhen absent, the approval is for the command item itself (`call_id`). This is present for subcommand approvals (via execve intercept).",- "type": [- "string",- "null"- ]- },- "call_id": {- "description": "Identifier for the associated command execution item.",- "type": "string"- },- "command": {- "description": "The command to be executed.",- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "description": "The command's working directory.",- "type": "string"- },- "network_approval_context": {- "anyOf": [- {- "$ref": "#/definitions/NetworkApprovalContext"- },- {- "type": "null"- }- ],- "description": "Optional network context for a blocked request that can be approved."- },- "parsed_cmd": {- "items": {- "$ref": "#/definitions/ParsedCommand"- },- "type": "array"- },- "proposed_execpolicy_amendment": {- "description": "Proposed execpolicy amendment that can be applied to allow future runs.",- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "reason": {- "description": "Optional human-readable reason for the approval (e.g. retry without sandbox).",- "type": [- "string",- "null"- ]- },- "turn_id": {- "default": "",- "description": "Turn ID that this command belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "exec_approval_request"- ],- "title": "ExecApprovalRequestEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "command",- "cwd",- "parsed_cmd",- "type"- ],- "title": "ExecApprovalRequestEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Responses API call id for the associated tool call, if available.",- "type": "string"- },- "questions": {- "items": {- "$ref": "#/definitions/RequestUserInputQuestion"- },- "type": "array"- },- "turn_id": {- "default": "",- "description": "Turn ID that this request belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "request_user_input"- ],- "title": "RequestUserInputEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "questions",- "type"- ],- "title": "RequestUserInputEventMsg",- "type": "object"- },- {- "properties": {- "arguments": true,- "callId": {- "type": "string"- },- "tool": {- "type": "string"- },- "turnId": {- "type": "string"- },- "type": {- "enum": [- "dynamic_tool_call_request"- ],- "title": "DynamicToolCallRequestEventMsgType",- "type": "string"- }- },- "required": [- "arguments",- "callId",- "tool",- "turnId",- "type"- ],- "title": "DynamicToolCallRequestEventMsg",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "message": {- "type": "string"- },- "server_name": {- "type": "string"- },- "type": {- "enum": [- "elicitation_request"- ],- "title": "ElicitationRequestEventMsgType",- "type": "string"- }- },- "required": [- "id",- "message",- "server_name",- "type"- ],- "title": "ElicitationRequestEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Responses API call id for the associated patch apply call, if available.",- "type": "string"- },- "changes": {- "additionalProperties": {- "$ref": "#/definitions/FileChange"- },- "type": "object"- },- "grant_root": {- "description": "When set, the agent is asking the user to allow writes under this root for the remainder of the session.",- "type": [- "string",- "null"- ]- },- "reason": {- "description": "Optional explanatory reason (e.g. request for extra write access).",- "type": [- "string",- "null"- ]- },- "turn_id": {- "default": "",- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility with older senders.",- "type": "string"- },- "type": {- "enum": [- "apply_patch_approval_request"- ],- "title": "ApplyPatchApprovalRequestEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "changes",- "type"- ],- "title": "ApplyPatchApprovalRequestEventMsg",- "type": "object"- },- {- "description": "Notification advising the user that something they are using has been deprecated and should be phased out.",- "properties": {- "details": {- "description": "Optional extra guidance, such as migration steps or rationale.",- "type": [- "string",- "null"- ]- },- "summary": {- "description": "Concise summary of what is deprecated.",- "type": "string"- },- "type": {- "enum": [- "deprecation_notice"- ],- "title": "DeprecationNoticeEventMsgType",- "type": "string"- }- },- "required": [- "summary",- "type"- ],- "title": "DeprecationNoticeEventMsg",- "type": "object"- },- {- "properties": {- "message": {- "type": "string"- },- "type": {- "enum": [- "background_event"- ],- "title": "BackgroundEventEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "BackgroundEventEventMsg",- "type": "object"- },- {- "properties": {- "message": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "undo_started"- ],- "title": "UndoStartedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "UndoStartedEventMsg",- "type": "object"- },- {- "properties": {- "message": {- "type": [- "string",- "null"- ]- },- "success": {- "type": "boolean"- },- "type": {- "enum": [- "undo_completed"- ],- "title": "UndoCompletedEventMsgType",- "type": "string"- }- },- "required": [- "success",- "type"- ],- "title": "UndoCompletedEventMsg",- "type": "object"- },- {- "description": "Notification that a model stream experienced an error or disconnect and the system is handling it (e.g., retrying with backoff).",- "properties": {- "additional_details": {- "default": null,- "description": "Optional details about the underlying stream failure (often the same human-readable message that is surfaced as the terminal error if retries are exhausted).",- "type": [- "string",- "null"- ]- },- "codex_error_info": {- "anyOf": [- {- "$ref": "#/definitions/CodexErrorInfo2"- },- {- "type": "null"- }- ],- "default": null- },- "message": {- "type": "string"- },- "type": {- "enum": [- "stream_error"- ],- "title": "StreamErrorEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "StreamErrorEventMsg",- "type": "object"- },- {- "description": "Notification that the agent is about to apply a code patch. Mirrors `ExecCommandBegin` so front‑ends can show progress indicators.",- "properties": {- "auto_approved": {- "description": "If true, there was no ApplyPatchApprovalRequest for this patch.",- "type": "boolean"- },- "call_id": {- "description": "Identifier so this can be paired with the PatchApplyEnd event.",- "type": "string"- },- "changes": {- "additionalProperties": {- "$ref": "#/definitions/FileChange"- },- "description": "The changes to be applied.",- "type": "object"- },- "turn_id": {- "default": "",- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "patch_apply_begin"- ],- "title": "PatchApplyBeginEventMsgType",- "type": "string"- }- },- "required": [- "auto_approved",- "call_id",- "changes",- "type"- ],- "title": "PatchApplyBeginEventMsg",- "type": "object"- },- {- "description": "Notification that a patch application has finished.",- "properties": {- "call_id": {- "description": "Identifier for the PatchApplyBegin that finished.",- "type": "string"- },- "changes": {- "additionalProperties": {- "$ref": "#/definitions/FileChange"- },- "default": {},- "description": "The changes that were applied (mirrors PatchApplyBeginEvent::changes).",- "type": "object"- },- "status": {- "allOf": [- {- "$ref": "#/definitions/PatchApplyStatus2"- }- ],- "description": "Completion status for this patch application."- },- "stderr": {- "description": "Captured stderr (parser errors, IO failures, etc.).",- "type": "string"- },- "stdout": {- "description": "Captured stdout (summary printed by apply_patch).",- "type": "string"- },- "success": {- "description": "Whether the patch was applied successfully.",- "type": "boolean"- },- "turn_id": {- "default": "",- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "patch_apply_end"- ],- "title": "PatchApplyEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "status",- "stderr",- "stdout",- "success",- "type"- ],- "title": "PatchApplyEndEventMsg",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "turn_diff"- ],- "title": "TurnDiffEventMsgType",- "type": "string"- },- "unified_diff": {- "type": "string"- }- },- "required": [- "type",- "unified_diff"- ],- "title": "TurnDiffEventMsg",- "type": "object"- },- {- "description": "Response to GetHistoryEntryRequest.",- "properties": {- "entry": {- "anyOf": [- {- "$ref": "#/definitions/HistoryEntry"- },- {- "type": "null"- }- ],- "description": "The entry at the requested offset, if available and parseable."- },- "log_id": {- "format": "uint64",- "minimum": 0.0,- "type": "integer"- },- "offset": {- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "type": {- "enum": [- "get_history_entry_response"- ],- "title": "GetHistoryEntryResponseEventMsgType",- "type": "string"- }- },- "required": [- "log_id",- "offset",- "type"- ],- "title": "GetHistoryEntryResponseEventMsg",- "type": "object"- },- {- "description": "List of MCP tools available to the agent.",- "properties": {- "auth_statuses": {- "additionalProperties": {- "$ref": "#/definitions/McpAuthStatus"- },- "description": "Authentication status for each configured MCP server.",- "type": "object"- },- "resource_templates": {- "additionalProperties": {- "items": {- "$ref": "#/definitions/ResourceTemplate"- },- "type": "array"- },- "description": "Known resource templates grouped by server name.",- "type": "object"- },- "resources": {- "additionalProperties": {- "items": {- "$ref": "#/definitions/Resource"- },- "type": "array"- },- "description": "Known resources grouped by server name.",- "type": "object"- },- "tools": {- "additionalProperties": {- "$ref": "#/definitions/Tool"- },- "description": "Fully qualified tool name -> tool definition.",- "type": "object"- },- "type": {- "enum": [- "mcp_list_tools_response"- ],- "title": "McpListToolsResponseEventMsgType",- "type": "string"- }- },- "required": [- "auth_statuses",- "resource_templates",- "resources",- "tools",- "type"- ],- "title": "McpListToolsResponseEventMsg",- "type": "object"- },- {- "description": "List of custom prompts available to the agent.",- "properties": {- "custom_prompts": {- "items": {- "$ref": "#/definitions/CustomPrompt"- },- "type": "array"- },- "type": {- "enum": [- "list_custom_prompts_response"- ],- "title": "ListCustomPromptsResponseEventMsgType",- "type": "string"- }- },- "required": [- "custom_prompts",- "type"- ],- "title": "ListCustomPromptsResponseEventMsg",- "type": "object"- },- {- "description": "List of skills available to the agent.",- "properties": {- "skills": {- "items": {- "$ref": "#/definitions/SkillsListEntry"- },- "type": "array"- },- "type": {- "enum": [- "list_skills_response"- ],- "title": "ListSkillsResponseEventMsgType",- "type": "string"- }- },- "required": [- "skills",- "type"- ],- "title": "ListSkillsResponseEventMsg",- "type": "object"- },- {- "description": "List of remote skills available to the agent.",- "properties": {- "skills": {- "items": {- "$ref": "#/definitions/RemoteSkillSummary"- },- "type": "array"- },- "type": {- "enum": [- "list_remote_skills_response"- ],- "title": "ListRemoteSkillsResponseEventMsgType",- "type": "string"- }- },- "required": [- "skills",- "type"- ],- "title": "ListRemoteSkillsResponseEventMsg",- "type": "object"- },- {- "description": "Remote skill downloaded to local cache.",- "properties": {- "id": {- "type": "string"- },- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "type": {- "enum": [- "remote_skill_downloaded"- ],- "title": "RemoteSkillDownloadedEventMsgType",- "type": "string"- }- },- "required": [- "id",- "name",- "path",- "type"- ],- "title": "RemoteSkillDownloadedEventMsg",- "type": "object"- },- {- "description": "Notification that skill data may have been updated and clients may want to reload.",- "properties": {- "type": {- "enum": [- "skills_update_available"- ],- "title": "SkillsUpdateAvailableEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "SkillsUpdateAvailableEventMsg",- "type": "object"- },- {- "properties": {- "explanation": {- "default": null,- "description": "Arguments for the `update_plan` todo/checklist tool (not plan mode).",- "type": [- "string",- "null"- ]- },- "plan": {- "items": {- "$ref": "#/definitions/PlanItemArg"- },- "type": "array"- },- "type": {- "enum": [- "plan_update"- ],- "title": "PlanUpdateEventMsgType",- "type": "string"- }- },- "required": [- "plan",- "type"- ],- "title": "PlanUpdateEventMsg",- "type": "object"- },- {- "properties": {- "reason": {- "$ref": "#/definitions/TurnAbortReason"- },- "turn_id": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "turn_aborted"- ],- "title": "TurnAbortedEventMsgType",- "type": "string"- }- },- "required": [- "reason",- "type"- ],- "title": "TurnAbortedEventMsg",- "type": "object"- },- {- "description": "Notification that the agent is shutting down.",- "properties": {- "type": {- "enum": [- "shutdown_complete"- ],- "title": "ShutdownCompleteEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ShutdownCompleteEventMsg",- "type": "object"- },- {- "description": "Entered review mode.",- "properties": {- "target": {- "$ref": "#/definitions/ReviewTarget"- },- "type": {- "enum": [- "entered_review_mode"- ],- "title": "EnteredReviewModeEventMsgType",- "type": "string"- },- "user_facing_hint": {- "type": [- "string",- "null"- ]- }- },- "required": [- "target",- "type"- ],- "title": "EnteredReviewModeEventMsg",- "type": "object"- },- {- "description": "Exited review mode with an optional final result to apply.",- "properties": {- "review_output": {- "anyOf": [- {- "$ref": "#/definitions/ReviewOutputEvent"- },- {- "type": "null"- }- ]- },- "type": {- "enum": [- "exited_review_mode"- ],- "title": "ExitedReviewModeEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ExitedReviewModeEventMsg",- "type": "object"- },- {- "properties": {- "item": {- "$ref": "#/definitions/ResponseItem"- },- "type": {- "enum": [- "raw_response_item"- ],- "title": "RawResponseItemEventMsgType",- "type": "string"- }- },- "required": [- "item",- "type"- ],- "title": "RawResponseItemEventMsg",- "type": "object"- },- {- "properties": {- "item": {- "$ref": "#/definitions/TurnItem"- },- "thread_id": {- "$ref": "#/definitions/ThreadId"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "item_started"- ],- "title": "ItemStartedEventMsgType",- "type": "string"- }- },- "required": [- "item",- "thread_id",- "turn_id",- "type"- ],- "title": "ItemStartedEventMsg",- "type": "object"- },- {- "properties": {- "item": {- "$ref": "#/definitions/TurnItem"- },- "thread_id": {- "$ref": "#/definitions/ThreadId"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "item_completed"- ],- "title": "ItemCompletedEventMsgType",- "type": "string"- }- },- "required": [- "item",- "thread_id",- "turn_id",- "type"- ],- "title": "ItemCompletedEventMsg",- "type": "object"- },- {- "properties": {- "delta": {- "type": "string"- },- "item_id": {- "type": "string"- },- "thread_id": {- "type": "string"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "agent_message_content_delta"- ],- "title": "AgentMessageContentDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "item_id",- "thread_id",- "turn_id",- "type"- ],- "title": "AgentMessageContentDeltaEventMsg",- "type": "object"- },- {- "properties": {- "delta": {- "type": "string"- },- "item_id": {- "type": "string"- },- "thread_id": {- "type": "string"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "plan_delta"- ],- "title": "PlanDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "item_id",- "thread_id",- "turn_id",- "type"- ],- "title": "PlanDeltaEventMsg",- "type": "object"- },- {- "properties": {- "delta": {- "type": "string"- },- "item_id": {- "type": "string"- },- "summary_index": {- "default": 0,- "format": "int64",- "type": "integer"- },- "thread_id": {- "type": "string"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "reasoning_content_delta"- ],- "title": "ReasoningContentDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "item_id",- "thread_id",- "turn_id",- "type"- ],- "title": "ReasoningContentDeltaEventMsg",- "type": "object"- },- {- "properties": {- "content_index": {- "default": 0,- "format": "int64",- "type": "integer"- },- "delta": {- "type": "string"- },- "item_id": {- "type": "string"- },- "thread_id": {- "type": "string"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "reasoning_raw_content_delta"- ],- "title": "ReasoningRawContentDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "item_id",- "thread_id",- "turn_id",- "type"- ],- "title": "ReasoningRawContentDeltaEventMsg",- "type": "object"- },- {- "description": "Collab interaction: agent spawn begin.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "prompt": {- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",- "type": "string"- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_agent_spawn_begin"- ],- "title": "CollabAgentSpawnBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "prompt",- "sender_thread_id",- "type"- ],- "title": "CollabAgentSpawnBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: agent spawn end.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "new_agent_nickname": {- "description": "Optional nickname assigned to the new agent.",- "type": [- "string",- "null"- ]- },- "new_agent_role": {- "description": "Optional role assigned to the new agent.",- "type": [- "string",- "null"- ]- },- "new_thread_id": {- "anyOf": [- {- "$ref": "#/definitions/ThreadId"- },- {- "type": "null"- }- ],- "description": "Thread ID of the newly spawned agent, if it was created."- },- "prompt": {- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",- "type": "string"- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the new agent reported to the sender agent."- },- "type": {- "enum": [- "collab_agent_spawn_end"- ],- "title": "CollabAgentSpawnEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "prompt",- "sender_thread_id",- "status",- "type"- ],- "title": "CollabAgentSpawnEndEventMsg",- "type": "object"- },- {- "description": "Collab interaction: agent interaction begin.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "prompt": {- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",- "type": "string"- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_agent_interaction_begin"- ],- "title": "CollabAgentInteractionBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "prompt",- "receiver_thread_id",- "sender_thread_id",- "type"- ],- "title": "CollabAgentInteractionBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: agent interaction end.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "prompt": {- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the receiver agent reported to the sender agent."- },- "type": {- "enum": [- "collab_agent_interaction_end"- ],- "title": "CollabAgentInteractionEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "prompt",- "receiver_thread_id",- "sender_thread_id",- "status",- "type"- ],- "title": "CollabAgentInteractionEndEventMsg",- "type": "object"- },- {- "description": "Collab interaction: waiting begin.",- "properties": {- "call_id": {- "description": "ID of the waiting call.",- "type": "string"- },- "receiver_agents": {- "description": "Optional nicknames/roles for receivers.",- "items": {- "$ref": "#/definitions/CollabAgentRef"- },- "type": "array"- },- "receiver_thread_ids": {- "description": "Thread ID of the receivers.",- "items": {- "$ref": "#/definitions/ThreadId"- },- "type": "array"- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_waiting_begin"- ],- "title": "CollabWaitingBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_ids",- "sender_thread_id",- "type"- ],- "title": "CollabWaitingBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: waiting end.",- "properties": {- "agent_statuses": {- "description": "Optional receiver metadata paired with final statuses.",- "items": {- "$ref": "#/definitions/CollabAgentStatusEntry"- },- "type": "array"- },- "call_id": {- "description": "ID of the waiting call.",- "type": "string"- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "statuses": {- "additionalProperties": {- "$ref": "#/definitions/AgentStatus"- },- "description": "Last known status of the receiver agents reported to the sender agent.",- "type": "object"- },- "type": {- "enum": [- "collab_waiting_end"- ],- "title": "CollabWaitingEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "sender_thread_id",- "statuses",- "type"- ],- "title": "CollabWaitingEndEventMsg",- "type": "object"- },- {- "description": "Collab interaction: close begin.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_close_begin"- ],- "title": "CollabCloseBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "type"- ],- "title": "CollabCloseBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: close end.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the receiver agent reported to the sender agent before the close."- },- "type": {- "enum": [- "collab_close_end"- ],- "title": "CollabCloseEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "status",- "type"- ],- "title": "CollabCloseEndEventMsg",- "type": "object"- },- {- "description": "Collab interaction: resume begin.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_resume_begin"- ],- "title": "CollabResumeBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "type"- ],- "title": "CollabResumeBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: resume end.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the receiver agent reported to the sender agent after resume."- },- "type": {- "enum": [- "collab_resume_end"- ],- "title": "CollabResumeEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "status",- "type"- ],- "title": "CollabResumeEndEventMsg",- "type": "object"- }- ]- },- "ExecCommandSource": {- "enum": [- "agent",- "user_shell",- "unified_exec_startup",- "unified_exec_interaction"- ],- "type": "string"- },- "ExecCommandStatus": {- "enum": [- "completed",- "failed",- "declined"- ],- "type": "string"- },- "ExecOutputStream": {- "enum": [- "stdout",- "stderr"- ],- "type": "string"- },- "FileChange": {- "oneOf": [- {- "properties": {- "content": {- "type": "string"- },- "type": {- "enum": [- "add"- ],- "title": "AddFileChangeType",- "type": "string"- }- },- "required": [- "content",- "type"- ],- "title": "AddFileChange",- "type": "object"- },- {- "properties": {- "content": {- "type": "string"- },- "type": {- "enum": [- "delete"- ],- "title": "DeleteFileChangeType",- "type": "string"- }- },- "required": [- "content",- "type"- ],- "title": "DeleteFileChange",- "type": "object"- },- {- "properties": {- "move_path": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "update"- ],- "title": "UpdateFileChangeType",- "type": "string"- },- "unified_diff": {- "type": "string"- }- },- "required": [- "type",- "unified_diff"- ],- "title": "UpdateFileChange",- "type": "object"- }- ]- },- "FileChangeOutputDeltaNotification": {- "properties": {- "delta": {- "type": "string"- },- "itemId": {- "type": "string"- },- "threadId": {- "type": "string"- },- "turnId": {- "type": "string"- }- },- "required": [- "delta",- "itemId",- "threadId",- "turnId"- ],- "type": "object"- },- "FileUpdateChange": {- "properties": {- "diff": {- "type": "string"- },- "kind": {- "$ref": "#/definitions/PatchChangeKind"- },- "path": {- "type": "string"- }- },- "required": [- "diff",- "kind",- "path"- ],- "type": "object"- },- "FunctionCallOutputBody": {- "anyOf": [- {- "type": "string"- },- {- "items": {- "$ref": "#/definitions/FunctionCallOutputContentItem"- },- "type": "array"- }- ]- },- "FunctionCallOutputContentItem": {- "description": "Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.",- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "input_text"- ],- "title": "InputTextFunctionCallOutputContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "InputTextFunctionCallOutputContentItem",- "type": "object"- },- {- "properties": {- "image_url": {- "type": "string"- },- "type": {- "enum": [- "input_image"- ],- "title": "InputImageFunctionCallOutputContentItemType",- "type": "string"- }- },- "required": [- "image_url",- "type"- ],- "title": "InputImageFunctionCallOutputContentItem",- "type": "object"- }- ]- },- "FunctionCallOutputPayload": {- "description": "The payload we send back to OpenAI when reporting a tool call result.\n\n`body` serializes directly as the wire value for `function_call_output.output`. `success` remains internal metadata for downstream handling.",- "properties": {- "body": {- "$ref": "#/definitions/FunctionCallOutputBody"- },- "success": {- "type": [- "boolean",- "null"- ]- }- },- "required": [- "body"- ],- "type": "object"- },- "FuzzyFileSearchResult": {- "description": "Superset of [`codex_file_search::FileMatch`]",- "properties": {- "file_name": {- "type": "string"- },- "indices": {- "items": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "type": [- "array",- "null"- ]- },- "path": {- "type": "string"- },- "root": {- "type": "string"- },- "score": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "file_name",- "path",- "root",- "score"- ],- "type": "object"- },- "FuzzyFileSearchSessionCompletedNotification": {- "properties": {- "sessionId": {- "type": "string"- }- },- "required": [- "sessionId"- ],- "type": "object"- },- "FuzzyFileSearchSessionUpdatedNotification": {- "properties": {- "files": {- "items": {- "$ref": "#/definitions/FuzzyFileSearchResult"- },- "type": "array"- },- "query": {- "type": "string"- },- "sessionId": {- "type": "string"- }- },- "required": [- "files",- "query",- "sessionId"- ],- "type": "object"- },- "GhostCommit": {- "description": "Details of a ghost commit created from a repository state.",- "properties": {- "id": {- "type": "string"- },- "parent": {- "type": [- "string",- "null"- ]- },- "preexisting_untracked_dirs": {- "items": {- "type": "string"- },- "type": "array"- },- "preexisting_untracked_files": {- "items": {- "type": "string"- },- "type": "array"- }- },- "required": [- "id",- "preexisting_untracked_dirs",- "preexisting_untracked_files"- ],- "type": "object"- },- "GitInfo": {- "properties": {- "branch": {- "type": [- "string",- "null"- ]- },- "originUrl": {- "type": [- "string",- "null"- ]- },- "sha": {- "type": [- "string",- "null"- ]- }- },- "type": "object"- },- "HistoryEntry": {- "properties": {- "conversation_id": {- "type": "string"- },- "text": {- "type": "string"- },- "ts": {- "format": "uint64",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "conversation_id",- "text",- "ts"- ],- "type": "object"- },- "ItemCompletedNotification": {- "properties": {- "item": {- "$ref": "#/definitions/ThreadItem"- },- "threadId": {- "type": "string"- },- "turnId": {- "type": "string"- }- },- "required": [- "item",- "threadId",- "turnId"- ],- "type": "object"- },- "ItemStartedNotification": {- "properties": {- "item": {- "$ref": "#/definitions/ThreadItem"- },- "threadId": {- "type": "string"- },- "turnId": {- "type": "string"- }- },- "required": [- "item",- "threadId",- "turnId"- ],- "type": "object"- },- "LocalShellAction": {- "oneOf": [- {- "properties": {- "command": {- "items": {- "type": "string"- },- "type": "array"- },- "env": {- "additionalProperties": {- "type": "string"- },- "type": [- "object",- "null"- ]- },- "timeout_ms": {- "format": "uint64",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- },- "type": {- "enum": [- "exec"- ],- "title": "ExecLocalShellActionType",- "type": "string"- },- "user": {- "type": [- "string",- "null"- ]- },- "working_directory": {- "type": [- "string",- "null"- ]- }- },- "required": [- "command",- "type"- ],- "title": "ExecLocalShellAction",- "type": "object"- }- ]- },- "LocalShellStatus": {- "enum": [- "completed",- "in_progress",- "incomplete"- ],- "type": "string"- },- "LoginChatGptCompleteNotification": {- "description": "Deprecated in favor of AccountLoginCompletedNotification.",- "properties": {- "error": {- "type": [- "string",- "null"- ]- },- "loginId": {- "type": "string"- },- "success": {- "type": "boolean"- }- },- "required": [- "loginId",- "success"- ],- "type": "object"- },- "McpAuthStatus": {- "enum": [- "unsupported",- "not_logged_in",- "bearer_token",- "o_auth"- ],- "type": "string"- },- "McpInvocation": {- "properties": {- "arguments": {- "description": "Arguments to the tool call."- },- "server": {- "description": "Name of the MCP server as defined in the config.",- "type": "string"- },- "tool": {- "description": "Name of the tool as given by the MCP server.",- "type": "string"- }- },- "required": [- "server",- "tool"- ],- "type": "object"- },- "McpServerOauthLoginCompletedNotification": {- "properties": {- "error": {- "type": [- "string",- "null"- ]- },- "name": {- "type": "string"- },- "success": {- "type": "boolean"- }- },- "required": [- "name",- "success"- ],- "type": "object"- },- "McpStartupFailure": {- "properties": {- "error": {- "type": "string"- },- "server": {- "type": "string"- }- },- "required": [- "error",- "server"- ],- "type": "object"- },- "McpStartupStatus": {- "oneOf": [- {- "properties": {- "state": {- "enum": [- "starting"- ],- "type": "string"- }- },- "required": [- "state"- ],- "title": "StateMcpStartupStatus",- "type": "object"- },- {- "properties": {- "state": {- "enum": [- "ready"- ],- "type": "string"- }- },- "required": [- "state"- ],- "title": "StateMcpStartupStatus2",- "type": "object"- },- {- "properties": {- "error": {- "type": "string"- },- "state": {- "enum": [- "failed"- ],- "type": "string"- }- },- "required": [- "error",- "state"- ],- "type": "object"- },- {- "properties": {- "state": {- "enum": [- "cancelled"- ],- "type": "string"- }- },- "required": [- "state"- ],- "title": "StateMcpStartupStatus3",- "type": "object"- }- ]- },- "McpToolCallError": {- "properties": {- "message": {- "type": "string"- }- },- "required": [- "message"- ],- "type": "object"- },- "McpToolCallProgressNotification": {- "properties": {- "itemId": {- "type": "string"- },- "message": {- "type": "string"- },- "threadId": {- "type": "string"- },- "turnId": {- "type": "string"- }- },- "required": [- "itemId",- "message",- "threadId",- "turnId"- ],- "type": "object"- },- "McpToolCallResult": {- "properties": {- "content": {- "items": true,- "type": "array"- },- "structuredContent": true- },- "required": [- "content"- ],- "type": "object"- },- "McpToolCallStatus": {- "enum": [- "inProgress",- "completed",- "failed"- ],- "type": "string"- },- "MessagePhase": {- "description": "Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as \"phase unknown\" and keep compatibility behavior for legacy models.",- "oneOf": [- {- "description": "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.",- "enum": [- "commentary"- ],- "type": "string"- },- {- "description": "The assistant's terminal answer text for the current turn.",- "enum": [- "final_answer"- ],- "type": "string"- }- ]- },- "ModeKind": {- "description": "Initial collaboration mode to use when the TUI starts.",- "enum": [- "plan",- "default"- ],- "type": "string"- },- "ModelRerouteReason": {- "enum": [- "highRiskCyberActivity"- ],- "type": "string"- },- "ModelRerouteReason2": {- "enum": [- "high_risk_cyber_activity"- ],- "type": "string"- },- "ModelReroutedNotification": {- "properties": {- "fromModel": {- "type": "string"- },- "reason": {- "$ref": "#/definitions/ModelRerouteReason"- },- "threadId": {- "type": "string"- },- "toModel": {- "type": "string"- },- "turnId": {- "type": "string"- }- },- "required": [- "fromModel",- "reason",- "threadId",- "toModel",- "turnId"- ],- "type": "object"- },- "NetworkAccess": {- "description": "Represents whether outbound network access is available to the agent.",- "enum": [- "restricted",- "enabled"- ],- "type": "string"- },- "NetworkApprovalContext": {- "properties": {- "host": {- "type": "string"- },- "protocol": {- "$ref": "#/definitions/NetworkApprovalProtocol"- }- },- "required": [- "host",- "protocol"- ],- "type": "object"- },- "NetworkApprovalProtocol": {- "enum": [- "http",- "https",- "socks5_tcp",- "socks5_udp"- ],- "type": "string"- },- "ParsedCommand": {- "oneOf": [- {- "properties": {- "cmd": {- "type": "string"- },- "name": {- "type": "string"- },- "path": {- "description": "(Best effort) Path to the file being read by the command. When possible, this is an absolute path, though when relative, it should be resolved against the `cwd`` that will be used to run the command to derive the absolute path.",- "type": "string"- },- "type": {- "enum": [- "read"- ],- "title": "ReadParsedCommandType",- "type": "string"- }- },- "required": [- "cmd",- "name",- "path",- "type"- ],- "title": "ReadParsedCommand",- "type": "object"- },- {- "properties": {- "cmd": {- "type": "string"- },- "path": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "list_files"- ],- "title": "ListFilesParsedCommandType",- "type": "string"- }- },- "required": [- "cmd",- "type"- ],- "title": "ListFilesParsedCommand",- "type": "object"- },- {- "properties": {- "cmd": {- "type": "string"- },- "path": {- "type": [- "string",- "null"- ]- },- "query": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "search"- ],- "title": "SearchParsedCommandType",- "type": "string"- }- },- "required": [- "cmd",- "type"- ],- "title": "SearchParsedCommand",- "type": "object"- },- {- "properties": {- "cmd": {- "type": "string"- },- "type": {- "enum": [- "unknown"- ],- "title": "UnknownParsedCommandType",- "type": "string"- }- },- "required": [- "cmd",- "type"- ],- "title": "UnknownParsedCommand",- "type": "object"- }- ]- },- "PatchApplyStatus": {- "enum": [- "inProgress",- "completed",- "failed",- "declined"- ],- "type": "string"- },- "PatchApplyStatus2": {- "enum": [- "completed",- "failed",- "declined"- ],- "type": "string"- },- "PatchChangeKind": {- "oneOf": [- {- "properties": {- "type": {- "enum": [- "add"- ],- "title": "AddPatchChangeKindType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "AddPatchChangeKind",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "delete"- ],- "title": "DeletePatchChangeKindType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "DeletePatchChangeKind",- "type": "object"- },- {- "properties": {- "move_path": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "update"- ],- "title": "UpdatePatchChangeKindType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "UpdatePatchChangeKind",- "type": "object"- }- ]- },- "PlanDeltaNotification": {- "description": "EXPERIMENTAL - proposed plan streaming deltas for plan items. Clients should not assume concatenated deltas match the completed plan item content.",- "properties": {- "delta": {- "type": "string"- },- "itemId": {- "type": "string"- },- "threadId": {- "type": "string"- },- "turnId": {- "type": "string"- }- },- "required": [- "delta",- "itemId",- "threadId",- "turnId"- ],- "type": "object"- },- "PlanItemArg": {- "additionalProperties": false,- "properties": {- "status": {- "$ref": "#/definitions/StepStatus"- },- "step": {- "type": "string"- }- },- "required": [- "status",- "step"- ],- "type": "object"- },- "PlanType": {- "enum": [- "free",- "go",- "plus",- "pro",- "team",- "business",- "enterprise",- "edu",- "unknown"- ],- "type": "string"- },- "RateLimitSnapshot": {- "properties": {- "credits": {- "anyOf": [- {- "$ref": "#/definitions/CreditsSnapshot"- },- {- "type": "null"- }- ]- },- "limitId": {- "type": [- "string",- "null"- ]- },- "limitName": {- "type": [- "string",- "null"- ]- },- "planType": {- "anyOf": [- {- "$ref": "#/definitions/PlanType"- },- {- "type": "null"- }- ]- },- "primary": {- "anyOf": [- {- "$ref": "#/definitions/RateLimitWindow"- },- {- "type": "null"- }- ]- },- "secondary": {- "anyOf": [- {- "$ref": "#/definitions/RateLimitWindow"- },- {- "type": "null"- }- ]- }- },- "type": "object"- },- "RateLimitSnapshot2": {- "properties": {- "credits": {- "anyOf": [- {- "$ref": "#/definitions/CreditsSnapshot2"- },- {- "type": "null"- }- ]- },- "limit_id": {- "type": [- "string",- "null"- ]- },- "limit_name": {- "type": [- "string",- "null"- ]- },- "plan_type": {- "anyOf": [- {- "$ref": "#/definitions/PlanType"- },- {- "type": "null"- }- ]- },- "primary": {- "anyOf": [- {- "$ref": "#/definitions/RateLimitWindow2"- },- {- "type": "null"- }- ]- },- "secondary": {- "anyOf": [- {- "$ref": "#/definitions/RateLimitWindow2"- },- {- "type": "null"- }- ]- }- },- "type": "object"- },- "RateLimitWindow": {- "properties": {- "resetsAt": {- "format": "int64",- "type": [- "integer",- "null"- ]- },- "usedPercent": {- "format": "int32",- "type": "integer"- },- "windowDurationMins": {- "format": "int64",- "type": [- "integer",- "null"- ]- }- },- "required": [- "usedPercent"- ],- "type": "object"- },- "RateLimitWindow2": {- "properties": {- "resets_at": {- "description": "Unix timestamp (seconds since epoch) when the window resets.",- "format": "int64",- "type": [- "integer",- "null"- ]- },- "used_percent": {- "description": "Percentage (0-100) of the window that has been consumed.",- "format": "double",- "type": "number"- },- "window_minutes": {- "description": "Rolling window duration, in minutes.",- "format": "int64",- "type": [- "integer",- "null"- ]- }- },- "required": [- "used_percent"- ],- "type": "object"- },- "RawResponseItemCompletedNotification": {- "properties": {- "item": {- "$ref": "#/definitions/ResponseItem"- },- "threadId": {- "type": "string"- },- "turnId": {- "type": "string"- }- },- "required": [- "item",- "threadId",- "turnId"- ],- "type": "object"- },- "ReadOnlyAccess": {- "description": "Determines how read-only file access is granted inside a restricted sandbox.",- "oneOf": [- {- "description": "Restrict reads to an explicit set of roots.\n\nWhen `include_platform_defaults` is `true`, platform defaults required for basic execution are included in addition to `readable_roots`.",- "properties": {- "include_platform_defaults": {- "default": true,- "description": "Include built-in platform read roots required for basic process execution.",- "type": "boolean"- },- "readable_roots": {- "description": "Additional absolute roots that should be readable.",- "items": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": "array"- },- "type": {- "enum": [- "restricted"- ],- "title": "RestrictedReadOnlyAccessType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "RestrictedReadOnlyAccess",- "type": "object"- },- {- "description": "Allow unrestricted file reads.",- "properties": {- "type": {- "enum": [- "full-access"- ],- "title": "FullAccessReadOnlyAccessType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "FullAccessReadOnlyAccess",- "type": "object"- }- ]- },- "RealtimeAudioFrame": {- "properties": {- "data": {- "type": "string"- },- "num_channels": {- "format": "uint16",- "minimum": 0.0,- "type": "integer"- },- "sample_rate": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "samples_per_channel": {- "format": "uint32",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "required": [- "data",- "num_channels",- "sample_rate"- ],- "type": "object"- },- "RealtimeEvent": {- "oneOf": [- {- "additionalProperties": false,- "properties": {- "SessionCreated": {- "properties": {- "session_id": {- "type": "string"- }- },- "required": [- "session_id"- ],- "type": "object"- }- },- "required": [- "SessionCreated"- ],- "title": "SessionCreatedRealtimeEvent",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "SessionUpdated": {- "properties": {- "backend_prompt": {- "type": [- "string",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "SessionUpdated"- ],- "title": "SessionUpdatedRealtimeEvent",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "AudioOut": {- "$ref": "#/definitions/RealtimeAudioFrame"- }- },- "required": [- "AudioOut"- ],- "title": "AudioOutRealtimeEvent",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "ConversationItemAdded": true- },- "required": [- "ConversationItemAdded"- ],- "title": "ConversationItemAddedRealtimeEvent",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "Error": {- "type": "string"- }- },- "required": [- "Error"- ],- "title": "ErrorRealtimeEvent",- "type": "object"- }- ]- },- "ReasoningEffort": {- "description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",- "enum": [- "none",- "minimal",- "low",- "medium",- "high",- "xhigh"- ],- "type": "string"- },- "ReasoningItemContent": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "reasoning_text"- ],- "title": "ReasoningTextReasoningItemContentType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "ReasoningTextReasoningItemContent",- "type": "object"- },- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "text"- ],- "title": "TextReasoningItemContentType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "TextReasoningItemContent",- "type": "object"- }- ]- },- "ReasoningItemReasoningSummary": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "summary_text"- ],- "title": "SummaryTextReasoningItemReasoningSummaryType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "SummaryTextReasoningItemReasoningSummary",- "type": "object"- }- ]- },- "ReasoningSummaryPartAddedNotification": {- "properties": {- "itemId": {- "type": "string"- },- "summaryIndex": {- "format": "int64",- "type": "integer"- },- "threadId": {- "type": "string"- },- "turnId": {- "type": "string"- }- },- "required": [- "itemId",- "summaryIndex",- "threadId",- "turnId"- ],- "type": "object"- },- "ReasoningSummaryTextDeltaNotification": {- "properties": {- "delta": {- "type": "string"- },- "itemId": {- "type": "string"- },- "summaryIndex": {- "format": "int64",- "type": "integer"- },- "threadId": {- "type": "string"- },- "turnId": {- "type": "string"- }- },- "required": [- "delta",- "itemId",- "summaryIndex",- "threadId",- "turnId"- ],- "type": "object"- },- "ReasoningTextDeltaNotification": {- "properties": {- "contentIndex": {- "format": "int64",- "type": "integer"- },- "delta": {- "type": "string"- },- "itemId": {- "type": "string"- },- "threadId": {- "type": "string"- },- "turnId": {- "type": "string"- }- },- "required": [- "contentIndex",- "delta",- "itemId",- "threadId",- "turnId"- ],- "type": "object"- },- "RejectConfig": {- "properties": {- "mcp_elicitations": {- "description": "Reject MCP elicitation prompts.",- "type": "boolean"- },- "rules": {- "description": "Reject prompts triggered by execpolicy `prompt` rules.",- "type": "boolean"- },- "sandbox_approval": {- "description": "Reject approval prompts related to sandbox escalation.",- "type": "boolean"- }- },- "required": [- "mcp_elicitations",- "rules",- "sandbox_approval"- ],- "type": "object"- },- "RemoteSkillSummary": {- "properties": {- "description": {- "type": "string"- },- "id": {- "type": "string"- },- "name": {- "type": "string"- }- },- "required": [- "description",- "id",- "name"- ],- "type": "object"- },- "RequestId": {- "anyOf": [- {- "type": "string"- },- {- "format": "int64",- "type": "integer"- }- ],- "description": "ID of a request, which can be either a string or an integer."- },- "RequestUserInputQuestion": {- "properties": {- "header": {- "type": "string"- },- "id": {- "type": "string"- },- "isOther": {- "default": false,- "type": "boolean"- },- "isSecret": {- "default": false,- "type": "boolean"- },- "options": {- "items": {- "$ref": "#/definitions/RequestUserInputQuestionOption"- },- "type": [- "array",- "null"- ]- },- "question": {- "type": "string"- }- },- "required": [- "header",- "id",- "question"- ],- "type": "object"- },- "RequestUserInputQuestionOption": {- "properties": {- "description": {- "type": "string"- },- "label": {- "type": "string"- }- },- "required": [- "description",- "label"- ],- "type": "object"- },- "Resource": {- "description": "A known resource that the server is capable of reading.",- "properties": {- "_meta": true,- "annotations": true,- "description": {- "type": [- "string",- "null"- ]- },- "icons": {- "items": true,- "type": [- "array",- "null"- ]- },- "mimeType": {- "type": [- "string",- "null"- ]- },- "name": {- "type": "string"- },- "size": {- "format": "int64",- "type": [- "integer",- "null"- ]- },- "title": {- "type": [- "string",- "null"- ]- },- "uri": {- "type": "string"- }- },- "required": [- "name",- "uri"- ],- "type": "object"- },- "ResourceTemplate": {- "description": "A template description for resources available on the server.",- "properties": {- "annotations": true,- "description": {- "type": [- "string",- "null"- ]- },- "mimeType": {- "type": [- "string",- "null"- ]- },- "name": {- "type": "string"- },- "title": {- "type": [- "string",- "null"- ]- },- "uriTemplate": {- "type": "string"- }- },- "required": [- "name",- "uriTemplate"- ],- "type": "object"- },- "ResponseItem": {- "oneOf": [- {- "properties": {- "content": {- "items": {- "$ref": "#/definitions/ContentItem"- },- "type": "array"- },- "end_turn": {- "type": [- "boolean",- "null"- ]- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "phase": {- "anyOf": [- {- "$ref": "#/definitions/MessagePhase"- },- {- "type": "null"- }- ]- },- "role": {- "type": "string"- },- "type": {- "enum": [- "message"- ],- "title": "MessageResponseItemType",- "type": "string"- }- },- "required": [- "content",- "role",- "type"- ],- "title": "MessageResponseItem",- "type": "object"- },- {- "properties": {- "content": {- "default": null,- "items": {- "$ref": "#/definitions/ReasoningItemContent"- },- "type": [- "array",- "null"- ]- },- "encrypted_content": {- "type": [- "string",- "null"- ]- },- "id": {- "type": "string",- "writeOnly": true- },- "summary": {- "items": {- "$ref": "#/definitions/ReasoningItemReasoningSummary"- },- "type": "array"- },- "type": {- "enum": [- "reasoning"- ],- "title": "ReasoningResponseItemType",- "type": "string"- }- },- "required": [- "id",- "summary",- "type"- ],- "title": "ReasoningResponseItem",- "type": "object"- },- {- "properties": {- "action": {- "$ref": "#/definitions/LocalShellAction"- },- "call_id": {- "description": "Set when using the Responses API.",- "type": [- "string",- "null"- ]- },- "id": {- "description": "Legacy id field retained for compatibility with older payloads.",- "type": [- "string",- "null"- ],- "writeOnly": true- },- "status": {- "$ref": "#/definitions/LocalShellStatus"- },- "type": {- "enum": [- "local_shell_call"- ],- "title": "LocalShellCallResponseItemType",- "type": "string"- }- },- "required": [- "action",- "status",- "type"- ],- "title": "LocalShellCallResponseItem",- "type": "object"- },- {- "properties": {- "arguments": {- "type": "string"- },- "call_id": {- "type": "string"- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "name": {- "type": "string"- },- "type": {- "enum": [- "function_call"- ],- "title": "FunctionCallResponseItemType",- "type": "string"- }- },- "required": [- "arguments",- "call_id",- "name",- "type"- ],- "title": "FunctionCallResponseItem",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "output": {- "$ref": "#/definitions/FunctionCallOutputPayload"- },- "type": {- "enum": [- "function_call_output"- ],- "title": "FunctionCallOutputResponseItemType",- "type": "string"- }- },- "required": [- "call_id",- "output",- "type"- ],- "title": "FunctionCallOutputResponseItem",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "input": {- "type": "string"- },- "name": {- "type": "string"- },- "status": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "custom_tool_call"- ],- "title": "CustomToolCallResponseItemType",- "type": "string"- }- },- "required": [- "call_id",- "input",- "name",- "type"- ],- "title": "CustomToolCallResponseItem",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "output": {- "type": "string"- },- "type": {- "enum": [- "custom_tool_call_output"- ],- "title": "CustomToolCallOutputResponseItemType",- "type": "string"- }- },- "required": [- "call_id",- "output",- "type"- ],- "title": "CustomToolCallOutputResponseItem",- "type": "object"- },- {- "properties": {- "action": {- "anyOf": [- {- "$ref": "#/definitions/WebSearchAction2"- },- {- "type": "null"- }- ]- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "status": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "web_search_call"- ],- "title": "WebSearchCallResponseItemType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "WebSearchCallResponseItem",- "type": "object"- },- {- "properties": {- "ghost_commit": {- "$ref": "#/definitions/GhostCommit"- },- "type": {- "enum": [- "ghost_snapshot"- ],- "title": "GhostSnapshotResponseItemType",- "type": "string"- }- },- "required": [- "ghost_commit",- "type"- ],- "title": "GhostSnapshotResponseItem",- "type": "object"- },- {- "properties": {- "encrypted_content": {- "type": "string"- },- "type": {- "enum": [- "compaction"- ],- "title": "CompactionResponseItemType",- "type": "string"- }- },- "required": [- "encrypted_content",- "type"- ],- "title": "CompactionResponseItem",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "other"- ],- "title": "OtherResponseItemType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "OtherResponseItem",- "type": "object"- }- ]- },- "Result_of_CallToolResult_or_String": {- "oneOf": [- {- "properties": {- "Ok": {- "$ref": "#/definitions/CallToolResult"- }- },- "required": [- "Ok"- ],- "title": "OkResult_of_CallToolResult_or_String",- "type": "object"- },- {- "properties": {- "Err": {- "type": "string"- }- },- "required": [- "Err"- ],- "title": "ErrResult_of_CallToolResult_or_String",- "type": "object"- }- ]- },- "ReviewCodeLocation": {- "description": "Location of the code related to a review finding.",- "properties": {- "absolute_file_path": {- "type": "string"- },- "line_range": {- "$ref": "#/definitions/ReviewLineRange"- }- },- "required": [- "absolute_file_path",- "line_range"- ],- "type": "object"- },- "ReviewFinding": {- "description": "A single review finding describing an observed issue or recommendation.",- "properties": {- "body": {- "type": "string"- },- "code_location": {- "$ref": "#/definitions/ReviewCodeLocation"- },- "confidence_score": {- "format": "float",- "type": "number"- },- "priority": {- "format": "int32",- "type": "integer"- },- "title": {- "type": "string"- }- },- "required": [- "body",- "code_location",- "confidence_score",- "priority",- "title"- ],- "type": "object"- },- "ReviewLineRange": {- "description": "Inclusive line range in a file associated with the finding.",- "properties": {- "end": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "start": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "end",- "start"- ],- "type": "object"- },- "ReviewOutputEvent": {- "description": "Structured review result produced by a child review session.",- "properties": {- "findings": {- "items": {- "$ref": "#/definitions/ReviewFinding"- },- "type": "array"- },- "overall_confidence_score": {- "format": "float",- "type": "number"- },- "overall_correctness": {- "type": "string"- },- "overall_explanation": {- "type": "string"- }- },- "required": [- "findings",- "overall_confidence_score",- "overall_correctness",- "overall_explanation"- ],- "type": "object"- },- "ReviewTarget": {- "oneOf": [- {- "description": "Review the working tree: staged, unstaged, and untracked files.",- "properties": {- "type": {- "enum": [- "uncommittedChanges"- ],- "title": "UncommittedChangesReviewTargetType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "UncommittedChangesReviewTarget",- "type": "object"- },- {- "description": "Review changes between the current branch and the given base branch.",- "properties": {- "branch": {- "type": "string"- },- "type": {- "enum": [- "baseBranch"- ],- "title": "BaseBranchReviewTargetType",- "type": "string"- }- },- "required": [- "branch",- "type"- ],- "title": "BaseBranchReviewTarget",- "type": "object"- },- {- "description": "Review the changes introduced by a specific commit.",- "properties": {- "sha": {- "type": "string"- },- "title": {- "description": "Optional human-readable label (e.g., commit subject) for UIs.",- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "commit"- ],- "title": "CommitReviewTargetType",- "type": "string"- }- },- "required": [- "sha",- "type"- ],- "title": "CommitReviewTarget",- "type": "object"- },- {- "description": "Arbitrary instructions provided by the user.",- "properties": {- "instructions": {- "type": "string"- },- "type": {- "enum": [- "custom"- ],- "title": "CustomReviewTargetType",- "type": "string"- }- },- "required": [- "instructions",- "type"- ],- "title": "CustomReviewTarget",- "type": "object"- }- ]- },- "SandboxPolicy": {- "description": "Determines execution restrictions for model shell commands.",- "oneOf": [- {- "description": "No restrictions whatsoever. Use with caution.",- "properties": {- "type": {- "enum": [- "danger-full-access"- ],- "title": "DangerFullAccessSandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "DangerFullAccessSandboxPolicy",- "type": "object"- },- {- "description": "Read-only access configuration.",- "properties": {- "access": {- "allOf": [- {- "$ref": "#/definitions/ReadOnlyAccess"- }- ],- "description": "Read access granted while running under this policy."- },- "type": {- "enum": [- "read-only"- ],- "title": "ReadOnlySandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ReadOnlySandboxPolicy",- "type": "object"- },- {- "description": "Indicates the process is already in an external sandbox. Allows full disk access while honoring the provided network setting.",- "properties": {- "network_access": {- "allOf": [- {- "$ref": "#/definitions/NetworkAccess"- }- ],- "default": "restricted",- "description": "Whether the external sandbox permits outbound network traffic."- },- "type": {- "enum": [- "external-sandbox"- ],- "title": "ExternalSandboxSandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ExternalSandboxSandboxPolicy",- "type": "object"- },- {- "description": "Same as `ReadOnly` but additionally grants write access to the current working directory (\"workspace\").",- "properties": {- "exclude_slash_tmp": {- "default": false,- "description": "When set to `true`, will NOT include the `/tmp` among the default writable roots on UNIX. Defaults to `false`.",- "type": "boolean"- },- "exclude_tmpdir_env_var": {- "default": false,- "description": "When set to `true`, will NOT include the per-user `TMPDIR` environment variable among the default writable roots. Defaults to `false`.",- "type": "boolean"- },- "network_access": {- "default": false,- "description": "When set to `true`, outbound network access is allowed. `false` by default.",- "type": "boolean"- },- "read_only_access": {- "allOf": [- {- "$ref": "#/definitions/ReadOnlyAccess"- }- ],- "description": "Read access granted while running under this policy."- },- "type": {- "enum": [- "workspace-write"- ],- "title": "WorkspaceWriteSandboxPolicyType",- "type": "string"- },- "writable_roots": {- "description": "Additional folders (beyond cwd and possibly TMPDIR) that should be writable from within the sandbox.",- "items": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": "array"- }- },- "required": [- "type"- ],- "title": "WorkspaceWriteSandboxPolicy",- "type": "object"- }- ]- },- "SessionConfiguredNotification": {- "properties": {- "historyEntryCount": {- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "historyLogId": {- "format": "uint64",- "minimum": 0.0,- "type": "integer"- },- "initialMessages": {- "items": {- "$ref": "#/definitions/EventMsg"- },- "type": [- "array",- "null"- ]- },- "model": {- "type": "string"- },- "reasoningEffort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ]- },- "rolloutPath": {- "type": "string"- },- "sessionId": {- "$ref": "#/definitions/ThreadId"- }- },- "required": [- "historyEntryCount",- "historyLogId",- "model",- "rolloutPath",- "sessionId"- ],- "type": "object"- },- "SessionNetworkProxyRuntime": {- "properties": {- "admin_addr": {- "type": "string"- },- "http_addr": {- "type": "string"- },- "socks_addr": {- "type": "string"- }- },- "required": [- "admin_addr",- "http_addr",- "socks_addr"- ],- "type": "object"- },- "SessionSource": {- "oneOf": [- {- "enum": [- "cli",- "vscode",- "exec",- "appServer",- "unknown"- ],- "type": "string"- },- {- "additionalProperties": false,- "properties": {- "subAgent": {- "$ref": "#/definitions/SubAgentSource"- }- },- "required": [- "subAgent"- ],- "title": "SubAgentSessionSource",- "type": "object"- }- ]- },- "SkillDependencies": {- "properties": {- "tools": {- "items": {- "$ref": "#/definitions/SkillToolDependency"- },- "type": "array"- }- },- "required": [- "tools"- ],- "type": "object"- },- "SkillErrorInfo": {- "properties": {- "message": {- "type": "string"- },- "path": {- "type": "string"- }- },- "required": [- "message",- "path"- ],- "type": "object"- },- "SkillInterface": {- "properties": {- "brand_color": {- "type": [- "string",- "null"- ]- },- "default_prompt": {- "type": [- "string",- "null"- ]- },- "display_name": {- "type": [- "string",- "null"- ]- },- "icon_large": {- "type": [- "string",- "null"- ]- },- "icon_small": {- "type": [- "string",- "null"- ]- },- "short_description": {- "type": [- "string",- "null"- ]- }- },- "type": "object"- },- "SkillMetadata": {- "properties": {- "dependencies": {- "anyOf": [- {- "$ref": "#/definitions/SkillDependencies"- },- {- "type": "null"- }- ]- },- "description": {- "type": "string"- },- "enabled": {- "type": "boolean"- },- "interface": {- "anyOf": [- {- "$ref": "#/definitions/SkillInterface"- },- {- "type": "null"- }- ]- },- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "scope": {- "$ref": "#/definitions/SkillScope"- },- "short_description": {- "description": "Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description.",- "type": [- "string",- "null"- ]- }- },- "required": [- "description",- "enabled",- "name",- "path",- "scope"- ],- "type": "object"- },- "SkillScope": {- "enum": [- "user",- "repo",- "system",- "admin"- ],- "type": "string"- },- "SkillToolDependency": {- "properties": {- "command": {- "type": [- "string",- "null"- ]- },- "description": {- "type": [- "string",- "null"- ]- },- "transport": {- "type": [- "string",- "null"- ]- },- "type": {- "type": "string"- },- "url": {- "type": [- "string",- "null"- ]- },- "value": {- "type": "string"- }- },- "required": [- "type",- "value"- ],- "type": "object"- },- "SkillsListEntry": {- "properties": {- "cwd": {- "type": "string"- },- "errors": {- "items": {- "$ref": "#/definitions/SkillErrorInfo"- },- "type": "array"- },- "skills": {- "items": {- "$ref": "#/definitions/SkillMetadata"- },- "type": "array"- }- },- "required": [- "cwd",- "errors",- "skills"- ],- "type": "object"- },- "StepStatus": {- "enum": [- "pending",- "in_progress",- "completed"- ],- "type": "string"- },- "SubAgentSource": {- "oneOf": [- {- "enum": [- "review",- "compact",- "memory_consolidation"- ],- "type": "string"- },- {- "additionalProperties": false,- "properties": {- "thread_spawn": {- "properties": {- "agent_nickname": {- "default": null,- "type": [- "string",- "null"- ]- },- "agent_role": {- "default": null,- "type": [- "string",- "null"- ]- },- "depth": {- "format": "int32",- "type": "integer"- },- "parent_thread_id": {- "$ref": "#/definitions/ThreadId"- }- },- "required": [- "depth",- "parent_thread_id"- ],- "type": "object"- }- },- "required": [- "thread_spawn"- ],- "title": "ThreadSpawnSubAgentSource",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "other": {- "type": "string"- }- },- "required": [- "other"- ],- "title": "OtherSubAgentSource",- "type": "object"- }- ]- },- "TerminalInteractionNotification": {- "properties": {- "itemId": {- "type": "string"- },- "processId": {- "type": "string"- },- "stdin": {- "type": "string"- },- "threadId": {- "type": "string"- },- "turnId": {- "type": "string"- }- },- "required": [- "itemId",- "processId",- "stdin",- "threadId",- "turnId"- ],- "type": "object"- },- "TextElement": {- "properties": {- "byteRange": {- "allOf": [- {- "$ref": "#/definitions/ByteRange"- }- ],- "description": "Byte range in the parent `text` buffer that this element occupies."- },- "placeholder": {- "description": "Optional human-readable placeholder for the element, displayed in the UI.",- "type": [- "string",- "null"- ]- }- },- "required": [- "byteRange"- ],- "type": "object"- },- "TextElement2": {- "properties": {- "byte_range": {- "allOf": [- {- "$ref": "#/definitions/ByteRange2"- }- ],- "description": "Byte range in the parent `text` buffer that this element occupies."- },- "placeholder": {- "description": "Optional human-readable placeholder for the element, displayed in the UI.",- "type": [- "string",- "null"- ]- }- },- "required": [- "byte_range"- ],- "type": "object"- },- "TextPosition": {- "properties": {- "column": {- "description": "1-based column number (in Unicode scalar values).",- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "line": {- "description": "1-based line number.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "column",- "line"- ],- "type": "object"- },- "TextRange": {- "properties": {- "end": {- "$ref": "#/definitions/TextPosition"- },- "start": {- "$ref": "#/definitions/TextPosition"- }- },- "required": [- "end",- "start"- ],- "type": "object"- },- "Thread": {- "properties": {- "agentNickname": {- "description": "Optional random unique nickname assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "agentRole": {- "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "cliVersion": {- "description": "Version of the CLI that created the thread.",- "type": "string"- },- "createdAt": {- "description": "Unix timestamp (in seconds) when the thread was created.",- "format": "int64",- "type": "integer"- },- "cwd": {- "description": "Working directory captured for the thread.",- "type": "string"- },- "gitInfo": {- "anyOf": [- {- "$ref": "#/definitions/GitInfo"- },- {- "type": "null"- }- ],- "description": "Optional Git metadata captured when the thread was created."- },- "id": {- "type": "string"- },- "modelProvider": {- "description": "Model provider used for this thread (for example, 'openai').",- "type": "string"- },- "name": {- "description": "Optional user-facing thread title.",- "type": [- "string",- "null"- ]- },- "path": {- "description": "[UNSTABLE] Path to the thread on disk.",- "type": [- "string",- "null"- ]- },- "preview": {- "description": "Usually the first user message in the thread, if available.",- "type": "string"- },- "source": {- "allOf": [- {- "$ref": "#/definitions/SessionSource"- }- ],- "description": "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.)."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/ThreadStatus"- }- ],- "description": "Current runtime status for the thread."- },- "turns": {- "description": "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",- "items": {- "$ref": "#/definitions/Turn"- },- "type": "array"- },- "updatedAt": {- "description": "Unix timestamp (in seconds) when the thread was last updated.",- "format": "int64",- "type": "integer"- }- },- "required": [- "cliVersion",- "createdAt",- "cwd",- "id",- "modelProvider",- "preview",- "source",- "status",- "turns",- "updatedAt"- ],- "type": "object"- },- "ThreadActiveFlag": {- "enum": [- "waitingOnApproval",- "waitingOnUserInput"- ],- "type": "string"- },- "ThreadArchivedNotification": {- "properties": {- "threadId": {- "type": "string"- }- },- "required": [- "threadId"- ],- "type": "object"- },- "ThreadId": {- "type": "string"- },- "ThreadItem": {- "oneOf": [- {- "properties": {- "content": {- "items": {- "$ref": "#/definitions/UserInput"- },- "type": "array"- },- "id": {- "type": "string"- },- "type": {- "enum": [- "userMessage"- ],- "title": "UserMessageThreadItemType",- "type": "string"- }- },- "required": [- "content",- "id",- "type"- ],- "title": "UserMessageThreadItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "phase": {- "anyOf": [- {- "$ref": "#/definitions/MessagePhase"- },- {- "type": "null"- }- ],- "default": null- },- "text": {- "type": "string"- },- "type": {- "enum": [- "agentMessage"- ],- "title": "AgentMessageThreadItemType",- "type": "string"- }- },- "required": [- "id",- "text",- "type"- ],- "title": "AgentMessageThreadItem",- "type": "object"- },- {- "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",- "properties": {- "id": {- "type": "string"- },- "text": {- "type": "string"- },- "type": {- "enum": [- "plan"- ],- "title": "PlanThreadItemType",- "type": "string"- }- },- "required": [- "id",- "text",- "type"- ],- "title": "PlanThreadItem",- "type": "object"- },- {- "properties": {- "content": {- "default": [],- "items": {- "type": "string"- },- "type": "array"- },- "id": {- "type": "string"- },- "summary": {- "default": [],- "items": {- "type": "string"- },- "type": "array"- },- "type": {- "enum": [- "reasoning"- ],- "title": "ReasoningThreadItemType",- "type": "string"- }- },- "required": [- "id",- "type"- ],- "title": "ReasoningThreadItem",- "type": "object"- },- {- "properties": {- "aggregatedOutput": {- "description": "The command's output, aggregated from stdout and stderr.",- "type": [- "string",- "null"- ]- },- "command": {- "description": "The command to be executed.",- "type": "string"- },- "commandActions": {- "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",- "items": {- "$ref": "#/definitions/CommandAction"- },- "type": "array"- },- "cwd": {- "description": "The command's working directory.",- "type": "string"- },- "durationMs": {- "description": "The duration of the command execution in milliseconds.",- "format": "int64",- "type": [- "integer",- "null"- ]- },- "exitCode": {- "description": "The command's exit code.",- "format": "int32",- "type": [- "integer",- "null"- ]- },- "id": {- "type": "string"- },- "processId": {- "description": "Identifier for the underlying PTY process (when available).",- "type": [- "string",- "null"- ]- },- "status": {- "$ref": "#/definitions/CommandExecutionStatus"- },- "type": {- "enum": [- "commandExecution"- ],- "title": "CommandExecutionThreadItemType",- "type": "string"- }- },- "required": [- "command",- "commandActions",- "cwd",- "id",- "status",- "type"- ],- "title": "CommandExecutionThreadItem",- "type": "object"- },- {- "properties": {- "changes": {- "items": {- "$ref": "#/definitions/FileUpdateChange"- },- "type": "array"- },- "id": {- "type": "string"- },- "status": {- "$ref": "#/definitions/PatchApplyStatus"- },- "type": {- "enum": [- "fileChange"- ],- "title": "FileChangeThreadItemType",- "type": "string"- }- },- "required": [- "changes",- "id",- "status",- "type"- ],- "title": "FileChangeThreadItem",- "type": "object"- },- {- "properties": {- "arguments": true,- "durationMs": {- "description": "The duration of the MCP tool call in milliseconds.",- "format": "int64",- "type": [- "integer",- "null"- ]- },- "error": {- "anyOf": [- {- "$ref": "#/definitions/McpToolCallError"- },- {- "type": "null"- }- ]- },- "id": {- "type": "string"- },- "result": {- "anyOf": [- {- "$ref": "#/definitions/McpToolCallResult"- },- {- "type": "null"- }- ]- },- "server": {- "type": "string"- },- "status": {- "$ref": "#/definitions/McpToolCallStatus"- },- "tool": {- "type": "string"- },- "type": {- "enum": [- "mcpToolCall"- ],- "title": "McpToolCallThreadItemType",- "type": "string"- }- },- "required": [- "arguments",- "id",- "server",- "status",- "tool",- "type"- ],- "title": "McpToolCallThreadItem",- "type": "object"- },- {- "properties": {- "agentsStates": {- "additionalProperties": {- "$ref": "#/definitions/CollabAgentState"- },- "description": "Last known status of the target agents, when available.",- "type": "object"- },- "id": {- "description": "Unique identifier for this collab tool call.",- "type": "string"- },- "prompt": {- "description": "Prompt text sent as part of the collab tool call, when available.",- "type": [- "string",- "null"- ]- },- "receiverThreadIds": {- "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",- "items": {- "type": "string"- },- "type": "array"- },- "senderThreadId": {- "description": "Thread ID of the agent issuing the collab request.",- "type": "string"- },- "status": {- "allOf": [- {- "$ref": "#/definitions/CollabAgentToolCallStatus"- }- ],- "description": "Current status of the collab tool call."- },- "tool": {- "allOf": [- {- "$ref": "#/definitions/CollabAgentTool"- }- ],- "description": "Name of the collab tool that was invoked."- },- "type": {- "enum": [- "collabAgentToolCall"- ],- "title": "CollabAgentToolCallThreadItemType",- "type": "string"- }- },- "required": [- "agentsStates",- "id",- "receiverThreadIds",- "senderThreadId",- "status",- "tool",- "type"- ],- "title": "CollabAgentToolCallThreadItem",- "type": "object"- },- {- "properties": {- "action": {- "anyOf": [- {- "$ref": "#/definitions/WebSearchAction"- },- {- "type": "null"- }- ]- },- "id": {- "type": "string"- },- "query": {- "type": "string"- },- "type": {- "enum": [- "webSearch"- ],- "title": "WebSearchThreadItemType",- "type": "string"- }- },- "required": [- "id",- "query",- "type"- ],- "title": "WebSearchThreadItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "path": {- "type": "string"- },- "type": {- "enum": [- "imageView"- ],- "title": "ImageViewThreadItemType",- "type": "string"- }- },- "required": [- "id",- "path",- "type"- ],- "title": "ImageViewThreadItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "review": {- "type": "string"- },- "type": {- "enum": [- "enteredReviewMode"- ],- "title": "EnteredReviewModeThreadItemType",- "type": "string"- }- },- "required": [- "id",- "review",- "type"- ],- "title": "EnteredReviewModeThreadItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "review": {- "type": "string"- },- "type": {- "enum": [- "exitedReviewMode"- ],- "title": "ExitedReviewModeThreadItemType",- "type": "string"- }- },- "required": [- "id",- "review",- "type"- ],- "title": "ExitedReviewModeThreadItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "type": {- "enum": [- "contextCompaction"- ],- "title": "ContextCompactionThreadItemType",- "type": "string"- }- },- "required": [- "id",- "type"- ],- "title": "ContextCompactionThreadItem",- "type": "object"- }- ]- },- "ThreadNameUpdatedNotification": {- "properties": {- "threadId": {- "type": "string"- },- "threadName": {- "type": [- "string",- "null"- ]- }- },- "required": [- "threadId"- ],- "type": "object"- },- "ThreadStartedNotification": {- "properties": {- "thread": {- "$ref": "#/definitions/Thread"- }- },- "required": [- "thread"- ],- "type": "object"- },- "ThreadStatus": {- "oneOf": [- {- "properties": {- "type": {- "enum": [- "notLoaded"- ],- "title": "NotLoadedThreadStatusType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "NotLoadedThreadStatus",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "idle"- ],- "title": "IdleThreadStatusType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "IdleThreadStatus",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "systemError"- ],- "title": "SystemErrorThreadStatusType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "SystemErrorThreadStatus",- "type": "object"- },- {- "properties": {- "activeFlags": {- "items": {- "$ref": "#/definitions/ThreadActiveFlag"- },- "type": "array"- },- "type": {- "enum": [- "active"- ],- "title": "ActiveThreadStatusType",- "type": "string"- }- },- "required": [- "activeFlags",- "type"- ],- "title": "ActiveThreadStatus",- "type": "object"- }- ]- },- "ThreadStatusChangedNotification": {- "properties": {- "status": {- "$ref": "#/definitions/ThreadStatus"- },- "threadId": {- "type": "string"- }- },- "required": [- "status",- "threadId"- ],- "type": "object"- },- "ThreadTokenUsage": {- "properties": {- "last": {- "$ref": "#/definitions/TokenUsageBreakdown"- },- "modelContextWindow": {- "format": "int64",- "type": [- "integer",- "null"- ]- },- "total": {- "$ref": "#/definitions/TokenUsageBreakdown"- }- },- "required": [- "last",- "total"- ],- "type": "object"- },- "ThreadTokenUsageUpdatedNotification": {- "properties": {- "threadId": {- "type": "string"- },- "tokenUsage": {- "$ref": "#/definitions/ThreadTokenUsage"- },- "turnId": {- "type": "string"- }- },- "required": [- "threadId",- "tokenUsage",- "turnId"- ],- "type": "object"- },- "ThreadUnarchivedNotification": {- "properties": {- "threadId": {- "type": "string"- }- },- "required": [- "threadId"- ],- "type": "object"- },- "TokenUsage": {- "properties": {- "cached_input_tokens": {- "format": "int64",- "type": "integer"- },- "input_tokens": {- "format": "int64",- "type": "integer"- },- "output_tokens": {- "format": "int64",- "type": "integer"- },- "reasoning_output_tokens": {- "format": "int64",- "type": "integer"- },- "total_tokens": {- "format": "int64",- "type": "integer"- }- },- "required": [- "cached_input_tokens",- "input_tokens",- "output_tokens",- "reasoning_output_tokens",- "total_tokens"- ],- "type": "object"- },- "TokenUsageBreakdown": {- "properties": {- "cachedInputTokens": {- "format": "int64",- "type": "integer"- },- "inputTokens": {- "format": "int64",- "type": "integer"- },- "outputTokens": {- "format": "int64",- "type": "integer"- },- "reasoningOutputTokens": {- "format": "int64",- "type": "integer"- },- "totalTokens": {- "format": "int64",- "type": "integer"- }- },- "required": [- "cachedInputTokens",- "inputTokens",- "outputTokens",- "reasoningOutputTokens",- "totalTokens"- ],- "type": "object"- },- "TokenUsageInfo": {- "properties": {- "last_token_usage": {- "$ref": "#/definitions/TokenUsage"- },- "model_context_window": {- "format": "int64",- "type": [- "integer",- "null"- ]- },- "total_token_usage": {- "$ref": "#/definitions/TokenUsage"- }- },- "required": [- "last_token_usage",- "total_token_usage"- ],- "type": "object"- },- "Tool": {- "description": "Definition for a tool the client can call.",- "properties": {- "_meta": true,- "annotations": true,- "description": {- "type": [- "string",- "null"- ]- },- "icons": {- "items": true,- "type": [- "array",- "null"- ]- },- "inputSchema": true,- "name": {- "type": "string"- },- "outputSchema": true,- "title": {- "type": [- "string",- "null"- ]- }- },- "required": [- "inputSchema",- "name"- ],- "type": "object"- },- "Turn": {- "properties": {- "error": {- "anyOf": [- {- "$ref": "#/definitions/TurnError"- },- {- "type": "null"- }- ],- "description": "Only populated when the Turn's status is failed."- },- "id": {- "type": "string"- },- "items": {- "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",- "items": {- "$ref": "#/definitions/ThreadItem"- },- "type": "array"- },- "status": {- "$ref": "#/definitions/TurnStatus"- }- },- "required": [- "id",- "items",- "status"- ],- "type": "object"- },- "TurnAbortReason": {- "enum": [- "interrupted",- "replaced",- "review_ended"- ],- "type": "string"- },- "TurnCompletedNotification": {- "properties": {- "threadId": {- "type": "string"- },- "turn": {- "$ref": "#/definitions/Turn"- }- },- "required": [- "threadId",- "turn"- ],- "type": "object"- },- "TurnDiffUpdatedNotification": {- "description": "Notification that the turn-level unified diff has changed. Contains the latest aggregated diff across all file changes in the turn.",- "properties": {- "diff": {- "type": "string"- },- "threadId": {- "type": "string"- },- "turnId": {- "type": "string"- }- },- "required": [- "diff",- "threadId",- "turnId"- ],- "type": "object"- },- "TurnError": {- "properties": {- "additionalDetails": {- "default": null,- "type": [- "string",- "null"- ]- },- "codexErrorInfo": {- "anyOf": [- {- "$ref": "#/definitions/CodexErrorInfo"- },- {- "type": "null"- }- ]- },- "message": {- "type": "string"- }- },- "required": [- "message"- ],- "type": "object"- },- "TurnItem": {- "oneOf": [+ "arguments",+ "id",+ "server",+ "status",+ "tool",+ "type"+ ],+ "title": "McpToolCallThreadItem",+ "type": "object"+ },{"properties": {- "content": {+ "agentsStates": {+ "additionalProperties": {+ "$ref": "#/definitions/CollabAgentState"+ },+ "description": "Last known status of the target agents, when available.",+ "type": "object"+ },+ "id": {+ "description": "Unique identifier for this collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Prompt text sent as part of the collab tool call, when available.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiverThreadIds": {+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.","items": {- "$ref": "#/definitions/UserInput2"+ "type": "string"},"type": "array"},- "id": {+ "senderThreadId": {+ "description": "Thread ID of the agent issuing the collab request.","type": "string"},+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentToolCallStatus"+ }+ ],+ "description": "Current status of the collab tool call."+ },+ "tool": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentTool"+ }+ ],+ "description": "Name of the collab tool that was invoked."+ },"type": {"enum": [- "UserMessage"+ "collabAgentToolCall"],- "title": "UserMessageTurnItemType",+ "title": "CollabAgentToolCallThreadItemType","type": "string"}},"required": [- "content",+ "agentsStates","id",+ "receiverThreadIds",+ "senderThreadId",+ "status",+ "tool","type"],- "title": "UserMessageTurnItem",+ "title": "CollabAgentToolCallThreadItem","type": "object"},{- "description": "Assistant-authored message payload used in turn-item streams.\n\n`phase` is optional because not all providers/models emit it. Consumers should use it when present, but retain legacy completion semantics when it is `None`.","properties": {- "content": {- "items": {- "$ref": "#/definitions/AgentMessageContent"- },- "type": "array"- },- "id": {- "type": "string"- },- "phase": {+ "action": {"anyOf": [{- "$ref": "#/definitions/MessagePhase"+ "$ref": "#/definitions/WebSearchAction"},{"type": "null"}- ],- "description": "Optional phase metadata carried through from `ResponseItem::Message`.\n\nThis is currently used by TUI rendering to distinguish mid-turn commentary from a final answer and avoid status-indicator jitter."+ ]+ },+ "id": {+ "type": "string"+ },+ "query": {+ "type": "string"},"type": {"enum": [- "AgentMessage"+ "webSearch"],- "title": "AgentMessageTurnItemType",+ "title": "WebSearchThreadItemType","type": "string"}},"required": [- "content","id",+ "query","type"],- "title": "AgentMessageTurnItem",+ "title": "WebSearchThreadItem","type": "object"},{@@ -7945,23 +2071,23 @@"id": {"type": "string"},- "text": {+ "path": {"type": "string"},"type": {"enum": [- "Plan"+ "imageView"],- "title": "PlanTurnItemType",+ "title": "ImageViewThreadItemType","type": "string"}},"required": ["id",- "text",+ "path","type"],- "title": "PlanTurnItem",+ "title": "ImageViewThreadItem","type": "object"},{@@ -7969,61 +2095,47 @@"id": {"type": "string"},- "raw_content": {- "default": [],- "items": {- "type": "string"- },- "type": "array"- },- "summary_text": {- "items": {- "type": "string"- },- "type": "array"+ "review": {+ "type": "string"},"type": {"enum": [- "Reasoning"+ "enteredReviewMode"],- "title": "ReasoningTurnItemType",+ "title": "EnteredReviewModeThreadItemType","type": "string"}},"required": ["id",- "summary_text",+ "review","type"],- "title": "ReasoningTurnItem",+ "title": "EnteredReviewModeThreadItem","type": "object"},{"properties": {- "action": {- "$ref": "#/definitions/WebSearchAction2"- },"id": {"type": "string"},- "query": {+ "review": {"type": "string"},"type": {"enum": [- "WebSearch"+ "exitedReviewMode"],- "title": "WebSearchTurnItemType",+ "title": "ExitedReviewModeThreadItemType","type": "string"}},"required": [- "action","id",- "query",+ "review","type"],- "title": "WebSearchTurnItem",+ "title": "ExitedReviewModeThreadItem","type": "object"},{@@ -8033,9 +2145,9 @@},"type": {"enum": [- "ContextCompaction"+ "contextCompaction"],- "title": "ContextCompactionTurnItemType",+ "title": "ContextCompactionThreadItemType","type": "string"}},@@ -8043,63 +2155,248 @@"id","type"],- "title": "ContextCompactionTurnItem",+ "title": "ContextCompactionThreadItem",+ "type": "object"+ }+ ]+ },+ "ThreadNameUpdatedNotification": {+ "properties": {+ "threadId": {+ "type": "string"+ },+ "threadName": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "threadId"+ ],+ "type": "object"+ },+ "ThreadStartedNotification": {+ "properties": {+ "thread": {+ "$ref": "#/definitions/Thread"+ }+ },+ "required": [+ "thread"+ ],+ "type": "object"+ },+ "ThreadStatus": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "notLoaded"+ ],+ "title": "NotLoadedThreadStatusType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "NotLoadedThreadStatus",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "idle"+ ],+ "title": "IdleThreadStatusType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "IdleThreadStatus",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "systemError"+ ],+ "title": "SystemErrorThreadStatusType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SystemErrorThreadStatus",+ "type": "object"+ },+ {+ "properties": {+ "activeFlags": {+ "items": {+ "$ref": "#/definitions/ThreadActiveFlag"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "active"+ ],+ "title": "ActiveThreadStatusType",+ "type": "string"+ }+ },+ "required": [+ "activeFlags",+ "type"+ ],+ "title": "ActiveThreadStatus","type": "object"}]},- "TurnPlanStep": {+ "ThreadStatusChangedNotification": {+ "properties": {+ "status": {+ "$ref": "#/definitions/ThreadStatus"+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "status",+ "threadId"+ ],+ "type": "object"+ },+ "ThreadTokenUsage": {+ "properties": {+ "last": {+ "$ref": "#/definitions/TokenUsageBreakdown"+ },+ "modelContextWindow": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "total": {+ "$ref": "#/definitions/TokenUsageBreakdown"+ }+ },+ "required": [+ "last",+ "total"+ ],+ "type": "object"+ },+ "ThreadTokenUsageUpdatedNotification": {"properties": {- "status": {- "$ref": "#/definitions/TurnPlanStepStatus"+ "threadId": {+ "type": "string"},- "step": {+ "tokenUsage": {+ "$ref": "#/definitions/ThreadTokenUsage"+ },+ "turnId": {"type": "string"}},"required": [- "status",- "step"+ "threadId",+ "tokenUsage",+ "turnId"],"type": "object"},- "TurnPlanStepStatus": {- "enum": [- "pending",- "inProgress",- "completed"+ "ThreadUnarchivedNotification": {+ "properties": {+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"],- "type": "string"+ "type": "object"},- "TurnPlanUpdatedNotification": {+ "TokenUsageBreakdown": {"properties": {- "explanation": {- "type": [- "string",- "null"- ]+ "cachedInputTokens": {+ "format": "int64",+ "type": "integer"},- "plan": {+ "inputTokens": {+ "format": "int64",+ "type": "integer"+ },+ "outputTokens": {+ "format": "int64",+ "type": "integer"+ },+ "reasoningOutputTokens": {+ "format": "int64",+ "type": "integer"+ },+ "totalTokens": {+ "format": "int64",+ "type": "integer"+ }+ },+ "required": [+ "cachedInputTokens",+ "inputTokens",+ "outputTokens",+ "reasoningOutputTokens",+ "totalTokens"+ ],+ "type": "object"+ },+ "Turn": {+ "properties": {+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/TurnError"+ },+ {+ "type": "null"+ }+ ],+ "description": "Only populated when the Turn's status is failed."+ },+ "id": {+ "type": "string"+ },+ "items": {+ "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.","items": {- "$ref": "#/definitions/TurnPlanStep"+ "$ref": "#/definitions/ThreadItem"},"type": "array"},- "threadId": {- "type": "string"- },- "turnId": {- "type": "string"+ "status": {+ "$ref": "#/definitions/TurnStatus"}},"required": [- "plan",- "threadId",- "turnId"+ "id",+ "items",+ "status"],"type": "object"},- "TurnStartedNotification": {+ "TurnCompletedNotification": {"properties": {"threadId": {"type": "string"@@ -8114,137 +2411,130 @@],"type": "object"},- "TurnStatus": {- "enum": [- "completed",- "interrupted",- "failed",- "inProgress"+ "TurnDiffUpdatedNotification": {+ "description": "Notification that the turn-level unified diff has changed. Contains the latest aggregated diff across all file changes in the turn.",+ "properties": {+ "diff": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "threadId",+ "turnId"],- "type": "string"+ "type": "object"},- "UserInput": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "text_elements": {- "default": [],- "description": "UI-defined spans within `text` used to render or persist special elements.",- "items": {- "$ref": "#/definitions/TextElement"- },- "type": "array"- },- "type": {- "enum": [- "text"- ],- "title": "TextUserInputType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "TextUserInput",- "type": "object"+ "TurnError": {+ "properties": {+ "additionalDetails": {+ "default": null,+ "type": [+ "string",+ "null"+ ]},- {- "properties": {- "type": {- "enum": [- "image"- ],- "title": "ImageUserInputType",- "type": "string"+ "codexErrorInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/CodexErrorInfo"},- "url": {- "type": "string"+ {+ "type": "null"}- },- "required": [- "type",- "url"- ],- "title": "ImageUserInput",- "type": "object"+ ]},- {- "properties": {- "path": {- "type": "string"- },- "type": {- "enum": [- "localImage"- ],- "title": "LocalImageUserInputType",- "type": "string"- }- },- "required": [- "path",- "type"- ],- "title": "LocalImageUserInput",- "type": "object"+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "TurnPlanStep": {+ "properties": {+ "status": {+ "$ref": "#/definitions/TurnPlanStepStatus"},- {- "properties": {- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "type": {- "enum": [- "skill"- ],- "title": "SkillUserInputType",- "type": "string"- }- },- "required": [- "name",- "path",- "type"- ],- "title": "SkillUserInput",- "type": "object"+ "step": {+ "type": "string"+ }+ },+ "required": [+ "status",+ "step"+ ],+ "type": "object"+ },+ "TurnPlanStepStatus": {+ "enum": [+ "pending",+ "inProgress",+ "completed"+ ],+ "type": "string"+ },+ "TurnPlanUpdatedNotification": {+ "properties": {+ "explanation": {+ "type": [+ "string",+ "null"+ ]},- {- "properties": {- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "type": {- "enum": [- "mention"- ],- "title": "MentionUserInputType",- "type": "string"- }+ "plan": {+ "items": {+ "$ref": "#/definitions/TurnPlanStep"},- "required": [- "name",- "path",- "type"- ],- "title": "MentionUserInput",- "type": "object"+ "type": "array"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"}- ]+ },+ "required": [+ "plan",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "TurnStartedNotification": {+ "properties": {+ "threadId": {+ "type": "string"+ },+ "turn": {+ "$ref": "#/definitions/Turn"+ }+ },+ "required": [+ "threadId",+ "turn"+ ],+ "type": "object"+ },+ "TurnStatus": {+ "enum": [+ "completed",+ "interrupted",+ "failed",+ "inProgress"+ ],+ "type": "string"},- "UserInput2": {- "description": "User input",+ "UserInput": {"oneOf": [{"properties": {@@ -8253,9 +2543,9 @@},"text_elements": {"default": [],- "description": "UI-defined spans within `text` that should be treated as special elements. These are byte ranges into the UTF-8 `text` buffer and are used to render or persist rich input markers (e.g., image placeholders) across history and resume without mutating the literal text.",+ "description": "UI-defined spans within `text` used to render or persist special elements.","items": {- "$ref": "#/definitions/TextElement2"+ "$ref": "#/definitions/TextElement"},"type": "array"},@@ -8263,7 +2553,7 @@"enum": ["text"],- "title": "TextUserInput2Type",+ "title": "TextUserInputType","type": "string"}},@@ -8271,41 +2561,39 @@"text","type"],- "title": "TextUserInput2",+ "title": "TextUserInput","type": "object"},{- "description": "Pre‑encoded data: URI image.","properties": {- "image_url": {- "type": "string"- },"type": {"enum": ["image"],- "title": "ImageUserInput2Type",+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {"type": "string"}},"required": [- "image_url",- "type"+ "type",+ "url"],- "title": "ImageUserInput2",+ "title": "ImageUserInput","type": "object"},{- "description": "Local image path provided by the user. This will be converted to an `Image` variant (base64 data URL) during request serialization.","properties": {"path": {"type": "string"},"type": {"enum": [- "local_image"+ "localImage"],- "title": "LocalImageUserInput2Type",+ "title": "LocalImageUserInputType","type": "string"}},@@ -8313,11 +2601,10 @@"path","type"],- "title": "LocalImageUserInput2",+ "title": "LocalImageUserInput","type": "object"},{- "description": "Skill selected by the user (name + path to SKILL.md).","properties": {"name": {"type": "string"@@ -8329,7 +2616,7 @@"enum": ["skill"],- "title": "SkillUserInput2Type",+ "title": "SkillUserInputType","type": "string"}},@@ -8338,11 +2625,10 @@"path","type"],- "title": "SkillUserInput2",+ "title": "SkillUserInput","type": "object"},{- "description": "Explicit mention selected by the user (name + app://connector id).","properties": {"name": {"type": "string"@@ -8354,7 +2640,7 @@"enum": ["mention"],- "title": "MentionUserInput2Type",+ "title": "MentionUserInputType","type": "string"}},@@ -8363,7 +2649,7 @@"path","type"],- "title": "MentionUserInput2",+ "title": "MentionUserInput","type": "object"}]@@ -8469,107 +2755,6 @@}]},- "WebSearchAction2": {- "oneOf": [- {- "properties": {- "queries": {- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "query": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "search"- ],- "title": "SearchWebSearchAction2Type",- "type": "string"- }- },- "required": [- "type"- ],- "title": "SearchWebSearchAction2",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "open_page"- ],- "title": "OpenPageWebSearchAction2Type",- "type": "string"- },- "url": {- "type": [- "string",- "null"- ]- }- },- "required": [- "type"- ],- "title": "OpenPageWebSearchAction2",- "type": "object"- },- {- "properties": {- "pattern": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "find_in_page"- ],- "title": "FindInPageWebSearchAction2Type",- "type": "string"- },- "url": {- "type": [- "string",- "null"- ]- }- },- "required": [- "type"- ],- "title": "FindInPageWebSearchAction2",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "other"- ],- "title": "OtherWebSearchAction2Type",- "type": "string"- }- },- "required": [- "type"- ],- "title": "OtherWebSearchAction2",- "type": "object"- }- ]- },"WindowsSandboxSetupCompletedNotification": {"properties": {"error": {@@ -8886,27 +3071,6 @@"title": "Item/completedNotification","type": "object"},- {- "description": "This event is internal-only. Used by Codex Cloud.",- "properties": {- "method": {- "enum": [- "rawResponseItem/completed"- ],- "title": "RawResponseItem/completedNotificationMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/RawResponseItemCompletedNotification"- }- },- "required": [- "method",- "params"- ],- "title": "RawResponseItem/completedNotification",- "type": "object"- },{"properties": {"method": {@@ -9349,68 +3513,6 @@],"title": "Account/login/completedNotification","type": "object"- },- {- "description": "DEPRECATED NOTIFICATIONS below",- "properties": {- "method": {- "enum": [- "authStatusChange"- ],- "title": "AuthStatusChangeNotificationMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/AuthStatusChangeNotification"- }- },- "required": [- "method",- "params"- ],- "title": "AuthStatusChangeNotification",- "type": "object"- },- {- "description": "Deprecated: use `account/login/completed` instead.",- "properties": {- "method": {- "enum": [- "loginChatGptComplete"- ],- "title": "LoginChatGptCompleteNotificationMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/LoginChatGptCompleteNotification"- }- },- "required": [- "method",- "params"- ],- "title": "LoginChatGptCompleteNotification",- "type": "object"- },- {- "properties": {- "method": {- "enum": [- "sessionConfigured"- ],- "title": "SessionConfiguredNotificationMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/SessionConfiguredNotification"- }- },- "required": [- "method",- "params"- ],- "title": "SessionConfiguredNotification",- "type": "object"}],"title": "ServerNotification"diff --git a/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json b/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.jsonindex 2c1eb40316..89f7dc34c3 100644--- a/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json+++ b/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json@@ -1,40 +1,6 @@{"$schema": "http://json-schema.org/draft-07/schema#","definitions": {- "AbsolutePathBuf": {- "description": "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",- "type": "string"- },- "AddConversationListenerParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "experimentalRawEvents": {- "default": false,- "type": "boolean"- }- },- "required": [- "conversationId"- ],- "title": "AddConversationListenerParams",- "type": "object"- },- "AddConversationSubscriptionResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "subscriptionId": {- "type": "string"- }- },- "required": [- "subscriptionId"- ],- "title": "AddConversationSubscriptionResponse",- "type": "object"- },"AgentMessageContent": {"oneOf": [{@@ -175,140 +141,6 @@"title": "ApplyPatchApprovalResponse","type": "object"},- "ArchiveConversationParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "rolloutPath": {- "type": "string"- }- },- "required": [- "conversationId",- "rolloutPath"- ],- "title": "ArchiveConversationParams",- "type": "object"- },- "ArchiveConversationResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "title": "ArchiveConversationResponse",- "type": "object"- },- "AskForApproval": {- "description": "Determines the conditions under which the user is consulted to approve running the command proposed by Codex.",- "oneOf": [- {- "description": "Under this policy, only \"known safe\" commands—as determined by `is_safe_command()`—that **only read files** are auto‑approved. Everything else will ask the user to approve.",- "enum": [- "untrusted"- ],- "type": "string"- },- {- "description": "DEPRECATED: *All* commands are auto‑approved, but they are expected to run inside a sandbox where network access is disabled and writes are confined to a specific set of paths. If the command fails, it will be escalated to the user to approve execution without a sandbox. Prefer `OnRequest` for interactive runs or `Never` for non-interactive runs.",- "enum": [- "on-failure"- ],- "type": "string"- },- {- "description": "The model decides when to ask the user for approval.",- "enum": [- "on-request"- ],- "type": "string"- },- {- "additionalProperties": false,- "description": "Fine-grained rejection controls for approval prompts.\n\nWhen a field is `true`, prompts of that category are automatically rejected instead of shown to the user.",- "properties": {- "reject": {- "$ref": "#/definitions/RejectConfig"- }- },- "required": [- "reject"- ],- "title": "RejectAskForApproval",- "type": "object"- },- {- "description": "Never ask the user to approve commands. Failures are immediately returned to the model, and never escalated to the user for approval.",- "enum": [- "never"- ],- "type": "string"- }- ]- },- "AuthMode": {- "description": "Authentication mode for OpenAI-backed providers.",- "oneOf": [- {- "description": "OpenAI API key provided by the caller and stored by Codex.",- "enum": [- "apikey"- ],- "type": "string"- },- {- "description": "ChatGPT OAuth managed by Codex (tokens persisted and refreshed by Codex).",- "enum": [- "chatgpt"- ],- "type": "string"- },- {- "description": "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE.\n\nChatGPT auth tokens are supplied by an external host app and are only stored in memory. Token refresh must be handled by the external host app.",- "enum": [- "chatgptAuthTokens"- ],- "type": "string"- }- ]- },- "AuthStatusChangeNotification": {- "$schema": "http://json-schema.org/draft-07/schema#",- "description": "Deprecated notification. Use AccountUpdatedNotification instead.",- "properties": {- "authMethod": {- "anyOf": [- {- "$ref": "#/definitions/AuthMode"- },- {- "type": "null"- }- ]- }- },- "title": "AuthStatusChangeNotification",- "type": "object"- },- "ByteRange": {- "properties": {- "end": {- "description": "End byte offset (exclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "start": {- "description": "Start byte offset (inclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "end",- "start"- ],- "type": "object"- },"CallToolResult": {"description": "The server's response to a tool call.","properties": {@@ -330,24 +162,6 @@],"type": "object"},- "CancelLoginChatGptParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "loginId": {- "type": "string"- }- },- "required": [- "loginId"- ],- "title": "CancelLoginChatGptParams",- "type": "object"- },- "CancelLoginChatGptResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "title": "CancelLoginChatGptResponse",- "type": "object"- },"ChatgptAuthTokensRefreshParams": {"$schema": "http://json-schema.org/draft-07/schema#","properties": {@@ -1360,20 +1174,19 @@"type": "object"},{- "description": "DEPRECATED APIs below","properties": {"id": {"$ref": "#/definitions/RequestId"},"method": {"enum": [- "newConversation"+ "fuzzyFileSearch"],- "title": "NewConversationRequestMethod",+ "title": "FuzzyFileSearchRequestMethod","type": "string"},"params": {- "$ref": "#/definitions/NewConversationParams"+ "$ref": "#/definitions/FuzzyFileSearchParams"}},"required": [@@ -1381,3016 +1194,972 @@"method","params"],- "title": "NewConversationRequest",+ "title": "FuzzyFileSearchRequest","type": "object"+ }+ ],+ "title": "ClientRequest"+ },+ "CollabAgentRef": {+ "properties": {+ "agent_nickname": {+ "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",+ "type": [+ "string",+ "null"+ ]},- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "getConversationSummary"- ],- "title": "GetConversationSummaryRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/GetConversationSummaryParams"+ "agent_role": {+ "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",+ "type": [+ "string",+ "null"+ ]+ },+ "thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/ThreadId"}- },- "required": [- "id",- "method",- "params"],- "title": "GetConversationSummaryRequest",- "type": "object"+ "description": "Thread ID of the receiver/new agent."+ }+ },+ "required": [+ "thread_id"+ ],+ "type": "object"+ },+ "CollabAgentStatusEntry": {+ "properties": {+ "agent_nickname": {+ "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",+ "type": [+ "string",+ "null"+ ]},- {- "description": "List recorded Codex conversations (rollouts) with optional pagination and search.",- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "listConversations"- ],- "title": "ListConversationsRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ListConversationsParams"+ "agent_role": {+ "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/AgentStatus"}- },- "required": [- "id",- "method",- "params"],- "title": "ListConversationsRequest",- "type": "object"+ "description": "Last known status of the agent."},- {- "description": "Resume a recorded Codex conversation from a rollout file.",- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "resumeConversation"- ],- "title": "ResumeConversationRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ResumeConversationParams"+ "thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/ThreadId"}- },- "required": [- "id",- "method",- "params"],- "title": "ResumeConversationRequest",- "type": "object"+ "description": "Thread ID of the receiver/new agent."+ }+ },+ "required": [+ "status",+ "thread_id"+ ],+ "type": "object"+ },+ "CommandExecutionApprovalDecision": {+ "oneOf": [+ {+ "description": "User approved the command.",+ "enum": [+ "accept"+ ],+ "type": "string"},{- "description": "Fork a recorded Codex conversation into a new session.",- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "forkConversation"- ],- "title": "ForkConversationRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ForkConversationParams"- }- },- "required": [- "id",- "method",- "params"+ "description": "User approved the command and future identical commands should run without prompting.",+ "enum": [+ "acceptForSession"],- "title": "ForkConversationRequest",- "type": "object"+ "type": "string"},{+ "additionalProperties": false,+ "description": "User approved the command, and wants to apply the proposed execpolicy amendment so future matching commands can run without prompting.","properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "archiveConversation"+ "acceptWithExecpolicyAmendment": {+ "properties": {+ "execpolicy_amendment": {+ "items": {+ "type": "string"+ },+ "type": "array"+ }+ },+ "required": [+ "execpolicy_amendment"],- "title": "ArchiveConversationRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ArchiveConversationParams"+ "type": "object"}},"required": [- "id",- "method",- "params"+ "acceptWithExecpolicyAmendment"],- "title": "ArchiveConversationRequest",+ "title": "AcceptWithExecpolicyAmendmentCommandExecutionApprovalDecision","type": "object"},{- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "sendUserMessage"- ],- "title": "SendUserMessageRequestMethod",- "type": "string"+ "description": "User denied the command. The agent will continue the turn.",+ "enum": [+ "decline"+ ],+ "type": "string"+ },+ {+ "description": "User denied the command. The turn will also be immediately interrupted.",+ "enum": [+ "cancel"+ ],+ "type": "string"+ }+ ]+ },+ "CommandExecutionRequestApprovalParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "approvalId": {+ "description": "Unique identifier for this specific approval callback.\n\nFor regular shell/unified_exec approvals, this is null.\n\nFor zsh-exec-bridge subcommand approvals, multiple callbacks can belong to one parent `itemId`, so `approvalId` is a distinct opaque callback id (a UUID) used to disambiguate routing.",+ "type": [+ "string",+ "null"+ ]+ },+ "command": {+ "description": "The command to be executed.",+ "type": [+ "string",+ "null"+ ]+ },+ "commandActions": {+ "description": "Best-effort parsed command actions for friendly display.",+ "items": {+ "$ref": "#/definitions/v2/CommandAction"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": [+ "string",+ "null"+ ]+ },+ "itemId": {+ "type": "string"+ },+ "networkApprovalContext": {+ "anyOf": [+ {+ "$ref": "#/definitions/NetworkApprovalContext"},- "params": {- "$ref": "#/definitions/SendUserMessageParams"+ {+ "type": "null"}- },- "required": [- "id",- "method",- "params"],- "title": "SendUserMessageRequest",- "type": "object"+ "description": "Optional context for managed-network approval prompts."+ },+ "proposedExecpolicyAmendment": {+ "description": "Optional proposed execpolicy amendment to allow similar commands without prompting.",+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "reason": {+ "description": "Optional explanatory reason (e.g. request for network access).",+ "type": [+ "string",+ "null"+ ]+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "threadId",+ "turnId"+ ],+ "title": "CommandExecutionRequestApprovalParams",+ "type": "object"+ },+ "CommandExecutionRequestApprovalResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "decision": {+ "$ref": "#/definitions/CommandExecutionApprovalDecision"+ }+ },+ "required": [+ "decision"+ ],+ "title": "CommandExecutionRequestApprovalResponse",+ "type": "object"+ },+ "CustomPrompt": {+ "properties": {+ "argument_hint": {+ "type": [+ "string",+ "null"+ ]+ },+ "content": {+ "type": "string"+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "content",+ "name",+ "path"+ ],+ "type": "object"+ },+ "Duration": {+ "properties": {+ "nanos": {+ "format": "uint32",+ "minimum": 0.0,+ "type": "integer"},+ "secs": {+ "format": "uint64",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "nanos",+ "secs"+ ],+ "type": "object"+ },+ "DynamicToolCallOutputContentItem": {+ "oneOf": [{"properties": {- "id": {- "$ref": "#/definitions/RequestId"+ "text": {+ "type": "string"},- "method": {+ "type": {"enum": [- "sendUserTurn"+ "inputText"],- "title": "SendUserTurnRequestMethod",+ "title": "InputTextDynamicToolCallOutputContentItemType","type": "string"- },- "params": {- "$ref": "#/definitions/SendUserTurnParams"}},"required": [- "id",- "method",- "params"+ "text",+ "type"],- "title": "SendUserTurnRequest",+ "title": "InputTextDynamicToolCallOutputContentItem","type": "object"},{"properties": {- "id": {- "$ref": "#/definitions/RequestId"+ "imageUrl": {+ "type": "string"},- "method": {+ "type": {"enum": [- "interruptConversation"+ "inputImage"],- "title": "InterruptConversationRequestMethod",+ "title": "InputImageDynamicToolCallOutputContentItemType","type": "string"- },- "params": {- "$ref": "#/definitions/InterruptConversationParams"}},"required": [- "id",- "method",- "params"+ "imageUrl",+ "type"],- "title": "InterruptConversationRequest",+ "title": "InputImageDynamicToolCallOutputContentItem","type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"+ }+ ]+ },+ "DynamicToolCallParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "arguments": true,+ "callId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "tool": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "callId",+ "threadId",+ "tool",+ "turnId"+ ],+ "title": "DynamicToolCallParams",+ "type": "object"+ },+ "DynamicToolCallResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "contentItems": {+ "items": {+ "$ref": "#/definitions/DynamicToolCallOutputContentItem"+ },+ "type": "array"+ },+ "success": {+ "type": "boolean"+ }+ },+ "required": [+ "contentItems",+ "success"+ ],+ "title": "DynamicToolCallResponse",+ "type": "object"+ },+ "EventMsg": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "Response event from the agent NOTE: Make sure none of these values have optional types, as it will mess up the extension code-gen.",+ "oneOf": [+ {+ "description": "Error while executing a submission",+ "properties": {+ "codex_error_info": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/CodexErrorInfo"+ },+ {+ "type": "null"+ }+ ],+ "default": null},- "method": {+ "message": {+ "type": "string"+ },+ "type": {"enum": [- "addConversationListener"+ "error"],- "title": "AddConversationListenerRequestMethod",+ "title": "ErrorEventMsgType","type": "string"- },- "params": {- "$ref": "#/definitions/AddConversationListenerParams"}},"required": [- "id",- "method",- "params"+ "message",+ "type"],- "title": "AddConversationListenerRequest",+ "title": "ErrorEventMsg","type": "object"},{+ "description": "Warning issued while processing a submission. Unlike `Error`, this indicates the turn continued but the user should still be notified.","properties": {- "id": {- "$ref": "#/definitions/RequestId"+ "message": {+ "type": "string"},- "method": {+ "type": {"enum": [- "removeConversationListener"+ "warning"],- "title": "RemoveConversationListenerRequestMethod",+ "title": "WarningEventMsgType","type": "string"- },- "params": {- "$ref": "#/definitions/RemoveConversationListenerParams"}},"required": [- "id",- "method",- "params"+ "message",+ "type"],- "title": "RemoveConversationListenerRequest",+ "title": "WarningEventMsg","type": "object"},{+ "description": "Realtime conversation lifecycle start event.","properties": {- "id": {- "$ref": "#/definitions/RequestId"+ "session_id": {+ "type": [+ "string",+ "null"+ ]},- "method": {+ "type": {"enum": [- "gitDiffToRemote"+ "realtime_conversation_started"],- "title": "GitDiffToRemoteRequestMethod",+ "title": "RealtimeConversationStartedEventMsgType","type": "string"- },- "params": {- "$ref": "#/definitions/GitDiffToRemoteParams"}},"required": [- "id",- "method",- "params"+ "type"],- "title": "GitDiffToRemoteRequest",+ "title": "RealtimeConversationStartedEventMsg","type": "object"},{+ "description": "Realtime conversation streaming payload event.","properties": {- "id": {- "$ref": "#/definitions/RequestId"+ "payload": {+ "$ref": "#/definitions/RealtimeEvent"},- "method": {+ "type": {"enum": [- "loginApiKey"+ "realtime_conversation_realtime"],- "title": "LoginApiKeyRequestMethod",+ "title": "RealtimeConversationRealtimeEventMsgType","type": "string"- },- "params": {- "$ref": "#/definitions/LoginApiKeyParams"}},"required": [- "id",- "method",- "params"+ "payload",+ "type"],- "title": "LoginApiKeyRequest",+ "title": "RealtimeConversationRealtimeEventMsg","type": "object"},{+ "description": "Realtime conversation lifecycle close event.","properties": {- "id": {- "$ref": "#/definitions/RequestId"+ "reason": {+ "type": [+ "string",+ "null"+ ]},- "method": {+ "type": {"enum": [- "loginChatGpt"+ "realtime_conversation_closed"],- "title": "LoginChatGptRequestMethod",+ "title": "RealtimeConversationClosedEventMsgType","type": "string"- },- "params": {- "type": "null"}},"required": [- "id",- "method"+ "type"],- "title": "LoginChatGptRequest",+ "title": "RealtimeConversationClosedEventMsg","type": "object"},{+ "description": "Model routing changed from the requested model to a different model.","properties": {- "id": {- "$ref": "#/definitions/RequestId"+ "from_model": {+ "type": "string"},- "method": {+ "reason": {+ "$ref": "#/definitions/v2/ModelRerouteReason"+ },+ "to_model": {+ "type": "string"+ },+ "type": {"enum": [- "cancelLoginChatGpt"+ "model_reroute"],- "title": "CancelLoginChatGptRequestMethod",+ "title": "ModelRerouteEventMsgType","type": "string"- },- "params": {- "$ref": "#/definitions/CancelLoginChatGptParams"}},"required": [- "id",- "method",- "params"+ "from_model",+ "reason",+ "to_model",+ "type"],- "title": "CancelLoginChatGptRequest",+ "title": "ModelRerouteEventMsg","type": "object"},{+ "description": "Conversation history was compacted (either automatically or manually).","properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {+ "type": {"enum": [- "logoutChatGpt"+ "context_compacted"],- "title": "LogoutChatGptRequestMethod",+ "title": "ContextCompactedEventMsgType","type": "string"- },- "params": {- "type": "null"}},"required": [- "id",- "method"+ "type"],- "title": "LogoutChatGptRequest",+ "title": "ContextCompactedEventMsg","type": "object"},{- "description": "DEPRECATED in favor of GetAccount",+ "description": "Conversation history was rolled back by dropping the last N user turns.","properties": {- "id": {- "$ref": "#/definitions/RequestId"+ "num_turns": {+ "description": "Number of user turns that were removed from context.",+ "format": "uint32",+ "minimum": 0.0,+ "type": "integer"},- "method": {+ "type": {"enum": [- "getAuthStatus"+ "thread_rolled_back"],- "title": "GetAuthStatusRequestMethod",+ "title": "ThreadRolledBackEventMsgType","type": "string"- },- "params": {- "$ref": "#/definitions/GetAuthStatusParams"}},"required": [- "id",- "method",- "params"+ "num_turns",+ "type"],- "title": "GetAuthStatusRequest",+ "title": "ThreadRolledBackEventMsg","type": "object"},{+ "description": "Agent has started a turn. v1 wire format uses `task_started`; accept `turn_started` for v2 interop.","properties": {- "id": {- "$ref": "#/definitions/RequestId"+ "collaboration_mode_kind": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/ModeKind"+ }+ ],+ "default": "default"},- "method": {+ "model_context_window": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "turn_id": {+ "type": "string"+ },+ "type": {"enum": [- "getUserSavedConfig"+ "task_started"],- "title": "GetUserSavedConfigRequestMethod",+ "title": "TaskStartedEventMsgType","type": "string"- },- "params": {- "type": "null"}},"required": [- "id",- "method"+ "turn_id",+ "type"],- "title": "GetUserSavedConfigRequest",+ "title": "TaskStartedEventMsg","type": "object"},{+ "description": "Agent has completed all actions. v1 wire format uses `task_complete`; accept `turn_complete` for v2 interop.","properties": {- "id": {- "$ref": "#/definitions/RequestId"+ "last_agent_message": {+ "type": [+ "string",+ "null"+ ]},- "method": {- "enum": [- "setDefaultModel"- ],- "title": "SetDefaultModelRequestMethod",+ "turn_id": {"type": "string"},- "params": {- "$ref": "#/definitions/SetDefaultModelParams"+ "type": {+ "enum": [+ "task_complete"+ ],+ "title": "TaskCompleteEventMsgType",+ "type": "string"}},"required": [- "id",- "method",- "params"+ "turn_id",+ "type"],- "title": "SetDefaultModelRequest",+ "title": "TaskCompleteEventMsg","type": "object"},{+ "description": "Usage update for the current session, including totals and last turn. Optional means unknown — UIs should not display when `None`.","properties": {- "id": {- "$ref": "#/definitions/RequestId"+ "info": {+ "anyOf": [+ {+ "$ref": "#/definitions/TokenUsageInfo"+ },+ {+ "type": "null"+ }+ ]},- "method": {+ "rate_limits": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/RateLimitSnapshot"+ },+ {+ "type": "null"+ }+ ]+ },+ "type": {"enum": [- "getUserAgent"+ "token_count"],- "title": "GetUserAgentRequestMethod",+ "title": "TokenCountEventMsgType","type": "string"- },- "params": {- "type": "null"}},"required": [- "id",- "method"+ "type"],- "title": "GetUserAgentRequest",+ "title": "TokenCountEventMsg","type": "object"},{+ "description": "Agent text output message","properties": {- "id": {- "$ref": "#/definitions/RequestId"+ "message": {+ "type": "string"},- "method": {+ "phase": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/MessagePhase"+ },+ {+ "type": "null"+ }+ ],+ "default": null+ },+ "type": {"enum": [- "userInfo"+ "agent_message"],- "title": "UserInfoRequestMethod",+ "title": "AgentMessageEventMsgType","type": "string"- },- "params": {- "type": "null"}},"required": [- "id",- "method"+ "message",+ "type"],- "title": "UserInfoRequest",+ "title": "AgentMessageEventMsg","type": "object"},{+ "description": "User/system input message (what was sent to the model)","properties": {- "id": {- "$ref": "#/definitions/RequestId"+ "images": {+ "description": "Image URLs sourced from `UserInput::Image`. These are safe to replay in legacy UI history events and correspond to images sent to the model.",+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]},- "method": {+ "local_images": {+ "default": [],+ "description": "Local file paths sourced from `UserInput::LocalImage`. These are kept so the UI can reattach images when editing history, and should not be sent to the model or treated as API-ready URLs.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "message": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `message` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/v2/TextElement"+ },+ "type": "array"+ },+ "type": {"enum": [- "fuzzyFileSearch"+ "user_message"],- "title": "FuzzyFileSearchRequestMethod",+ "title": "UserMessageEventMsgType","type": "string"- },- "params": {- "$ref": "#/definitions/FuzzyFileSearchParams"}},"required": [- "id",- "method",- "params"+ "message",+ "type"],- "title": "FuzzyFileSearchRequest",+ "title": "UserMessageEventMsg","type": "object"},{- "description": "Execute a command (argv vector) under the server's sandbox.",+ "description": "Agent text output delta message","properties": {- "id": {- "$ref": "#/definitions/RequestId"+ "delta": {+ "type": "string"},- "method": {+ "type": {"enum": [- "execOneOffCommand"+ "agent_message_delta"],- "title": "ExecOneOffCommandRequestMethod",+ "title": "AgentMessageDeltaEventMsgType","type": "string"- },- "params": {- "$ref": "#/definitions/ExecOneOffCommandParams"}},"required": [- "id",- "method",- "params"+ "delta",+ "type"],- "title": "ExecOneOffCommandRequest",+ "title": "AgentMessageDeltaEventMsg","type": "object"- }- ],- "title": "ClientRequest"- },- "CodexErrorInfo": {- "description": "Codex errors that we expose to clients.",- "oneOf": [+ },{- "enum": [- "context_window_exceeded",- "usage_limit_exceeded",- "server_overloaded",- "internal_server_error",- "unauthorized",- "bad_request",- "sandbox_error",- "thread_rollback_failed",- "other"+ "description": "Reasoning event from agent.",+ "properties": {+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agent_reasoning"+ ],+ "title": "AgentReasoningEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"],- "type": "string"+ "title": "AgentReasoningEventMsg",+ "type": "object"},{- "additionalProperties": false,+ "description": "Agent reasoning delta event from agent.","properties": {- "http_connection_failed": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"+ "delta": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agent_reasoning_delta"+ ],+ "title": "AgentReasoningDeltaEventMsgType",+ "type": "string"}},"required": [- "http_connection_failed"+ "delta",+ "type"],- "title": "HttpConnectionFailedCodexErrorInfo",+ "title": "AgentReasoningDeltaEventMsg","type": "object"},{- "additionalProperties": false,- "description": "Failed to connect to the response SSE stream.",+ "description": "Raw chain-of-thought from agent.","properties": {- "response_stream_connection_failed": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agent_reasoning_raw_content"+ ],+ "title": "AgentReasoningRawContentEventMsgType",+ "type": "string"}},"required": [- "response_stream_connection_failed"+ "text",+ "type"],- "title": "ResponseStreamConnectionFailedCodexErrorInfo",+ "title": "AgentReasoningRawContentEventMsg","type": "object"},{- "additionalProperties": false,- "description": "The response SSE stream disconnected in the middle of a turnbefore completion.",+ "description": "Agent reasoning content delta event from agent.","properties": {- "response_stream_disconnected": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"+ "delta": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agent_reasoning_raw_content_delta"+ ],+ "title": "AgentReasoningRawContentDeltaEventMsgType",+ "type": "string"}},"required": [- "response_stream_disconnected"+ "delta",+ "type"],- "title": "ResponseStreamDisconnectedCodexErrorInfo",+ "title": "AgentReasoningRawContentDeltaEventMsg","type": "object"},{- "additionalProperties": false,- "description": "Reached the retry limit for responses.",+ "description": "Signaled when the model begins a new reasoning summary section (e.g., a new titled block).","properties": {- "response_too_many_failed_attempts": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"+ "item_id": {+ "default": "",+ "type": "string"+ },+ "summary_index": {+ "default": 0,+ "format": "int64",+ "type": "integer"+ },+ "type": {+ "enum": [+ "agent_reasoning_section_break"+ ],+ "title": "AgentReasoningSectionBreakEventMsgType",+ "type": "string"}},"required": [- "response_too_many_failed_attempts"+ "type"],- "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",- "type": "object"- }- ]- },- "CollabAgentRef": {- "properties": {- "agent_nickname": {- "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "agent_role": {- "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver/new agent."- }- },- "required": [- "thread_id"- ],- "type": "object"- },- "CollabAgentStatusEntry": {- "properties": {- "agent_nickname": {- "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "agent_role": {- "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the agent."- },- "thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver/new agent."- }- },- "required": [- "status",- "thread_id"- ],- "type": "object"- },- "CommandExecutionApprovalDecision": {- "oneOf": [- {- "description": "User approved the command.",- "enum": [- "accept"- ],- "type": "string"- },- {- "description": "User approved the command and future identical commands should run without prompting.",- "enum": [- "acceptForSession"- ],- "type": "string"- },- {- "additionalProperties": false,- "description": "User approved the command, and wants to apply the proposed execpolicy amendment so future matching commands can run without prompting.",- "properties": {- "acceptWithExecpolicyAmendment": {- "properties": {- "execpolicy_amendment": {- "items": {- "type": "string"- },- "type": "array"- }- },- "required": [- "execpolicy_amendment"- ],- "type": "object"- }- },- "required": [- "acceptWithExecpolicyAmendment"- ],- "title": "AcceptWithExecpolicyAmendmentCommandExecutionApprovalDecision",- "type": "object"- },- {- "description": "User denied the command. The agent will continue the turn.",- "enum": [- "decline"- ],- "type": "string"- },- {- "description": "User denied the command. The turn will also be immediately interrupted.",- "enum": [- "cancel"- ],- "type": "string"- }- ]- },- "CommandExecutionRequestApprovalParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "approvalId": {- "description": "Unique identifier for this specific approval callback.\n\nFor regular shell/unified_exec approvals, this is null.\n\nFor zsh-exec-bridge subcommand approvals, multiple callbacks can belong to one parent `itemId`, so `approvalId` is a distinct opaque callback id (a UUID) used to disambiguate routing.",- "type": [- "string",- "null"- ]- },- "command": {- "description": "The command to be executed.",- "type": [- "string",- "null"- ]- },- "commandActions": {- "description": "Best-effort parsed command actions for friendly display.",- "items": {- "$ref": "#/definitions/v2/CommandAction"- },- "type": [- "array",- "null"- ]- },- "cwd": {- "description": "The command's working directory.",- "type": [- "string",- "null"- ]- },- "itemId": {- "type": "string"- },- "networkApprovalContext": {- "anyOf": [- {- "$ref": "#/definitions/NetworkApprovalContext"- },- {- "type": "null"- }- ],- "description": "Optional context for managed-network approval prompts."- },- "proposedExecpolicyAmendment": {- "description": "Optional proposed execpolicy amendment to allow similar commands without prompting.",- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "reason": {- "description": "Optional explanatory reason (e.g. request for network access).",- "type": [- "string",- "null"- ]- },- "threadId": {- "type": "string"- },- "turnId": {- "type": "string"- }- },- "required": [- "itemId",- "threadId",- "turnId"- ],- "title": "CommandExecutionRequestApprovalParams",- "type": "object"- },- "CommandExecutionRequestApprovalResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "decision": {- "$ref": "#/definitions/CommandExecutionApprovalDecision"- }- },- "required": [- "decision"- ],- "title": "CommandExecutionRequestApprovalResponse",- "type": "object"- },- "ContentItem": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "input_text"- ],- "title": "InputTextContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "InputTextContentItem",- "type": "object"- },- {- "properties": {- "image_url": {- "type": "string"- },- "type": {- "enum": [- "input_image"- ],- "title": "InputImageContentItemType",- "type": "string"- }- },- "required": [- "image_url",- "type"- ],- "title": "InputImageContentItem",- "type": "object"- },- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "output_text"- ],- "title": "OutputTextContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "OutputTextContentItem",- "type": "object"- }- ]- },- "ConversationGitInfo": {- "properties": {- "branch": {- "type": [- "string",- "null"- ]- },- "origin_url": {- "type": [- "string",- "null"- ]- },- "sha": {- "type": [- "string",- "null"- ]- }- },- "type": "object"- },- "ConversationSummary": {- "properties": {- "cliVersion": {- "type": "string"- },- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "cwd": {- "type": "string"- },- "gitInfo": {- "anyOf": [- {- "$ref": "#/definitions/ConversationGitInfo"- },- {- "type": "null"- }- ]- },- "modelProvider": {- "type": "string"- },- "path": {- "type": "string"- },- "preview": {- "type": "string"- },- "source": {- "$ref": "#/definitions/SessionSource"- },- "timestamp": {- "type": [- "string",- "null"- ]- },- "updatedAt": {- "type": [- "string",- "null"- ]- }- },- "required": [- "cliVersion",- "conversationId",- "cwd",- "modelProvider",- "path",- "preview",- "source"- ],- "type": "object"- },- "CreditsSnapshot": {- "properties": {- "balance": {- "type": [- "string",- "null"- ]- },- "has_credits": {- "type": "boolean"- },- "unlimited": {- "type": "boolean"- }- },- "required": [- "has_credits",- "unlimited"- ],- "type": "object"- },- "CustomPrompt": {- "properties": {- "argument_hint": {- "type": [- "string",- "null"- ]- },- "content": {- "type": "string"- },- "description": {- "type": [- "string",- "null"- ]- },- "name": {- "type": "string"- },- "path": {- "type": "string"- }- },- "required": [- "content",- "name",- "path"- ],- "type": "object"- },- "Duration": {- "properties": {- "nanos": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "secs": {- "format": "uint64",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "nanos",- "secs"- ],- "type": "object"- },- "DynamicToolCallOutputContentItem": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "inputText"- ],- "title": "InputTextDynamicToolCallOutputContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "InputTextDynamicToolCallOutputContentItem",- "type": "object"- },- {- "properties": {- "imageUrl": {- "type": "string"- },- "type": {- "enum": [- "inputImage"- ],- "title": "InputImageDynamicToolCallOutputContentItemType",- "type": "string"- }- },- "required": [- "imageUrl",- "type"- ],- "title": "InputImageDynamicToolCallOutputContentItem",- "type": "object"- }- ]- },- "DynamicToolCallParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "arguments": true,- "callId": {- "type": "string"- },- "threadId": {- "type": "string"- },- "tool": {- "type": "string"- },- "turnId": {- "type": "string"- }- },- "required": [- "arguments",- "callId",- "threadId",- "tool",- "turnId"- ],- "title": "DynamicToolCallParams",- "type": "object"- },- "DynamicToolCallResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "contentItems": {- "items": {- "$ref": "#/definitions/DynamicToolCallOutputContentItem"- },- "type": "array"- },- "success": {- "type": "boolean"- }- },- "required": [- "contentItems",- "success"- ],- "title": "DynamicToolCallResponse",- "type": "object"- },- "EventMsg": {- "$schema": "http://json-schema.org/draft-07/schema#",- "description": "Response event from the agent NOTE: Make sure none of these values have optional types, as it will mess up the extension code-gen.",- "oneOf": [- {- "description": "Error while executing a submission",- "properties": {- "codex_error_info": {- "anyOf": [- {- "$ref": "#/definitions/v2/CodexErrorInfo"- },- {- "type": "null"- }- ],- "default": null- },- "message": {- "type": "string"- },- "type": {- "enum": [- "error"- ],- "title": "ErrorEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "ErrorEventMsg",- "type": "object"- },- {- "description": "Warning issued while processing a submission. Unlike `Error`, this indicates the turn continued but the user should still be notified.",- "properties": {- "message": {- "type": "string"- },- "type": {- "enum": [- "warning"- ],- "title": "WarningEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "WarningEventMsg",- "type": "object"- },- {- "description": "Realtime conversation lifecycle start event.",- "properties": {- "session_id": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "realtime_conversation_started"- ],- "title": "RealtimeConversationStartedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "RealtimeConversationStartedEventMsg",- "type": "object"- },- {- "description": "Realtime conversation streaming payload event.",- "properties": {- "payload": {- "$ref": "#/definitions/RealtimeEvent"- },- "type": {- "enum": [- "realtime_conversation_realtime"- ],- "title": "RealtimeConversationRealtimeEventMsgType",- "type": "string"- }- },- "required": [- "payload",- "type"- ],- "title": "RealtimeConversationRealtimeEventMsg",- "type": "object"- },- {- "description": "Realtime conversation lifecycle close event.",- "properties": {- "reason": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "realtime_conversation_closed"- ],- "title": "RealtimeConversationClosedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "RealtimeConversationClosedEventMsg",- "type": "object"- },- {- "description": "Model routing changed from the requested model to a different model.",- "properties": {- "from_model": {- "type": "string"- },- "reason": {- "$ref": "#/definitions/v2/ModelRerouteReason"- },- "to_model": {- "type": "string"- },- "type": {- "enum": [- "model_reroute"- ],- "title": "ModelRerouteEventMsgType",- "type": "string"- }- },- "required": [- "from_model",- "reason",- "to_model",- "type"- ],- "title": "ModelRerouteEventMsg",- "type": "object"- },- {- "description": "Conversation history was compacted (either automatically or manually).",- "properties": {- "type": {- "enum": [- "context_compacted"- ],- "title": "ContextCompactedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ContextCompactedEventMsg",- "type": "object"- },- {- "description": "Conversation history was rolled back by dropping the last N user turns.",- "properties": {- "num_turns": {- "description": "Number of user turns that were removed from context.",- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "type": {- "enum": [- "thread_rolled_back"- ],- "title": "ThreadRolledBackEventMsgType",- "type": "string"- }- },- "required": [- "num_turns",- "type"- ],- "title": "ThreadRolledBackEventMsg",- "type": "object"- },- {- "description": "Agent has started a turn. v1 wire format uses `task_started`; accept `turn_started` for v2 interop.",- "properties": {- "collaboration_mode_kind": {- "allOf": [- {- "$ref": "#/definitions/v2/ModeKind"- }- ],- "default": "default"- },- "model_context_window": {- "format": "int64",- "type": [- "integer",- "null"- ]- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "task_started"- ],- "title": "TaskStartedEventMsgType",- "type": "string"- }- },- "required": [- "turn_id",- "type"- ],- "title": "TaskStartedEventMsg",- "type": "object"- },- {- "description": "Agent has completed all actions. v1 wire format uses `task_complete`; accept `turn_complete` for v2 interop.",- "properties": {- "last_agent_message": {- "type": [- "string",- "null"- ]- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "task_complete"- ],- "title": "TaskCompleteEventMsgType",- "type": "string"- }- },- "required": [- "turn_id",- "type"- ],- "title": "TaskCompleteEventMsg",- "type": "object"- },- {- "description": "Usage update for the current session, including totals and last turn. Optional means unknown — UIs should not display when `None`.",- "properties": {- "info": {- "anyOf": [- {- "$ref": "#/definitions/TokenUsageInfo"- },- {- "type": "null"- }- ]- },- "rate_limits": {- "anyOf": [- {- "$ref": "#/definitions/v2/RateLimitSnapshot"- },- {- "type": "null"- }- ]- },- "type": {- "enum": [- "token_count"- ],- "title": "TokenCountEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "TokenCountEventMsg",- "type": "object"- },- {- "description": "Agent text output message",- "properties": {- "message": {- "type": "string"- },- "phase": {- "anyOf": [- {- "$ref": "#/definitions/v2/MessagePhase"- },- {- "type": "null"- }- ],- "default": null- },- "type": {- "enum": [- "agent_message"- ],- "title": "AgentMessageEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "AgentMessageEventMsg",- "type": "object"- },- {- "description": "User/system input message (what was sent to the model)",- "properties": {- "images": {- "description": "Image URLs sourced from `UserInput::Image`. These are safe to replay in legacy UI history events and correspond to images sent to the model.",- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "local_images": {- "default": [],- "description": "Local file paths sourced from `UserInput::LocalImage`. These are kept so the UI can reattach images when editing history, and should not be sent to the model or treated as API-ready URLs.",- "items": {- "type": "string"- },- "type": "array"- },- "message": {- "type": "string"- },- "text_elements": {- "default": [],- "description": "UI-defined spans within `message` used to render or persist special elements.",- "items": {- "$ref": "#/definitions/v2/TextElement"- },- "type": "array"- },- "type": {- "enum": [- "user_message"- ],- "title": "UserMessageEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "UserMessageEventMsg",- "type": "object"- },- {- "description": "Agent text output delta message",- "properties": {- "delta": {- "type": "string"- },- "type": {- "enum": [- "agent_message_delta"- ],- "title": "AgentMessageDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "type"- ],- "title": "AgentMessageDeltaEventMsg",- "type": "object"- },- {- "description": "Reasoning event from agent.",- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "agent_reasoning"- ],- "title": "AgentReasoningEventMsgType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "AgentReasoningEventMsg",- "type": "object"- },- {- "description": "Agent reasoning delta event from agent.",- "properties": {- "delta": {- "type": "string"- },- "type": {- "enum": [- "agent_reasoning_delta"- ],- "title": "AgentReasoningDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "type"- ],- "title": "AgentReasoningDeltaEventMsg",- "type": "object"- },- {- "description": "Raw chain-of-thought from agent.",- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "agent_reasoning_raw_content"- ],- "title": "AgentReasoningRawContentEventMsgType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "AgentReasoningRawContentEventMsg",- "type": "object"- },- {- "description": "Agent reasoning content delta event from agent.",- "properties": {- "delta": {- "type": "string"- },- "type": {- "enum": [- "agent_reasoning_raw_content_delta"- ],- "title": "AgentReasoningRawContentDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "type"- ],- "title": "AgentReasoningRawContentDeltaEventMsg",- "type": "object"- },- {- "description": "Signaled when the model begins a new reasoning summary section (e.g., a new titled block).",- "properties": {- "item_id": {- "default": "",- "type": "string"- },- "summary_index": {- "default": 0,- "format": "int64",- "type": "integer"- },- "type": {- "enum": [- "agent_reasoning_section_break"- ],- "title": "AgentReasoningSectionBreakEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "AgentReasoningSectionBreakEventMsg",- "type": "object"- },- {- "description": "Ack the client's configure message.",- "properties": {- "approval_policy": {- "allOf": [- {- "$ref": "#/definitions/v2/AskForApproval"- }- ],- "description": "When to escalate for approval for execution"- },- "cwd": {- "description": "Working directory that should be treated as the *root* of the session.",- "type": "string"- },- "forked_from_id": {- "anyOf": [- {- "$ref": "#/definitions/v2/ThreadId"- },- {- "type": "null"- }- ]- },- "history_entry_count": {- "description": "Current number of entries in the history log.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "history_log_id": {- "description": "Identifier of the history log file (inode on Unix, 0 otherwise).",- "format": "uint64",- "minimum": 0.0,- "type": "integer"- },- "initial_messages": {- "description": "Optional initial messages (as events) for resumed sessions. When present, UIs can use these to seed the history.",- "items": {- "$ref": "#/definitions/EventMsg"- },- "type": [- "array",- "null"- ]- },- "model": {- "description": "Tell the client what model is being queried.",- "type": "string"- },- "model_provider_id": {- "type": "string"- },- "network_proxy": {- "anyOf": [- {- "$ref": "#/definitions/SessionNetworkProxyRuntime"- },- {- "type": "null"- }- ],- "description": "Runtime proxy bind addresses, when the managed proxy was started for this session."- },- "reasoning_effort": {- "anyOf": [- {- "$ref": "#/definitions/v2/ReasoningEffort"- },- {- "type": "null"- }- ],- "description": "The effort the model is putting into reasoning about the user's request."- },- "rollout_path": {- "description": "Path in which the rollout is stored. Can be `None` for ephemeral threads",- "type": [- "string",- "null"- ]- },- "sandbox_policy": {- "allOf": [- {- "$ref": "#/definitions/v2/SandboxPolicy"- }- ],- "description": "How to sandbox commands executed in the system"- },- "session_id": {- "$ref": "#/definitions/v2/ThreadId"- },- "thread_name": {- "description": "Optional user-facing thread name (may be unset).",- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "session_configured"- ],- "title": "SessionConfiguredEventMsgType",- "type": "string"- }- },- "required": [- "approval_policy",- "cwd",- "history_entry_count",- "history_log_id",- "model",- "model_provider_id",- "sandbox_policy",- "session_id",- "type"- ],- "title": "SessionConfiguredEventMsg",- "type": "object"- },- {- "description": "Updated session metadata (e.g., thread name changes).",- "properties": {- "thread_id": {- "$ref": "#/definitions/v2/ThreadId"- },- "thread_name": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "thread_name_updated"- ],- "title": "ThreadNameUpdatedEventMsgType",- "type": "string"- }- },- "required": [- "thread_id",- "type"- ],- "title": "ThreadNameUpdatedEventMsg",- "type": "object"- },- {- "description": "Incremental MCP startup progress updates.",- "properties": {- "server": {- "description": "Server name being started.",- "type": "string"- },- "status": {- "allOf": [- {- "$ref": "#/definitions/McpStartupStatus"- }- ],- "description": "Current startup status."- },- "type": {- "enum": [- "mcp_startup_update"- ],- "title": "McpStartupUpdateEventMsgType",- "type": "string"- }- },- "required": [- "server",- "status",- "type"- ],- "title": "McpStartupUpdateEventMsg",- "type": "object"- },- {- "description": "Aggregate MCP startup completion summary.",- "properties": {- "cancelled": {- "items": {- "type": "string"- },- "type": "array"- },- "failed": {- "items": {- "$ref": "#/definitions/McpStartupFailure"- },- "type": "array"- },- "ready": {- "items": {- "type": "string"- },- "type": "array"- },- "type": {- "enum": [- "mcp_startup_complete"- ],- "title": "McpStartupCompleteEventMsgType",- "type": "string"- }- },- "required": [- "cancelled",- "failed",- "ready",- "type"- ],- "title": "McpStartupCompleteEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Identifier so this can be paired with the McpToolCallEnd event.",- "type": "string"- },- "invocation": {- "$ref": "#/definitions/McpInvocation"- },- "type": {- "enum": [- "mcp_tool_call_begin"- ],- "title": "McpToolCallBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "invocation",- "type"- ],- "title": "McpToolCallBeginEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Identifier for the corresponding McpToolCallBegin that finished.",- "type": "string"- },- "duration": {- "$ref": "#/definitions/Duration"- },- "invocation": {- "$ref": "#/definitions/McpInvocation"- },- "result": {- "allOf": [- {- "$ref": "#/definitions/Result_of_CallToolResult_or_String"- }- ],- "description": "Result of the tool call. Note this could be an error."- },- "type": {- "enum": [- "mcp_tool_call_end"- ],- "title": "McpToolCallEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "duration",- "invocation",- "result",- "type"- ],- "title": "McpToolCallEndEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "type": {- "enum": [- "web_search_begin"- ],- "title": "WebSearchBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "type"- ],- "title": "WebSearchBeginEventMsg",- "type": "object"- },- {- "properties": {- "action": {- "$ref": "#/definitions/v2/WebSearchAction"- },- "call_id": {- "type": "string"- },- "query": {- "type": "string"- },- "type": {- "enum": [- "web_search_end"- ],- "title": "WebSearchEndEventMsgType",- "type": "string"- }- },- "required": [- "action",- "call_id",- "query",- "type"- ],- "title": "WebSearchEndEventMsg",- "type": "object"- },- {- "description": "Notification that the server is about to execute a command.",- "properties": {- "call_id": {- "description": "Identifier so this can be paired with the ExecCommandEnd event.",- "type": "string"- },- "command": {- "description": "The command to be executed.",- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "description": "The command's working directory if not the default cwd for the agent.",- "type": "string"- },- "interaction_input": {- "description": "Raw input sent to a unified exec session (if this is an interaction event).",- "type": [- "string",- "null"- ]- },- "parsed_cmd": {- "items": {- "$ref": "#/definitions/ParsedCommand"- },- "type": "array"- },- "process_id": {- "description": "Identifier for the underlying PTY process (when available).",- "type": [- "string",- "null"- ]- },- "source": {- "allOf": [- {- "$ref": "#/definitions/ExecCommandSource"- }- ],- "default": "agent",- "description": "Where the command originated. Defaults to Agent for backward compatibility."- },- "turn_id": {- "description": "Turn ID that this command belongs to.",- "type": "string"- },- "type": {- "enum": [- "exec_command_begin"- ],- "title": "ExecCommandBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "command",- "cwd",- "parsed_cmd",- "turn_id",- "type"- ],- "title": "ExecCommandBeginEventMsg",- "type": "object"- },- {- "description": "Incremental chunk of output from a running command.",- "properties": {- "call_id": {- "description": "Identifier for the ExecCommandBegin that produced this chunk.",- "type": "string"- },- "chunk": {- "description": "Raw bytes from the stream (may not be valid UTF-8).",- "type": "string"- },- "stream": {- "allOf": [- {- "$ref": "#/definitions/ExecOutputStream"- }- ],- "description": "Which stream produced this chunk."- },- "type": {- "enum": [- "exec_command_output_delta"- ],- "title": "ExecCommandOutputDeltaEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "chunk",- "stream",- "type"- ],- "title": "ExecCommandOutputDeltaEventMsg",- "type": "object"- },- {- "description": "Terminal interaction for an in-progress command (stdin sent and stdout observed).",- "properties": {- "call_id": {- "description": "Identifier for the ExecCommandBegin that produced this chunk.",- "type": "string"- },- "process_id": {- "description": "Process id associated with the running command.",- "type": "string"- },- "stdin": {- "description": "Stdin sent to the running session.",- "type": "string"- },- "type": {- "enum": [- "terminal_interaction"- ],- "title": "TerminalInteractionEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "process_id",- "stdin",- "type"- ],- "title": "TerminalInteractionEventMsg",- "type": "object"- },- {- "properties": {- "aggregated_output": {- "default": "",- "description": "Captured aggregated output",- "type": "string"- },- "call_id": {- "description": "Identifier for the ExecCommandBegin that finished.",- "type": "string"- },- "command": {- "description": "The command that was executed.",- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "description": "The command's working directory if not the default cwd for the agent.",- "type": "string"- },- "duration": {- "allOf": [- {- "$ref": "#/definitions/Duration"- }- ],- "description": "The duration of the command execution."- },- "exit_code": {- "description": "The command's exit code.",- "format": "int32",- "type": "integer"- },- "formatted_output": {- "description": "Formatted output from the command, as seen by the model.",- "type": "string"- },- "interaction_input": {- "description": "Raw input sent to a unified exec session (if this is an interaction event).",- "type": [- "string",- "null"- ]- },- "parsed_cmd": {- "items": {- "$ref": "#/definitions/ParsedCommand"- },- "type": "array"- },- "process_id": {- "description": "Identifier for the underlying PTY process (when available).",- "type": [- "string",- "null"- ]- },- "source": {- "allOf": [- {- "$ref": "#/definitions/ExecCommandSource"- }- ],- "default": "agent",- "description": "Where the command originated. Defaults to Agent for backward compatibility."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/ExecCommandStatus"- }- ],- "description": "Completion status for this command execution."- },- "stderr": {- "description": "Captured stderr",- "type": "string"- },- "stdout": {- "description": "Captured stdout",- "type": "string"- },- "turn_id": {- "description": "Turn ID that this command belongs to.",- "type": "string"- },- "type": {- "enum": [- "exec_command_end"- ],- "title": "ExecCommandEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "command",- "cwd",- "duration",- "exit_code",- "formatted_output",- "parsed_cmd",- "status",- "stderr",- "stdout",- "turn_id",- "type"- ],- "title": "ExecCommandEndEventMsg",- "type": "object"- },- {- "description": "Notification that the agent attached a local image via the view_image tool.",- "properties": {- "call_id": {- "description": "Identifier for the originating tool call.",- "type": "string"- },- "path": {- "description": "Local filesystem path provided to the tool.",- "type": "string"- },- "type": {- "enum": [- "view_image_tool_call"- ],- "title": "ViewImageToolCallEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "path",- "type"- ],- "title": "ViewImageToolCallEventMsg",- "type": "object"- },- {- "properties": {- "approval_id": {- "description": "Identifier for this specific approval callback.\n\nWhen absent, the approval is for the command item itself (`call_id`). This is present for subcommand approvals (via execve intercept).",- "type": [- "string",- "null"- ]- },- "call_id": {- "description": "Identifier for the associated command execution item.",- "type": "string"- },- "command": {- "description": "The command to be executed.",- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "description": "The command's working directory.",- "type": "string"- },- "network_approval_context": {- "anyOf": [- {- "$ref": "#/definitions/NetworkApprovalContext"- },- {- "type": "null"- }- ],- "description": "Optional network context for a blocked request that can be approved."- },- "parsed_cmd": {- "items": {- "$ref": "#/definitions/ParsedCommand"- },- "type": "array"- },- "proposed_execpolicy_amendment": {- "description": "Proposed execpolicy amendment that can be applied to allow future runs.",- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "reason": {- "description": "Optional human-readable reason for the approval (e.g. retry without sandbox).",- "type": [- "string",- "null"- ]- },- "turn_id": {- "default": "",- "description": "Turn ID that this command belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "exec_approval_request"- ],- "title": "ExecApprovalRequestEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "command",- "cwd",- "parsed_cmd",- "type"- ],- "title": "ExecApprovalRequestEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Responses API call id for the associated tool call, if available.",- "type": "string"- },- "questions": {- "items": {- "$ref": "#/definitions/RequestUserInputQuestion"- },- "type": "array"- },- "turn_id": {- "default": "",- "description": "Turn ID that this request belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "request_user_input"- ],- "title": "RequestUserInputEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "questions",- "type"- ],- "title": "RequestUserInputEventMsg",- "type": "object"- },- {- "properties": {- "arguments": true,- "callId": {- "type": "string"- },- "tool": {- "type": "string"- },- "turnId": {- "type": "string"- },- "type": {- "enum": [- "dynamic_tool_call_request"- ],- "title": "DynamicToolCallRequestEventMsgType",- "type": "string"- }- },- "required": [- "arguments",- "callId",- "tool",- "turnId",- "type"- ],- "title": "DynamicToolCallRequestEventMsg",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "message": {- "type": "string"- },- "server_name": {- "type": "string"- },- "type": {- "enum": [- "elicitation_request"- ],- "title": "ElicitationRequestEventMsgType",- "type": "string"- }- },- "required": [- "id",- "message",- "server_name",- "type"- ],- "title": "ElicitationRequestEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Responses API call id for the associated patch apply call, if available.",- "type": "string"- },- "changes": {- "additionalProperties": {- "$ref": "#/definitions/FileChange"- },- "type": "object"- },- "grant_root": {- "description": "When set, the agent is asking the user to allow writes under this root for the remainder of the session.",- "type": [- "string",- "null"- ]- },- "reason": {- "description": "Optional explanatory reason (e.g. request for extra write access).",- "type": [- "string",- "null"- ]- },- "turn_id": {- "default": "",- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility with older senders.",- "type": "string"- },- "type": {- "enum": [- "apply_patch_approval_request"- ],- "title": "ApplyPatchApprovalRequestEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "changes",- "type"- ],- "title": "ApplyPatchApprovalRequestEventMsg",- "type": "object"- },- {- "description": "Notification advising the user that something they are using has been deprecated and should be phased out.",- "properties": {- "details": {- "description": "Optional extra guidance, such as migration steps or rationale.",- "type": [- "string",- "null"- ]- },- "summary": {- "description": "Concise summary of what is deprecated.",- "type": "string"- },- "type": {- "enum": [- "deprecation_notice"- ],- "title": "DeprecationNoticeEventMsgType",- "type": "string"- }- },- "required": [- "summary",- "type"- ],- "title": "DeprecationNoticeEventMsg",- "type": "object"- },- {- "properties": {- "message": {- "type": "string"- },- "type": {- "enum": [- "background_event"- ],- "title": "BackgroundEventEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "BackgroundEventEventMsg",- "type": "object"- },- {- "properties": {- "message": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "undo_started"- ],- "title": "UndoStartedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "UndoStartedEventMsg",- "type": "object"- },- {- "properties": {- "message": {- "type": [- "string",- "null"- ]- },- "success": {- "type": "boolean"- },- "type": {- "enum": [- "undo_completed"- ],- "title": "UndoCompletedEventMsgType",- "type": "string"- }- },- "required": [- "success",- "type"- ],- "title": "UndoCompletedEventMsg",- "type": "object"- },- {- "description": "Notification that a model stream experienced an error or disconnect and the system is handling it (e.g., retrying with backoff).",- "properties": {- "additional_details": {- "default": null,- "description": "Optional details about the underlying stream failure (often the same human-readable message that is surfaced as the terminal error if retries are exhausted).",- "type": [- "string",- "null"- ]- },- "codex_error_info": {- "anyOf": [- {- "$ref": "#/definitions/v2/CodexErrorInfo"- },- {- "type": "null"- }- ],- "default": null- },- "message": {- "type": "string"- },- "type": {- "enum": [- "stream_error"- ],- "title": "StreamErrorEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "StreamErrorEventMsg",- "type": "object"- },- {- "description": "Notification that the agent is about to apply a code patch. Mirrors `ExecCommandBegin` so front‑ends can show progress indicators.",- "properties": {- "auto_approved": {- "description": "If true, there was no ApplyPatchApprovalRequest for this patch.",- "type": "boolean"- },- "call_id": {- "description": "Identifier so this can be paired with the PatchApplyEnd event.",- "type": "string"- },- "changes": {- "additionalProperties": {- "$ref": "#/definitions/FileChange"- },- "description": "The changes to be applied.",- "type": "object"- },- "turn_id": {- "default": "",- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "patch_apply_begin"- ],- "title": "PatchApplyBeginEventMsgType",- "type": "string"- }- },- "required": [- "auto_approved",- "call_id",- "changes",- "type"- ],- "title": "PatchApplyBeginEventMsg",+ "title": "AgentReasoningSectionBreakEventMsg","type": "object"},{- "description": "Notification that a patch application has finished.",+ "description": "Ack the client's configure message.","properties": {- "call_id": {- "description": "Identifier for the PatchApplyBegin that finished.",- "type": "string"- },- "changes": {- "additionalProperties": {- "$ref": "#/definitions/FileChange"- },- "default": {},- "description": "The changes that were applied (mirrors PatchApplyBeginEvent::changes).",- "type": "object"- },- "status": {+ "approval_policy": {"allOf": [{- "$ref": "#/definitions/v2/PatchApplyStatus"+ "$ref": "#/definitions/v2/AskForApproval"}],- "description": "Completion status for this patch application."- },- "stderr": {- "description": "Captured stderr (parser errors, IO failures, etc.).",- "type": "string"- },- "stdout": {- "description": "Captured stdout (summary printed by apply_patch).",- "type": "string"- },- "success": {- "description": "Whether the patch was applied successfully.",- "type": "boolean"- },- "turn_id": {- "default": "",- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"+ "description": "When to escalate for approval for execution"},- "type": {- "enum": [- "patch_apply_end"- ],- "title": "PatchApplyEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "status",- "stderr",- "stdout",- "success",- "type"- ],- "title": "PatchApplyEndEventMsg",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "turn_diff"- ],- "title": "TurnDiffEventMsgType",+ "cwd": {+ "description": "Working directory that should be treated as the *root* of the session.","type": "string"},- "unified_diff": {- "type": "string"- }- },- "required": [- "type",- "unified_diff"- ],- "title": "TurnDiffEventMsg",- "type": "object"- },- {- "description": "Response to GetHistoryEntryRequest.",- "properties": {- "entry": {+ "forked_from_id": {"anyOf": [{- "$ref": "#/definitions/HistoryEntry"+ "$ref": "#/definitions/v2/ThreadId"},{"type": "null"}- ],- "description": "The entry at the requested offset, if available and parseable."+ ]},- "log_id": {- "format": "uint64",+ "history_entry_count": {+ "description": "Current number of entries in the history log.",+ "format": "uint","minimum": 0.0,"type": "integer"},- "offset": {- "format": "uint",+ "history_log_id": {+ "description": "Identifier of the history log file (inode on Unix, 0 otherwise).",+ "format": "uint64","minimum": 0.0,"type": "integer"},- "type": {- "enum": [- "get_history_entry_response"- ],- "title": "GetHistoryEntryResponseEventMsgType",- "type": "string"- }- },- "required": [- "log_id",- "offset",- "type"- ],- "title": "GetHistoryEntryResponseEventMsg",- "type": "object"- },- {- "description": "List of MCP tools available to the agent.",- "properties": {- "auth_statuses": {- "additionalProperties": {- "$ref": "#/definitions/v2/McpAuthStatus"- },- "description": "Authentication status for each configured MCP server.",- "type": "object"- },- "resource_templates": {- "additionalProperties": {- "items": {- "$ref": "#/definitions/v2/ResourceTemplate"- },- "type": "array"- },- "description": "Known resource templates grouped by server name.",- "type": "object"- },- "resources": {- "additionalProperties": {- "items": {- "$ref": "#/definitions/v2/Resource"- },- "type": "array"- },- "description": "Known resources grouped by server name.",- "type": "object"- },- "tools": {- "additionalProperties": {- "$ref": "#/definitions/v2/Tool"- },- "description": "Fully qualified tool name -> tool definition.",- "type": "object"- },- "type": {- "enum": [- "mcp_list_tools_response"- ],- "title": "McpListToolsResponseEventMsgType",- "type": "string"- }- },- "required": [- "auth_statuses",- "resource_templates",- "resources",- "tools",- "type"- ],- "title": "McpListToolsResponseEventMsg",- "type": "object"- },- {- "description": "List of custom prompts available to the agent.",- "properties": {- "custom_prompts": {+ "initial_messages": {+ "description": "Optional initial messages (as events) for resumed sessions. When present, UIs can use these to seed the history.","items": {- "$ref": "#/definitions/CustomPrompt"+ "$ref": "#/definitions/EventMsg"},- "type": "array"+ "type": [+ "array",+ "null"+ ]},- "type": {- "enum": [- "list_custom_prompts_response"- ],- "title": "ListCustomPromptsResponseEventMsgType",+ "model": {+ "description": "Tell the client what model is being queried.","type": "string"- }- },- "required": [- "custom_prompts",- "type"- ],- "title": "ListCustomPromptsResponseEventMsg",- "type": "object"- },- {- "description": "List of skills available to the agent.",- "properties": {- "skills": {- "items": {- "$ref": "#/definitions/v2/SkillsListEntry"- },- "type": "array"},- "type": {- "enum": [- "list_skills_response"- ],- "title": "ListSkillsResponseEventMsgType",+ "model_provider_id": {"type": "string"- }- },- "required": [- "skills",- "type"- ],- "title": "ListSkillsResponseEventMsg",- "type": "object"- },- {- "description": "List of remote skills available to the agent.",- "properties": {- "skills": {- "items": {- "$ref": "#/definitions/v2/RemoteSkillSummary"- },- "type": "array"},- "type": {- "enum": [- "list_remote_skills_response"+ "network_proxy": {+ "anyOf": [+ {+ "$ref": "#/definitions/SessionNetworkProxyRuntime"+ },+ {+ "type": "null"+ }],- "title": "ListRemoteSkillsResponseEventMsgType",- "type": "string"- }- },- "required": [- "skills",- "type"- ],- "title": "ListRemoteSkillsResponseEventMsg",- "type": "object"- },- {- "description": "Remote skill downloaded to local cache.",- "properties": {- "id": {- "type": "string"- },- "name": {- "type": "string"- },- "path": {- "type": "string"+ "description": "Runtime proxy bind addresses, when the managed proxy was started for this session."},- "type": {- "enum": [- "remote_skill_downloaded"- ],- "title": "RemoteSkillDownloadedEventMsgType",- "type": "string"- }- },- "required": [- "id",- "name",- "path",- "type"- ],- "title": "RemoteSkillDownloadedEventMsg",- "type": "object"- },- {- "description": "Notification that skill data may have been updated and clients may want to reload.",- "properties": {- "type": {- "enum": [- "skills_update_available"+ "reasoning_effort": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ReasoningEffort"+ },+ {+ "type": "null"+ }],- "title": "SkillsUpdateAvailableEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "SkillsUpdateAvailableEventMsg",- "type": "object"- },- {- "properties": {- "explanation": {- "default": null,- "description": "Arguments for the `update_plan` todo/checklist tool (not plan mode).",+ "description": "The effort the model is putting into reasoning about the user's request."+ },+ "rollout_path": {+ "description": "Path in which the rollout is stored. Can be `None` for ephemeral threads","type": ["string","null"]},- "plan": {- "items": {- "$ref": "#/definitions/PlanItemArg"- },- "type": "array"- },- "type": {- "enum": [- "plan_update"- ],- "title": "PlanUpdateEventMsgType",- "type": "string"- }- },- "required": [- "plan",- "type"- ],- "title": "PlanUpdateEventMsg",- "type": "object"- },- {- "properties": {- "reason": {- "$ref": "#/definitions/TurnAbortReason"+ "sandbox_policy": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/SandboxPolicy"+ }+ ],+ "description": "How to sandbox commands executed in the system"},- "turn_id": {+ "session_id": {+ "$ref": "#/definitions/v2/ThreadId"+ },+ "thread_name": {+ "description": "Optional user-facing thread name (may be unset).","type": ["string","null"@@ -4398,1041 +2167,973 @@},"type": {"enum": [- "turn_aborted"+ "session_configured"],- "title": "TurnAbortedEventMsgType",+ "title": "SessionConfiguredEventMsgType","type": "string"}},"required": [- "reason",+ "approval_policy",+ "cwd",+ "history_entry_count",+ "history_log_id",+ "model",+ "model_provider_id",+ "sandbox_policy",+ "session_id","type"],- "title": "TurnAbortedEventMsg",+ "title": "SessionConfiguredEventMsg","type": "object"},{- "description": "Notification that the agent is shutting down.",+ "description": "Updated session metadata (e.g., thread name changes).","properties": {+ "thread_id": {+ "$ref": "#/definitions/v2/ThreadId"+ },+ "thread_name": {+ "type": [+ "string",+ "null"+ ]+ },"type": {"enum": [- "shutdown_complete"+ "thread_name_updated"],- "title": "ShutdownCompleteEventMsgType",+ "title": "ThreadNameUpdatedEventMsgType","type": "string"}},"required": [+ "thread_id","type"],- "title": "ShutdownCompleteEventMsg",+ "title": "ThreadNameUpdatedEventMsg","type": "object"},{- "description": "Entered review mode.",+ "description": "Incremental MCP startup progress updates.","properties": {- "target": {- "$ref": "#/definitions/v2/ReviewTarget"- },- "type": {- "enum": [- "entered_review_mode"- ],- "title": "EnteredReviewModeEventMsgType",+ "server": {+ "description": "Server name being started.","type": "string"},- "user_facing_hint": {- "type": [- "string",- "null"- ]- }- },- "required": [- "target",- "type"- ],- "title": "EnteredReviewModeEventMsg",- "type": "object"- },- {- "description": "Exited review mode with an optional final result to apply.",- "properties": {- "review_output": {- "anyOf": [- {- "$ref": "#/definitions/ReviewOutputEvent"- },+ "status": {+ "allOf": [{- "type": "null"+ "$ref": "#/definitions/McpStartupStatus"}- ]+ ],+ "description": "Current startup status."},"type": {"enum": [- "exited_review_mode"+ "mcp_startup_update"],- "title": "ExitedReviewModeEventMsgType",+ "title": "McpStartupUpdateEventMsgType","type": "string"}},"required": [+ "server",+ "status","type"],- "title": "ExitedReviewModeEventMsg",+ "title": "McpStartupUpdateEventMsg","type": "object"},{+ "description": "Aggregate MCP startup completion summary.","properties": {- "item": {- "$ref": "#/definitions/v2/ResponseItem"+ "cancelled": {+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "failed": {+ "items": {+ "$ref": "#/definitions/McpStartupFailure"+ },+ "type": "array"+ },+ "ready": {+ "items": {+ "type": "string"+ },+ "type": "array"},"type": {"enum": [- "raw_response_item"+ "mcp_startup_complete"],- "title": "RawResponseItemEventMsgType",+ "title": "McpStartupCompleteEventMsgType","type": "string"}},"required": [- "item",+ "cancelled",+ "failed",+ "ready","type"],- "title": "RawResponseItemEventMsg",+ "title": "McpStartupCompleteEventMsg","type": "object"},{"properties": {- "item": {- "$ref": "#/definitions/TurnItem"- },- "thread_id": {- "$ref": "#/definitions/v2/ThreadId"- },- "turn_id": {+ "call_id": {+ "description": "Identifier so this can be paired with the McpToolCallEnd event.","type": "string"},+ "invocation": {+ "$ref": "#/definitions/McpInvocation"+ },"type": {"enum": [- "item_started"+ "mcp_tool_call_begin"],- "title": "ItemStartedEventMsgType",+ "title": "McpToolCallBeginEventMsgType","type": "string"}},"required": [- "item",- "thread_id",- "turn_id",+ "call_id",+ "invocation","type"],- "title": "ItemStartedEventMsg",+ "title": "McpToolCallBeginEventMsg","type": "object"},{"properties": {- "item": {- "$ref": "#/definitions/TurnItem"+ "call_id": {+ "description": "Identifier for the corresponding McpToolCallBegin that finished.",+ "type": "string"},- "thread_id": {- "$ref": "#/definitions/v2/ThreadId"+ "duration": {+ "$ref": "#/definitions/Duration"},- "turn_id": {- "type": "string"+ "invocation": {+ "$ref": "#/definitions/McpInvocation"+ },+ "result": {+ "allOf": [+ {+ "$ref": "#/definitions/Result_of_CallToolResult_or_String"+ }+ ],+ "description": "Result of the tool call. Note this could be an error."},"type": {"enum": [- "item_completed"+ "mcp_tool_call_end"],- "title": "ItemCompletedEventMsgType",+ "title": "McpToolCallEndEventMsgType","type": "string"}},"required": [- "item",- "thread_id",- "turn_id",+ "call_id",+ "duration",+ "invocation",+ "result","type"],- "title": "ItemCompletedEventMsg",+ "title": "McpToolCallEndEventMsg","type": "object"},{"properties": {- "delta": {- "type": "string"- },- "item_id": {- "type": "string"- },- "thread_id": {- "type": "string"- },- "turn_id": {+ "call_id": {"type": "string"},"type": {"enum": [- "agent_message_content_delta"+ "web_search_begin"],- "title": "AgentMessageContentDeltaEventMsgType",+ "title": "WebSearchBeginEventMsgType","type": "string"}},"required": [- "delta",- "item_id",- "thread_id",- "turn_id",+ "call_id","type"],- "title": "AgentMessageContentDeltaEventMsg",+ "title": "WebSearchBeginEventMsg","type": "object"},{"properties": {- "delta": {- "type": "string"- },- "item_id": {- "type": "string"+ "action": {+ "$ref": "#/definitions/v2/WebSearchAction"},- "thread_id": {+ "call_id": {"type": "string"},- "turn_id": {+ "query": {"type": "string"},"type": {"enum": [- "plan_delta"+ "web_search_end"],- "title": "PlanDeltaEventMsgType",+ "title": "WebSearchEndEventMsgType","type": "string"}},"required": [- "delta",- "item_id",- "thread_id",- "turn_id",+ "action",+ "call_id",+ "query","type"],- "title": "PlanDeltaEventMsg",+ "title": "WebSearchEndEventMsg","type": "object"},{+ "description": "Notification that the server is about to execute a command.","properties": {- "delta": {+ "call_id": {+ "description": "Identifier so this can be paired with the ExecCommandEnd event.","type": "string"},- "item_id": {+ "command": {+ "description": "The command to be executed.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory if not the default cwd for the agent.","type": "string"},- "summary_index": {- "default": 0,- "format": "int64",- "type": "integer"+ "interaction_input": {+ "description": "Raw input sent to a unified exec session (if this is an interaction event).",+ "type": [+ "string",+ "null"+ ]+ },+ "parsed_cmd": {+ "items": {+ "$ref": "#/definitions/ParsedCommand"+ },+ "type": "array"},- "thread_id": {- "type": "string"+ "process_id": {+ "description": "Identifier for the underlying PTY process (when available).",+ "type": [+ "string",+ "null"+ ]+ },+ "source": {+ "allOf": [+ {+ "$ref": "#/definitions/ExecCommandSource"+ }+ ],+ "default": "agent",+ "description": "Where the command originated. Defaults to Agent for backward compatibility."},"turn_id": {+ "description": "Turn ID that this command belongs to.","type": "string"},"type": {"enum": [- "reasoning_content_delta"+ "exec_command_begin"],- "title": "ReasoningContentDeltaEventMsgType",+ "title": "ExecCommandBeginEventMsgType","type": "string"}},"required": [- "delta",- "item_id",- "thread_id",+ "call_id",+ "command",+ "cwd",+ "parsed_cmd","turn_id","type"],- "title": "ReasoningContentDeltaEventMsg",+ "title": "ExecCommandBeginEventMsg","type": "object"},{+ "description": "Incremental chunk of output from a running command.","properties": {- "content_index": {- "default": 0,- "format": "int64",- "type": "integer"- },- "delta": {- "type": "string"- },- "item_id": {+ "call_id": {+ "description": "Identifier for the ExecCommandBegin that produced this chunk.","type": "string"},- "thread_id": {+ "chunk": {+ "description": "Raw bytes from the stream (may not be valid UTF-8).","type": "string"},- "turn_id": {- "type": "string"+ "stream": {+ "allOf": [+ {+ "$ref": "#/definitions/ExecOutputStream"+ }+ ],+ "description": "Which stream produced this chunk."},"type": {"enum": [- "reasoning_raw_content_delta"+ "exec_command_output_delta"],- "title": "ReasoningRawContentDeltaEventMsgType",+ "title": "ExecCommandOutputDeltaEventMsgType","type": "string"}},"required": [- "delta",- "item_id",- "thread_id",- "turn_id",+ "call_id",+ "chunk",+ "stream","type"],- "title": "ReasoningRawContentDeltaEventMsg",+ "title": "ExecCommandOutputDeltaEventMsg","type": "object"},{- "description": "Collab interaction: agent spawn begin.",+ "description": "Terminal interaction for an in-progress command (stdin sent and stdout observed).","properties": {"call_id": {- "description": "Identifier for the collab tool call.",+ "description": "Identifier for the ExecCommandBegin that produced this chunk.","type": "string"},- "prompt": {- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",+ "process_id": {+ "description": "Process id associated with the running command.","type": "string"},- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/v2/ThreadId"- }- ],- "description": "Thread ID of the sender."+ "stdin": {+ "description": "Stdin sent to the running session.",+ "type": "string"},"type": {"enum": [- "collab_agent_spawn_begin"+ "terminal_interaction"],- "title": "CollabAgentSpawnBeginEventMsgType",+ "title": "TerminalInteractionEventMsgType","type": "string"}},"required": ["call_id",- "prompt",- "sender_thread_id",+ "process_id",+ "stdin","type"],- "title": "CollabAgentSpawnBeginEventMsg",+ "title": "TerminalInteractionEventMsg","type": "object"},{- "description": "Collab interaction: agent spawn end.","properties": {+ "aggregated_output": {+ "default": "",+ "description": "Captured aggregated output",+ "type": "string"+ },"call_id": {- "description": "Identifier for the collab tool call.",+ "description": "Identifier for the ExecCommandBegin that finished.","type": "string"},- "new_agent_nickname": {- "description": "Optional nickname assigned to the new agent.",+ "command": {+ "description": "The command that was executed.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory if not the default cwd for the agent.",+ "type": "string"+ },+ "duration": {+ "allOf": [+ {+ "$ref": "#/definitions/Duration"+ }+ ],+ "description": "The duration of the command execution."+ },+ "exit_code": {+ "description": "The command's exit code.",+ "format": "int32",+ "type": "integer"+ },+ "formatted_output": {+ "description": "Formatted output from the command, as seen by the model.",+ "type": "string"+ },+ "interaction_input": {+ "description": "Raw input sent to a unified exec session (if this is an interaction event).","type": ["string","null"]},- "new_agent_role": {- "description": "Optional role assigned to the new agent.",+ "parsed_cmd": {+ "items": {+ "$ref": "#/definitions/ParsedCommand"+ },+ "type": "array"+ },+ "process_id": {+ "description": "Identifier for the underlying PTY process (when available).","type": ["string","null"]},- "new_thread_id": {- "anyOf": [- {- "$ref": "#/definitions/v2/ThreadId"- },- {- "type": "null"- }- ],- "description": "Thread ID of the newly spawned agent, if it was created."- },- "prompt": {- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",- "type": "string"- },- "sender_thread_id": {+ "source": {"allOf": [{- "$ref": "#/definitions/v2/ThreadId"+ "$ref": "#/definitions/ExecCommandSource"}],- "description": "Thread ID of the sender."+ "default": "agent",+ "description": "Where the command originated. Defaults to Agent for backward compatibility."},"status": {"allOf": [{- "$ref": "#/definitions/AgentStatus"+ "$ref": "#/definitions/ExecCommandStatus"}],- "description": "Last known status of the new agent reported to the sender agent."+ "description": "Completion status for this command execution."+ },+ "stderr": {+ "description": "Captured stderr",+ "type": "string"+ },+ "stdout": {+ "description": "Captured stdout",+ "type": "string"+ },+ "turn_id": {+ "description": "Turn ID that this command belongs to.",+ "type": "string"},"type": {"enum": [- "collab_agent_spawn_end"+ "exec_command_end"],- "title": "CollabAgentSpawnEndEventMsgType",+ "title": "ExecCommandEndEventMsgType","type": "string"}},"required": ["call_id",- "prompt",- "sender_thread_id",+ "command",+ "cwd",+ "duration",+ "exit_code",+ "formatted_output",+ "parsed_cmd","status",+ "stderr",+ "stdout",+ "turn_id","type"],- "title": "CollabAgentSpawnEndEventMsg",+ "title": "ExecCommandEndEventMsg","type": "object"},{- "description": "Collab interaction: agent interaction begin.",+ "description": "Notification that the agent attached a local image via the view_image tool.","properties": {"call_id": {- "description": "Identifier for the collab tool call.",+ "description": "Identifier for the originating tool call.","type": "string"},- "prompt": {- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",+ "path": {+ "description": "Local filesystem path provided to the tool.","type": "string"},- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/v2/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/v2/ThreadId"- }- ],- "description": "Thread ID of the sender."- },"type": {"enum": [- "collab_agent_interaction_begin"+ "view_image_tool_call"],- "title": "CollabAgentInteractionBeginEventMsgType",+ "title": "ViewImageToolCallEventMsgType","type": "string"}},"required": ["call_id",- "prompt",- "receiver_thread_id",- "sender_thread_id",+ "path","type"],- "title": "CollabAgentInteractionBeginEventMsg",+ "title": "ViewImageToolCallEventMsg","type": "object"},{- "description": "Collab interaction: agent interaction end.","properties": {+ "approval_id": {+ "description": "Identifier for this specific approval callback.\n\nWhen absent, the approval is for the command item itself (`call_id`). This is present for subcommand approvals (via execve intercept).",+ "type": [+ "string",+ "null"+ ]+ },"call_id": {- "description": "Identifier for the collab tool call.",+ "description": "Identifier for the associated command execution item.","type": "string"},- "prompt": {- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",+ "command": {+ "description": "The command to be executed.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.","type": "string"},- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",+ "network_approval_context": {+ "anyOf": [+ {+ "$ref": "#/definitions/NetworkApprovalContext"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional network context for a blocked request that can be approved."+ },+ "parsed_cmd": {+ "items": {+ "$ref": "#/definitions/ParsedCommand"+ },+ "type": "array"+ },+ "proposed_execpolicy_amendment": {+ "description": "Proposed execpolicy amendment that can be applied to allow future runs.",+ "items": {+ "type": "string"+ },"type": [- "string",+ "array","null"]},- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",+ "reason": {+ "description": "Optional human-readable reason for the approval (e.g. retry without sandbox).","type": ["string","null"]},- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/v2/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/v2/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the receiver agent reported to the sender agent."+ "turn_id": {+ "default": "",+ "description": "Turn ID that this command belongs to. Uses `#[serde(default)]` for backwards compatibility.",+ "type": "string"},"type": {"enum": [- "collab_agent_interaction_end"+ "exec_approval_request"],- "title": "CollabAgentInteractionEndEventMsgType",+ "title": "ExecApprovalRequestEventMsgType","type": "string"}},"required": ["call_id",- "prompt",- "receiver_thread_id",- "sender_thread_id",- "status",+ "command",+ "cwd",+ "parsed_cmd","type"],- "title": "CollabAgentInteractionEndEventMsg",+ "title": "ExecApprovalRequestEventMsg","type": "object"},{- "description": "Collab interaction: waiting begin.","properties": {"call_id": {- "description": "ID of the waiting call.",+ "description": "Responses API call id for the associated tool call, if available.","type": "string"},- "receiver_agents": {- "description": "Optional nicknames/roles for receivers.",- "items": {- "$ref": "#/definitions/CollabAgentRef"- },- "type": "array"- },- "receiver_thread_ids": {- "description": "Thread ID of the receivers.",+ "questions": {"items": {- "$ref": "#/definitions/v2/ThreadId"+ "$ref": "#/definitions/RequestUserInputQuestion"},"type": "array"},- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/v2/ThreadId"- }- ],- "description": "Thread ID of the sender."+ "turn_id": {+ "default": "",+ "description": "Turn ID that this request belongs to. Uses `#[serde(default)]` for backwards compatibility.",+ "type": "string"},"type": {"enum": [- "collab_waiting_begin"+ "request_user_input"],- "title": "CollabWaitingBeginEventMsgType",+ "title": "RequestUserInputEventMsgType","type": "string"}},"required": ["call_id",- "receiver_thread_ids",- "sender_thread_id",+ "questions","type"],- "title": "CollabWaitingBeginEventMsg",+ "title": "RequestUserInputEventMsg","type": "object"},{- "description": "Collab interaction: waiting end.","properties": {- "agent_statuses": {- "description": "Optional receiver metadata paired with final statuses.",- "items": {- "$ref": "#/definitions/CollabAgentStatusEntry"- },- "type": "array"- },- "call_id": {- "description": "ID of the waiting call.",+ "arguments": true,+ "callId": {"type": "string"},- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/v2/ThreadId"- }- ],- "description": "Thread ID of the sender."+ "tool": {+ "type": "string"},- "statuses": {- "additionalProperties": {- "$ref": "#/definitions/AgentStatus"- },- "description": "Last known status of the receiver agents reported to the sender agent.",- "type": "object"+ "turnId": {+ "type": "string"},"type": {"enum": [- "collab_waiting_end"+ "dynamic_tool_call_request"],- "title": "CollabWaitingEndEventMsgType",+ "title": "DynamicToolCallRequestEventMsgType","type": "string"}},"required": [- "call_id",- "sender_thread_id",- "statuses",+ "arguments",+ "callId",+ "tool",+ "turnId","type"],- "title": "CollabWaitingEndEventMsg",+ "title": "DynamicToolCallRequestEventMsg","type": "object"},{- "description": "Collab interaction: close begin.","properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"+ "id": {+ "$ref": "#/definitions/RequestId"},- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/v2/ThreadId"- }- ],- "description": "Thread ID of the receiver."+ "message": {+ "type": "string"},- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/v2/ThreadId"- }- ],- "description": "Thread ID of the sender."+ "server_name": {+ "type": "string"},"type": {"enum": [- "collab_close_begin"+ "elicitation_request"],- "title": "CollabCloseBeginEventMsgType",+ "title": "ElicitationRequestEventMsgType","type": "string"}},"required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",+ "id",+ "message",+ "server_name","type"],- "title": "CollabCloseBeginEventMsg",+ "title": "ElicitationRequestEventMsg","type": "object"},{- "description": "Collab interaction: close end.","properties": {"call_id": {- "description": "Identifier for the collab tool call.",+ "description": "Responses API call id for the associated patch apply call, if available.","type": "string"},- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",+ "changes": {+ "additionalProperties": {+ "$ref": "#/definitions/FileChange"+ },+ "type": "object"+ },+ "grant_root": {+ "description": "When set, the agent is asking the user to allow writes under this root for the remainder of the session.","type": ["string","null"]},- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",+ "reason": {+ "description": "Optional explanatory reason (e.g. request for extra write access).","type": ["string","null"]},- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/v2/ThreadId"- }- ],- "description": "Thread ID of the receiver."+ "turn_id": {+ "default": "",+ "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility with older senders.",+ "type": "string"},- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/v2/ThreadId"- }+ "type": {+ "enum": [+ "apply_patch_approval_request"],- "description": "Thread ID of the sender."+ "title": "ApplyPatchApprovalRequestEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "call_id",+ "changes",+ "type"+ ],+ "title": "ApplyPatchApprovalRequestEventMsg",+ "type": "object"+ },+ {+ "description": "Notification advising the user that something they are using has been deprecated and should be phased out.",+ "properties": {+ "details": {+ "description": "Optional extra guidance, such as migration steps or rationale.",+ "type": [+ "string",+ "null"+ ]},- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }+ "summary": {+ "description": "Concise summary of what is deprecated.",+ "type": "string"+ },+ "type": {+ "enum": [+ "deprecation_notice"],- "description": "Last known status of the receiver agent reported to the sender agent before the close."+ "title": "DeprecationNoticeEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "summary",+ "type"+ ],+ "title": "DeprecationNoticeEventMsg",+ "type": "object"+ },+ {+ "properties": {+ "message": {+ "type": "string"},"type": {"enum": [- "collab_close_end"+ "background_event"],- "title": "CollabCloseEndEventMsgType",+ "title": "BackgroundEventEventMsgType","type": "string"}},"required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "status",+ "message","type"],- "title": "CollabCloseEndEventMsg",+ "title": "BackgroundEventEventMsg","type": "object"},{- "description": "Collab interaction: resume begin.","properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",+ "message": {"type": ["string","null"]},- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",+ "type": {+ "enum": [+ "undo_started"+ ],+ "title": "UndoStartedEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "UndoStartedEventMsg",+ "type": "object"+ },+ {+ "properties": {+ "message": {"type": ["string","null"]},- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/v2/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/v2/ThreadId"- }- ],- "description": "Thread ID of the sender."+ "success": {+ "type": "boolean"},"type": {"enum": [- "collab_resume_begin"+ "undo_completed"],- "title": "CollabResumeBeginEventMsgType",+ "title": "UndoCompletedEventMsgType","type": "string"}},"required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",+ "success","type"],- "title": "CollabResumeBeginEventMsg",+ "title": "UndoCompletedEventMsg","type": "object"},{- "description": "Collab interaction: resume end.",+ "description": "Notification that a model stream experienced an error or disconnect and the system is handling it (e.g., retrying with backoff).","properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",+ "additional_details": {+ "default": null,+ "description": "Optional details about the underlying stream failure (often the same human-readable message that is surfaced as the terminal error if retries are exhausted).","type": ["string","null"]},- "receiver_thread_id": {- "allOf": [+ "codex_error_info": {+ "anyOf": [{- "$ref": "#/definitions/v2/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [+ "$ref": "#/definitions/v2/CodexErrorInfo"+ },{- "$ref": "#/definitions/v2/ThreadId"+ "type": "null"}],- "description": "Thread ID of the sender."+ "default": null},- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the receiver agent reported to the sender agent after resume."+ "message": {+ "type": "string"},"type": {"enum": [- "collab_resume_end"+ "stream_error"],- "title": "CollabResumeEndEventMsgType",+ "title": "StreamErrorEventMsgType","type": "string"}},"required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "status",+ "message","type"],- "title": "CollabResumeEndEventMsg",+ "title": "StreamErrorEventMsg","type": "object"- }- ],- "title": "EventMsg"- },- "ExecCommandApprovalParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "approvalId": {- "description": "Identifier for this specific approval callback.",- "type": [- "string",- "null"- ]- },- "callId": {- "description": "Use to correlate this with [codex_core::protocol::ExecCommandBeginEvent] and [codex_core::protocol::ExecCommandEndEvent].",- "type": "string"- },- "command": {- "items": {- "type": "string"- },- "type": "array"- },- "conversationId": {- "$ref": "#/definitions/v2/ThreadId"- },- "cwd": {- "type": "string"- },- "parsedCmd": {- "items": {- "$ref": "#/definitions/ParsedCommand"- },- "type": "array"- },- "reason": {- "type": [- "string",- "null"- ]- }- },- "required": [- "callId",- "command",- "conversationId",- "cwd",- "parsedCmd"- ],- "title": "ExecCommandApprovalParams",- "type": "object"- },- "ExecCommandApprovalResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "decision": {- "$ref": "#/definitions/ReviewDecision"- }- },- "required": [- "decision"- ],- "title": "ExecCommandApprovalResponse",- "type": "object"- },- "ExecCommandSource": {- "enum": [- "agent",- "user_shell",- "unified_exec_startup",- "unified_exec_interaction"- ],- "type": "string"- },- "ExecCommandStatus": {- "enum": [- "completed",- "failed",- "declined"- ],- "type": "string"- },- "ExecOneOffCommandParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "command": {- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "type": [- "string",- "null"- ]- },- "sandboxPolicy": {- "anyOf": [- {- "$ref": "#/definitions/SandboxPolicy"- },- {- "type": "null"- }- ]- },- "timeoutMs": {- "format": "uint64",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "required": [- "command"- ],- "title": "ExecOneOffCommandParams",- "type": "object"- },- "ExecOneOffCommandResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "exitCode": {- "format": "int32",- "type": "integer"- },- "stderr": {- "type": "string"},- "stdout": {- "type": "string"- }- },- "required": [- "exitCode",- "stderr",- "stdout"- ],- "title": "ExecOneOffCommandResponse",- "type": "object"- },- "ExecOutputStream": {- "enum": [- "stdout",- "stderr"- ],- "type": "string"- },- "FileChange": {- "oneOf": [{+ "description": "Notification that the agent is about to apply a code patch. Mirrors `ExecCommandBegin` so front‑ends can show progress indicators.","properties": {- "content": {+ "auto_approved": {+ "description": "If true, there was no ApplyPatchApprovalRequest for this patch.",+ "type": "boolean"+ },+ "call_id": {+ "description": "Identifier so this can be paired with the PatchApplyEnd event.",+ "type": "string"+ },+ "changes": {+ "additionalProperties": {+ "$ref": "#/definitions/FileChange"+ },+ "description": "The changes to be applied.",+ "type": "object"+ },+ "turn_id": {+ "default": "",+ "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.","type": "string"},"type": {"enum": [- "add"+ "patch_apply_begin"],- "title": "AddFileChangeType",+ "title": "PatchApplyBeginEventMsgType","type": "string"}},"required": [- "content",+ "auto_approved",+ "call_id",+ "changes","type"],- "title": "AddFileChange",+ "title": "PatchApplyBeginEventMsg","type": "object"},{+ "description": "Notification that a patch application has finished.","properties": {- "content": {+ "call_id": {+ "description": "Identifier for the PatchApplyBegin that finished.",+ "type": "string"+ },+ "changes": {+ "additionalProperties": {+ "$ref": "#/definitions/FileChange"+ },+ "default": {},+ "description": "The changes that were applied (mirrors PatchApplyBeginEvent::changes).",+ "type": "object"+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/PatchApplyStatus"+ }+ ],+ "description": "Completion status for this patch application."+ },+ "stderr": {+ "description": "Captured stderr (parser errors, IO failures, etc.).",+ "type": "string"+ },+ "stdout": {+ "description": "Captured stdout (summary printed by apply_patch).",+ "type": "string"+ },+ "success": {+ "description": "Whether the patch was applied successfully.",+ "type": "boolean"+ },+ "turn_id": {+ "default": "",+ "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.","type": "string"},"type": {"enum": [- "delete"+ "patch_apply_end"],- "title": "DeleteFileChangeType",+ "title": "PatchApplyEndEventMsgType","type": "string"}},"required": [- "content",+ "call_id",+ "status",+ "stderr",+ "stdout",+ "success","type"],- "title": "DeleteFileChange",+ "title": "PatchApplyEndEventMsg","type": "object"},{"properties": {- "move_path": {- "type": [- "string",- "null"- ]- },"type": {"enum": [- "update"+ "turn_diff"],- "title": "UpdateFileChangeType",+ "title": "TurnDiffEventMsgType","type": "string"},"unified_diff": {@@ -5443,2357 +3144,1829 @@"type","unified_diff"],- "title": "UpdateFileChange",+ "title": "TurnDiffEventMsg","type": "object"- }- ]- },- "FileChangeApprovalDecision": {- "oneOf": [- {- "description": "User approved the file changes.",- "enum": [- "accept"- ],- "type": "string"- },- {- "description": "User approved the file changes and future changes to the same files should run without prompting.",- "enum": [- "acceptForSession"- ],- "type": "string"- },- {- "description": "User denied the file changes. The agent will continue the turn.",- "enum": [- "decline"- ],- "type": "string"- },- {- "description": "User denied the file changes. The turn will also be immediately interrupted.",- "enum": [- "cancel"- ],- "type": "string"- }- ]- },- "FileChangeRequestApprovalParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "grantRoot": {- "description": "[UNSTABLE] When set, the agent is asking the user to allow writes under this root for the remainder of the session (unclear if this is honored today).",- "type": [- "string",- "null"- ]- },- "itemId": {- "type": "string"- },- "reason": {- "description": "Optional explanatory reason (e.g. request for extra write access).",- "type": [- "string",- "null"- ]- },- "threadId": {- "type": "string"- },- "turnId": {- "type": "string"- }- },- "required": [- "itemId",- "threadId",- "turnId"- ],- "title": "FileChangeRequestApprovalParams",- "type": "object"- },- "FileChangeRequestApprovalResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "decision": {- "$ref": "#/definitions/FileChangeApprovalDecision"- }- },- "required": [- "decision"- ],- "title": "FileChangeRequestApprovalResponse",- "type": "object"- },- "ForcedLoginMethod": {- "enum": [- "chatgpt",- "api"- ],- "type": "string"- },- "ForkConversationParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "conversationId": {- "anyOf": [- {- "$ref": "#/definitions/ThreadId"- },- {- "type": "null"- }- ]- },- "overrides": {- "anyOf": [- {- "$ref": "#/definitions/NewConversationParams"- },- {- "type": "null"- }- ]- },- "path": {- "type": [- "string",- "null"- ]- }- },- "title": "ForkConversationParams",- "type": "object"- },- "ForkConversationResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "initialMessages": {- "items": {- "$ref": "#/definitions/EventMsg"- },- "type": [- "array",- "null"- ]- },- "model": {- "type": "string"- },- "rolloutPath": {- "type": "string"- }- },- "required": [- "conversationId",- "model",- "rolloutPath"- ],- "title": "ForkConversationResponse",- "type": "object"- },- "FunctionCallOutputBody": {- "anyOf": [- {- "type": "string"},{- "items": {- "$ref": "#/definitions/FunctionCallOutputContentItem"- },- "type": "array"- }- ]- },- "FunctionCallOutputContentItem": {- "description": "Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.",- "oneOf": [- {+ "description": "Response to GetHistoryEntryRequest.","properties": {- "text": {- "type": "string"+ "entry": {+ "anyOf": [+ {+ "$ref": "#/definitions/HistoryEntry"+ },+ {+ "type": "null"+ }+ ],+ "description": "The entry at the requested offset, if available and parseable."+ },+ "log_id": {+ "format": "uint64",+ "minimum": 0.0,+ "type": "integer"+ },+ "offset": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"},"type": {"enum": [- "input_text"+ "get_history_entry_response"],- "title": "InputTextFunctionCallOutputContentItemType",+ "title": "GetHistoryEntryResponseEventMsgType","type": "string"}},"required": [- "text",+ "log_id",+ "offset","type"],- "title": "InputTextFunctionCallOutputContentItem",+ "title": "GetHistoryEntryResponseEventMsg","type": "object"},{+ "description": "List of MCP tools available to the agent.","properties": {- "image_url": {- "type": "string"+ "auth_statuses": {+ "additionalProperties": {+ "$ref": "#/definitions/v2/McpAuthStatus"+ },+ "description": "Authentication status for each configured MCP server.",+ "type": "object"+ },+ "resource_templates": {+ "additionalProperties": {+ "items": {+ "$ref": "#/definitions/v2/ResourceTemplate"+ },+ "type": "array"+ },+ "description": "Known resource templates grouped by server name.",+ "type": "object"+ },+ "resources": {+ "additionalProperties": {+ "items": {+ "$ref": "#/definitions/v2/Resource"+ },+ "type": "array"+ },+ "description": "Known resources grouped by server name.",+ "type": "object"+ },+ "tools": {+ "additionalProperties": {+ "$ref": "#/definitions/v2/Tool"+ },+ "description": "Fully qualified tool name -> tool definition.",+ "type": "object"},"type": {"enum": [- "input_image"+ "mcp_list_tools_response"],- "title": "InputImageFunctionCallOutputContentItemType",+ "title": "McpListToolsResponseEventMsgType","type": "string"}},"required": [- "image_url",+ "auth_statuses",+ "resource_templates",+ "resources",+ "tools","type"],- "title": "InputImageFunctionCallOutputContentItem",+ "title": "McpListToolsResponseEventMsg","type": "object"- }- ]- },- "FunctionCallOutputPayload": {- "description": "The payload we send back to OpenAI when reporting a tool call result.\n\n`body` serializes directly as the wire value for `function_call_output.output`. `success` remains internal metadata for downstream handling.",- "properties": {- "body": {- "$ref": "#/definitions/FunctionCallOutputBody"- },- "success": {- "type": [- "boolean",- "null"- ]- }- },- "required": [- "body"- ],- "type": "object"- },- "FuzzyFileSearchParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "cancellationToken": {- "type": [- "string",- "null"- ]- },- "query": {- "type": "string"- },- "roots": {- "items": {- "type": "string"- },- "type": "array"- }- },- "required": [- "query",- "roots"- ],- "title": "FuzzyFileSearchParams",- "type": "object"- },- "FuzzyFileSearchResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "files": {- "items": {- "$ref": "#/definitions/FuzzyFileSearchResult"- },- "type": "array"- }- },- "required": [- "files"- ],- "title": "FuzzyFileSearchResponse",- "type": "object"- },- "FuzzyFileSearchResult": {- "description": "Superset of [`codex_file_search::FileMatch`]",- "properties": {- "file_name": {- "type": "string"- },- "indices": {- "items": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "type": [- "array",- "null"- ]- },- "path": {- "type": "string"- },- "root": {- "type": "string"- },- "score": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "file_name",- "path",- "root",- "score"- ],- "type": "object"- },- "FuzzyFileSearchSessionCompletedNotification": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "sessionId": {- "type": "string"- }- },- "required": [- "sessionId"- ],- "title": "FuzzyFileSearchSessionCompletedNotification",- "type": "object"- },- "FuzzyFileSearchSessionUpdatedNotification": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "files": {- "items": {- "$ref": "#/definitions/FuzzyFileSearchResult"- },- "type": "array"- },- "query": {- "type": "string"- },- "sessionId": {- "type": "string"- }- },- "required": [- "files",- "query",- "sessionId"- ],- "title": "FuzzyFileSearchSessionUpdatedNotification",- "type": "object"- },- "GetAuthStatusParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "includeToken": {- "type": [- "boolean",- "null"- ]},- "refreshToken": {- "type": [- "boolean",- "null"- ]- }- },- "title": "GetAuthStatusParams",- "type": "object"- },- "GetAuthStatusResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "authMethod": {- "anyOf": [- {- "$ref": "#/definitions/AuthMode"+ {+ "description": "List of custom prompts available to the agent.",+ "properties": {+ "custom_prompts": {+ "items": {+ "$ref": "#/definitions/CustomPrompt"+ },+ "type": "array"},- {- "type": "null"+ "type": {+ "enum": [+ "list_custom_prompts_response"+ ],+ "title": "ListCustomPromptsResponseEventMsgType",+ "type": "string"}- ]- },- "authToken": {- "type": [- "string",- "null"- ]- },- "requiresOpenaiAuth": {- "type": [- "boolean",- "null"- ]- }- },- "title": "GetAuthStatusResponse",- "type": "object"- },- "GetConversationSummaryParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "anyOf": [+ },+ "required": [+ "custom_prompts",+ "type"+ ],+ "title": "ListCustomPromptsResponseEventMsg",+ "type": "object"+ },{+ "description": "List of skills available to the agent.","properties": {- "rolloutPath": {+ "skills": {+ "items": {+ "$ref": "#/definitions/v2/SkillsListEntry"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "list_skills_response"+ ],+ "title": "ListSkillsResponseEventMsgType","type": "string"}},"required": [- "rolloutPath"+ "skills",+ "type"],- "title": "RolloutPathv1::GetConversationSummaryParams",+ "title": "ListSkillsResponseEventMsg","type": "object"},{+ "description": "List of remote skills available to the agent.","properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"+ "skills": {+ "items": {+ "$ref": "#/definitions/v2/RemoteSkillSummary"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "list_remote_skills_response"+ ],+ "title": "ListRemoteSkillsResponseEventMsgType",+ "type": "string"}},"required": [- "conversationId"+ "skills",+ "type"],- "title": "ConversationIdv1::GetConversationSummaryParams",+ "title": "ListRemoteSkillsResponseEventMsg","type": "object"- }- ],- "title": "GetConversationSummaryParams"- },- "GetConversationSummaryResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "summary": {- "$ref": "#/definitions/ConversationSummary"- }- },- "required": [- "summary"- ],- "title": "GetConversationSummaryResponse",- "type": "object"- },- "GetUserAgentResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "userAgent": {- "type": "string"- }- },- "required": [- "userAgent"- ],- "title": "GetUserAgentResponse",- "type": "object"- },- "GetUserSavedConfigResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "config": {- "$ref": "#/definitions/UserSavedConfig"- }- },- "required": [- "config"- ],- "title": "GetUserSavedConfigResponse",- "type": "object"- },- "GhostCommit": {- "description": "Details of a ghost commit created from a repository state.",- "properties": {- "id": {- "type": "string"- },- "parent": {- "type": [- "string",- "null"- ]},- "preexisting_untracked_dirs": {- "items": {- "type": "string"+ {+ "description": "Remote skill downloaded to local cache.",+ "properties": {+ "id": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "remote_skill_downloaded"+ ],+ "title": "RemoteSkillDownloadedEventMsgType",+ "type": "string"+ }},- "type": "array"+ "required": [+ "id",+ "name",+ "path",+ "type"+ ],+ "title": "RemoteSkillDownloadedEventMsg",+ "type": "object"},- "preexisting_untracked_files": {- "items": {- "type": "string"+ {+ "description": "Notification that skill data may have been updated and clients may want to reload.",+ "properties": {+ "type": {+ "enum": [+ "skills_update_available"+ ],+ "title": "SkillsUpdateAvailableEventMsgType",+ "type": "string"+ }},- "type": "array"- }- },- "required": [- "id",- "preexisting_untracked_dirs",- "preexisting_untracked_files"- ],- "type": "object"- },- "GitDiffToRemoteParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "cwd": {- "type": "string"- }- },- "required": [- "cwd"- ],- "title": "GitDiffToRemoteParams",- "type": "object"- },- "GitDiffToRemoteResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "diff": {- "type": "string"- },- "sha": {- "$ref": "#/definitions/GitSha"- }- },- "required": [- "diff",- "sha"- ],- "title": "GitDiffToRemoteResponse",- "type": "object"- },- "GitSha": {- "type": "string"- },- "HistoryEntry": {- "properties": {- "conversation_id": {- "type": "string"- },- "text": {- "type": "string"- },- "ts": {- "format": "uint64",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "conversation_id",- "text",- "ts"- ],- "type": "object"- },- "InitializeCapabilities": {- "description": "Client-declared capabilities negotiated during initialize.",- "properties": {- "experimentalApi": {- "default": false,- "description": "Opt into receiving experimental API methods and fields.",- "type": "boolean"+ "required": [+ "type"+ ],+ "title": "SkillsUpdateAvailableEventMsg",+ "type": "object"},- "optOutNotificationMethods": {- "description": "Exact notification method names that should be suppressed for this connection (for example `codex/event/session_configured`).",- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- }- },- "type": "object"- },- "InitializeParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "capabilities": {- "anyOf": [- {- "$ref": "#/definitions/InitializeCapabilities"+ {+ "properties": {+ "explanation": {+ "default": null,+ "description": "Arguments for the `update_plan` todo/checklist tool (not plan mode).",+ "type": [+ "string",+ "null"+ ]},- {- "type": "null"+ "plan": {+ "items": {+ "$ref": "#/definitions/PlanItemArg"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "plan_update"+ ],+ "title": "PlanUpdateEventMsgType",+ "type": "string"}- ]+ },+ "required": [+ "plan",+ "type"+ ],+ "title": "PlanUpdateEventMsg",+ "type": "object"},- "clientInfo": {- "$ref": "#/definitions/ClientInfo"- }- },- "required": [- "clientInfo"- ],- "title": "InitializeParams",- "type": "object"- },- "InitializeResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "userAgent": {- "type": "string"- }- },- "required": [- "userAgent"- ],- "title": "InitializeResponse",- "type": "object"- },- "InputItem": {- "oneOf": [{"properties": {- "data": {- "properties": {- "text": {- "type": "string"- },- "text_elements": {- "default": [],- "description": "UI-defined spans within `text` used to render or persist special elements.",- "items": {- "$ref": "#/definitions/V1TextElement"- },- "type": "array"- }- },- "required": [- "text"- ],- "type": "object"+ "reason": {+ "$ref": "#/definitions/TurnAbortReason"+ },+ "turn_id": {+ "type": [+ "string",+ "null"+ ]},"type": {"enum": [- "text"+ "turn_aborted"],- "title": "TextInputItemType",+ "title": "TurnAbortedEventMsgType","type": "string"}},"required": [- "data",+ "reason","type"],- "title": "TextInputItem",+ "title": "TurnAbortedEventMsg","type": "object"},{+ "description": "Notification that the agent is shutting down.","properties": {- "data": {- "properties": {- "image_url": {- "type": "string"- }- },- "required": [- "image_url"+ "type": {+ "enum": [+ "shutdown_complete"],- "type": "object"+ "title": "ShutdownCompleteEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ShutdownCompleteEventMsg",+ "type": "object"+ },+ {+ "description": "Entered review mode.",+ "properties": {+ "target": {+ "$ref": "#/definitions/v2/ReviewTarget"},"type": {"enum": [- "image"+ "entered_review_mode"],- "title": "ImageInputItemType",+ "title": "EnteredReviewModeEventMsgType","type": "string"+ },+ "user_facing_hint": {+ "type": [+ "string",+ "null"+ ]}},"required": [- "data",+ "target","type"],- "title": "ImageInputItem",+ "title": "EnteredReviewModeEventMsg","type": "object"},{+ "description": "Exited review mode with an optional final result to apply.","properties": {- "data": {- "properties": {- "path": {- "type": "string"+ "review_output": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReviewOutputEvent"+ },+ {+ "type": "null"}- },- "required": [- "path"- ],- "type": "object"+ ]},"type": {"enum": [- "localImage"+ "exited_review_mode"],- "title": "LocalImageInputItemType",+ "title": "ExitedReviewModeEventMsgType","type": "string"}},"required": [- "data","type"],- "title": "LocalImageInputItem",+ "title": "ExitedReviewModeEventMsg","type": "object"- }- ]- },- "InterruptConversationParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- }- },- "required": [- "conversationId"- ],- "title": "InterruptConversationParams",- "type": "object"- },- "InterruptConversationResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "abortReason": {- "$ref": "#/definitions/TurnAbortReason"- }- },- "required": [- "abortReason"- ],- "title": "InterruptConversationResponse",- "type": "object"- },- "JSONRPCError": {- "$schema": "http://json-schema.org/draft-07/schema#",- "description": "A response to a request that indicates an error occurred.",- "properties": {- "error": {- "$ref": "#/definitions/JSONRPCErrorError"- },- "id": {- "$ref": "#/definitions/RequestId"- }- },- "required": [- "error",- "id"- ],- "title": "JSONRPCError",- "type": "object"- },- "JSONRPCErrorError": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "code": {- "format": "int64",- "type": "integer"- },- "data": true,- "message": {- "type": "string"- }- },- "required": [- "code",- "message"- ],- "title": "JSONRPCErrorError",- "type": "object"- },- "JSONRPCMessage": {- "$schema": "http://json-schema.org/draft-07/schema#",- "anyOf": [- {- "$ref": "#/definitions/JSONRPCRequest"- },- {- "$ref": "#/definitions/JSONRPCNotification"- },- {- "$ref": "#/definitions/JSONRPCResponse"},{- "$ref": "#/definitions/JSONRPCError"- }- ],- "description": "Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.",- "title": "JSONRPCMessage"- },- "JSONRPCNotification": {- "$schema": "http://json-schema.org/draft-07/schema#",- "description": "A notification which does not expect a response.",- "properties": {- "method": {- "type": "string"- },- "params": true- },- "required": [- "method"- ],- "title": "JSONRPCNotification",- "type": "object"- },- "JSONRPCRequest": {- "$schema": "http://json-schema.org/draft-07/schema#",- "description": "A request that expects a response.",- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "type": "string"- },- "params": true- },- "required": [- "id",- "method"- ],- "title": "JSONRPCRequest",- "type": "object"- },- "JSONRPCResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "description": "A successful (non-error) response to a request.",- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "result": true- },- "required": [- "id",- "result"- ],- "title": "JSONRPCResponse",- "type": "object"- },- "ListConversationsParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "cursor": {- "type": [- "string",- "null"- ]- },- "modelProviders": {- "items": {- "type": "string"+ "properties": {+ "item": {+ "$ref": "#/definitions/v2/ResponseItem"+ },+ "type": {+ "enum": [+ "raw_response_item"+ ],+ "title": "RawResponseItemEventMsgType",+ "type": "string"+ }},- "type": [- "array",- "null"- ]+ "required": [+ "item",+ "type"+ ],+ "title": "RawResponseItemEventMsg",+ "type": "object"},- "pageSize": {- "format": "uint",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "title": "ListConversationsParams",- "type": "object"- },- "ListConversationsResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "items": {- "items": {- "$ref": "#/definitions/ConversationSummary"+ {+ "properties": {+ "item": {+ "$ref": "#/definitions/TurnItem"+ },+ "thread_id": {+ "$ref": "#/definitions/v2/ThreadId"+ },+ "turn_id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "item_started"+ ],+ "title": "ItemStartedEventMsgType",+ "type": "string"+ }},- "type": "array"+ "required": [+ "item",+ "thread_id",+ "turn_id",+ "type"+ ],+ "title": "ItemStartedEventMsg",+ "type": "object"},- "nextCursor": {- "type": [- "string",- "null"- ]- }- },- "required": [- "items"- ],- "title": "ListConversationsResponse",- "type": "object"- },- "LocalShellAction": {- "oneOf": [{"properties": {- "command": {- "items": {- "type": "string"- },- "type": "array"+ "item": {+ "$ref": "#/definitions/TurnItem"},- "env": {- "additionalProperties": {- "type": "string"- },- "type": [- "object",- "null"- ]+ "thread_id": {+ "$ref": "#/definitions/v2/ThreadId"},- "timeout_ms": {- "format": "uint64",- "minimum": 0.0,- "type": [- "integer",- "null"- ]+ "turn_id": {+ "type": "string"},"type": {"enum": [- "exec"+ "item_completed"],- "title": "ExecLocalShellActionType",+ "title": "ItemCompletedEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "item",+ "thread_id",+ "turn_id",+ "type"+ ],+ "title": "ItemCompletedEventMsg",+ "type": "object"+ },+ {+ "properties": {+ "delta": {"type": "string"},- "user": {- "type": [- "string",- "null"- ]+ "item_id": {+ "type": "string"},- "working_directory": {- "type": [- "string",- "null"- ]+ "thread_id": {+ "type": "string"+ },+ "turn_id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agent_message_content_delta"+ ],+ "title": "AgentMessageContentDeltaEventMsgType",+ "type": "string"}},"required": [- "command",+ "delta",+ "item_id",+ "thread_id",+ "turn_id","type"],- "title": "ExecLocalShellAction",+ "title": "AgentMessageContentDeltaEventMsg","type": "object"- }- ]- },- "LocalShellStatus": {- "enum": [- "completed",- "in_progress",- "incomplete"- ],- "type": "string"- },- "LoginApiKeyParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "apiKey": {- "type": "string"- }- },- "required": [- "apiKey"- ],- "title": "LoginApiKeyParams",- "type": "object"- },- "LoginApiKeyResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "title": "LoginApiKeyResponse",- "type": "object"- },- "LoginChatGptCompleteNotification": {- "$schema": "http://json-schema.org/draft-07/schema#",- "description": "Deprecated in favor of AccountLoginCompletedNotification.",- "properties": {- "error": {- "type": [- "string",- "null"- ]- },- "loginId": {- "type": "string"- },- "success": {- "type": "boolean"- }- },- "required": [- "loginId",- "success"- ],- "title": "LoginChatGptCompleteNotification",- "type": "object"- },- "LoginChatGptResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "authUrl": {- "type": "string"- },- "loginId": {- "type": "string"- }- },- "required": [- "authUrl",- "loginId"- ],- "title": "LoginChatGptResponse",- "type": "object"- },- "LogoutChatGptResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "title": "LogoutChatGptResponse",- "type": "object"- },- "McpAuthStatus": {- "enum": [- "unsupported",- "not_logged_in",- "bearer_token",- "o_auth"- ],- "type": "string"- },- "McpInvocation": {- "properties": {- "arguments": {- "description": "Arguments to the tool call."- },- "server": {- "description": "Name of the MCP server as defined in the config.",- "type": "string"- },- "tool": {- "description": "Name of the tool as given by the MCP server.",- "type": "string"- }- },- "required": [- "server",- "tool"- ],- "type": "object"- },- "McpStartupFailure": {- "properties": {- "error": {- "type": "string"},- "server": {- "type": "string"- }- },- "required": [- "error",- "server"- ],- "type": "object"- },- "McpStartupStatus": {- "oneOf": [{"properties": {- "state": {+ "delta": {+ "type": "string"+ },+ "item_id": {+ "type": "string"+ },+ "thread_id": {+ "type": "string"+ },+ "turn_id": {+ "type": "string"+ },+ "type": {"enum": [- "starting"+ "plan_delta"],+ "title": "PlanDeltaEventMsgType","type": "string"}},"required": [- "state"+ "delta",+ "item_id",+ "thread_id",+ "turn_id",+ "type"],- "title": "StateMcpStartupStatus",+ "title": "PlanDeltaEventMsg","type": "object"},{"properties": {- "state": {+ "delta": {+ "type": "string"+ },+ "item_id": {+ "type": "string"+ },+ "summary_index": {+ "default": 0,+ "format": "int64",+ "type": "integer"+ },+ "thread_id": {+ "type": "string"+ },+ "turn_id": {+ "type": "string"+ },+ "type": {"enum": [- "ready"+ "reasoning_content_delta"],+ "title": "ReasoningContentDeltaEventMsgType","type": "string"}},"required": [- "state"+ "delta",+ "item_id",+ "thread_id",+ "turn_id",+ "type"],- "title": "StateMcpStartupStatus2",+ "title": "ReasoningContentDeltaEventMsg","type": "object"},{"properties": {- "error": {+ "content_index": {+ "default": 0,+ "format": "int64",+ "type": "integer"+ },+ "delta": {"type": "string"},- "state": {+ "item_id": {+ "type": "string"+ },+ "thread_id": {+ "type": "string"+ },+ "turn_id": {+ "type": "string"+ },+ "type": {"enum": [- "failed"+ "reasoning_raw_content_delta"],+ "title": "ReasoningRawContentDeltaEventMsgType","type": "string"}},"required": [- "error",- "state"+ "delta",+ "item_id",+ "thread_id",+ "turn_id",+ "type"],+ "title": "ReasoningRawContentDeltaEventMsg","type": "object"},{+ "description": "Collab interaction: agent spawn begin.","properties": {- "state": {+ "call_id": {+ "description": "Identifier for the collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",+ "type": "string"+ },+ "sender_thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/ThreadId"+ }+ ],+ "description": "Thread ID of the sender."+ },+ "type": {"enum": [- "cancelled"+ "collab_agent_spawn_begin"],+ "title": "CollabAgentSpawnBeginEventMsgType","type": "string"}},"required": [- "state"+ "call_id",+ "prompt",+ "sender_thread_id",+ "type"],- "title": "StateMcpStartupStatus3",+ "title": "CollabAgentSpawnBeginEventMsg","type": "object"- }- ]- },- "MessagePhase": {- "description": "Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as \"phase unknown\" and keep compatibility behavior for legacy models.",- "oneOf": [- {- "description": "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.",- "enum": [- "commentary"- ],- "type": "string"},{- "description": "The assistant's terminal answer text for the current turn.",- "enum": [- "final_answer"- ],- "type": "string"- }- ]- },- "ModeKind": {- "description": "Initial collaboration mode to use when the TUI starts.",- "enum": [- "plan",- "default"- ],- "type": "string"- },- "ModelRerouteReason": {- "enum": [- "high_risk_cyber_activity"- ],- "type": "string"- },- "NetworkAccess": {- "description": "Represents whether outbound network access is available to the agent.",- "enum": [- "restricted",- "enabled"- ],- "type": "string"- },- "NetworkApprovalContext": {- "properties": {- "host": {- "type": "string"- },- "protocol": {- "$ref": "#/definitions/NetworkApprovalProtocol"- }- },- "required": [- "host",- "protocol"- ],- "type": "object"- },- "NetworkApprovalProtocol": {- "enum": [- "http",- "https",- "socks5_tcp",- "socks5_udp"- ],- "type": "string"- },- "NewConversationParams": {- "properties": {- "approvalPolicy": {- "anyOf": [- {- "$ref": "#/definitions/AskForApproval"+ "description": "Collab interaction: agent spawn end.",+ "properties": {+ "call_id": {+ "description": "Identifier for the collab tool call.",+ "type": "string"},- {- "type": "null"- }- ]- },- "baseInstructions": {- "type": [- "string",- "null"- ]- },- "compactPrompt": {- "type": [- "string",- "null"- ]- },- "config": {- "additionalProperties": true,- "type": [- "object",- "null"- ]- },- "cwd": {- "type": [- "string",- "null"- ]- },- "developerInstructions": {- "type": [- "string",- "null"- ]- },- "includeApplyPatchTool": {- "type": [- "boolean",- "null"- ]- },- "model": {- "type": [- "string",- "null"- ]- },- "modelProvider": {- "type": [- "string",- "null"- ]- },- "profile": {- "type": [- "string",- "null"- ]- },- "sandbox": {- "anyOf": [- {- "$ref": "#/definitions/SandboxMode"+ "new_agent_nickname": {+ "description": "Optional nickname assigned to the new agent.",+ "type": [+ "string",+ "null"+ ]},- {- "type": "null"- }- ]- }- },- "type": "object"- },- "NewConversationResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "model": {- "type": "string"- },- "reasoningEffort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"+ "new_agent_role": {+ "description": "Optional role assigned to the new agent.",+ "type": [+ "string",+ "null"+ ]},- {- "type": "null"- }- ]- },- "rolloutPath": {- "type": "string"- }- },- "required": [- "conversationId",- "model",- "rolloutPath"- ],- "title": "NewConversationResponse",- "type": "object"- },- "ParsedCommand": {- "oneOf": [- {- "properties": {- "cmd": {- "type": "string"+ "new_thread_id": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ThreadId"+ },+ {+ "type": "null"+ }+ ],+ "description": "Thread ID of the newly spawned agent, if it was created."},- "name": {+ "prompt": {+ "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.","type": "string"},- "path": {- "description": "(Best effort) Path to the file being read by the command. When possible, this is an absolute path, though when relative, it should be resolved against the `cwd`` that will be used to run the command to derive the absolute path.",- "type": "string"+ "sender_thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/ThreadId"+ }+ ],+ "description": "Thread ID of the sender."+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/AgentStatus"+ }+ ],+ "description": "Last known status of the new agent reported to the sender agent."},"type": {"enum": [- "read"+ "collab_agent_spawn_end"],- "title": "ReadParsedCommandType",+ "title": "CollabAgentSpawnEndEventMsgType","type": "string"}},"required": [- "cmd",- "name",- "path",+ "call_id",+ "prompt",+ "sender_thread_id",+ "status","type"],- "title": "ReadParsedCommand",+ "title": "CollabAgentSpawnEndEventMsg","type": "object"},{+ "description": "Collab interaction: agent interaction begin.","properties": {- "cmd": {+ "call_id": {+ "description": "Identifier for the collab tool call.","type": "string"},- "path": {- "type": [- "string",- "null"- ]+ "prompt": {+ "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",+ "type": "string"+ },+ "receiver_thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/ThreadId"+ }+ ],+ "description": "Thread ID of the receiver."+ },+ "sender_thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/ThreadId"+ }+ ],+ "description": "Thread ID of the sender."},"type": {"enum": [- "list_files"+ "collab_agent_interaction_begin"],- "title": "ListFilesParsedCommandType",+ "title": "CollabAgentInteractionBeginEventMsgType","type": "string"}},"required": [- "cmd",+ "call_id",+ "prompt",+ "receiver_thread_id",+ "sender_thread_id","type"],- "title": "ListFilesParsedCommand",+ "title": "CollabAgentInteractionBeginEventMsg","type": "object"},{+ "description": "Collab interaction: agent interaction end.","properties": {- "cmd": {+ "call_id": {+ "description": "Identifier for the collab tool call.","type": "string"},- "path": {+ "prompt": {+ "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",+ "type": "string"+ },+ "receiver_agent_nickname": {+ "description": "Optional nickname assigned to the receiver agent.","type": ["string","null"]},- "query": {+ "receiver_agent_role": {+ "description": "Optional role assigned to the receiver agent.","type": ["string","null"]},+ "receiver_thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/ThreadId"+ }+ ],+ "description": "Thread ID of the receiver."+ },+ "sender_thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/ThreadId"+ }+ ],+ "description": "Thread ID of the sender."+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/AgentStatus"+ }+ ],+ "description": "Last known status of the receiver agent reported to the sender agent."+ },"type": {"enum": [- "search"+ "collab_agent_interaction_end"],- "title": "SearchParsedCommandType",+ "title": "CollabAgentInteractionEndEventMsgType","type": "string"}},"required": [- "cmd",+ "call_id",+ "prompt",+ "receiver_thread_id",+ "sender_thread_id",+ "status","type"],- "title": "SearchParsedCommand",+ "title": "CollabAgentInteractionEndEventMsg","type": "object"},{+ "description": "Collab interaction: waiting begin.","properties": {- "cmd": {+ "call_id": {+ "description": "ID of the waiting call.","type": "string"},+ "receiver_agents": {+ "description": "Optional nicknames/roles for receivers.",+ "items": {+ "$ref": "#/definitions/CollabAgentRef"+ },+ "type": "array"+ },+ "receiver_thread_ids": {+ "description": "Thread ID of the receivers.",+ "items": {+ "$ref": "#/definitions/v2/ThreadId"+ },+ "type": "array"+ },+ "sender_thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/ThreadId"+ }+ ],+ "description": "Thread ID of the sender."+ },"type": {"enum": [- "unknown"+ "collab_waiting_begin"],- "title": "UnknownParsedCommandType",+ "title": "CollabWaitingBeginEventMsgType","type": "string"}},"required": [- "cmd",+ "call_id",+ "receiver_thread_ids",+ "sender_thread_id","type"],- "title": "UnknownParsedCommand",+ "title": "CollabWaitingBeginEventMsg","type": "object"- }- ]- },- "PatchApplyStatus": {- "enum": [- "completed",- "failed",- "declined"- ],- "type": "string"- },- "PlanItemArg": {- "additionalProperties": false,- "properties": {- "status": {- "$ref": "#/definitions/StepStatus"- },- "step": {- "type": "string"- }- },- "required": [- "status",- "step"- ],- "type": "object"- },- "PlanType": {- "enum": [- "free",- "go",- "plus",- "pro",- "team",- "business",- "enterprise",- "edu",- "unknown"- ],- "type": "string"- },- "Profile": {- "properties": {- "approvalPolicy": {- "anyOf": [- {- "$ref": "#/definitions/AskForApproval"- },- {- "type": "null"- }- ]- },- "chatgptBaseUrl": {- "type": [- "string",- "null"- ]- },- "model": {- "type": [- "string",- "null"- ]- },- "modelProvider": {- "type": [- "string",- "null"- ]- },- "modelReasoningEffort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ]- },- "modelReasoningSummary": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningSummary"- },- {- "type": "null"- }- ]- },- "modelVerbosity": {- "anyOf": [- {- "$ref": "#/definitions/Verbosity"- },- {- "type": "null"- }- ]- }- },- "type": "object"- },- "RateLimitSnapshot": {- "properties": {- "credits": {- "anyOf": [- {- "$ref": "#/definitions/CreditsSnapshot"- },- {- "type": "null"- }- ]- },- "limit_id": {- "type": [- "string",- "null"- ]- },- "limit_name": {- "type": [- "string",- "null"- ]- },- "plan_type": {- "anyOf": [- {- "$ref": "#/definitions/PlanType"- },- {- "type": "null"- }- ]- },- "primary": {- "anyOf": [- {- "$ref": "#/definitions/RateLimitWindow"- },- {- "type": "null"- }- ]- },- "secondary": {- "anyOf": [- {- "$ref": "#/definitions/RateLimitWindow"- },- {- "type": "null"- }- ]- }- },- "type": "object"- },- "RateLimitWindow": {- "properties": {- "resets_at": {- "description": "Unix timestamp (seconds since epoch) when the window resets.",- "format": "int64",- "type": [- "integer",- "null"- ]- },- "used_percent": {- "description": "Percentage (0-100) of the window that has been consumed.",- "format": "double",- "type": "number"- },- "window_minutes": {- "description": "Rolling window duration, in minutes.",- "format": "int64",- "type": [- "integer",- "null"- ]- }- },- "required": [- "used_percent"- ],- "type": "object"- },- "ReadOnlyAccess": {- "description": "Determines how read-only file access is granted inside a restricted sandbox.",- "oneOf": [+ },{- "description": "Restrict reads to an explicit set of roots.\n\nWhen `include_platform_defaults` is `true`, platform defaults required for basic execution are included in addition to `readable_roots`.",+ "description": "Collab interaction: waiting end.","properties": {- "include_platform_defaults": {- "default": true,- "description": "Include built-in platform read roots required for basic process execution.",- "type": "boolean"- },- "readable_roots": {- "description": "Additional absolute roots that should be readable.",+ "agent_statuses": {+ "description": "Optional receiver metadata paired with final statuses.","items": {- "$ref": "#/definitions/AbsolutePathBuf"+ "$ref": "#/definitions/CollabAgentStatusEntry"},"type": "array"},+ "call_id": {+ "description": "ID of the waiting call.",+ "type": "string"+ },+ "sender_thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/ThreadId"+ }+ ],+ "description": "Thread ID of the sender."+ },+ "statuses": {+ "additionalProperties": {+ "$ref": "#/definitions/AgentStatus"+ },+ "description": "Last known status of the receiver agents reported to the sender agent.",+ "type": "object"+ },"type": {"enum": [- "restricted"+ "collab_waiting_end"],- "title": "RestrictedReadOnlyAccessType",+ "title": "CollabWaitingEndEventMsgType","type": "string"}},"required": [+ "call_id",+ "sender_thread_id",+ "statuses","type"],- "title": "RestrictedReadOnlyAccess",+ "title": "CollabWaitingEndEventMsg","type": "object"},{- "description": "Allow unrestricted file reads.",+ "description": "Collab interaction: close begin.","properties": {+ "call_id": {+ "description": "Identifier for the collab tool call.",+ "type": "string"+ },+ "receiver_thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/ThreadId"+ }+ ],+ "description": "Thread ID of the receiver."+ },+ "sender_thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/ThreadId"+ }+ ],+ "description": "Thread ID of the sender."+ },"type": {"enum": [- "full-access"+ "collab_close_begin"],- "title": "FullAccessReadOnlyAccessType",+ "title": "CollabCloseBeginEventMsgType","type": "string"}},"required": [+ "call_id",+ "receiver_thread_id",+ "sender_thread_id","type"],- "title": "FullAccessReadOnlyAccess",+ "title": "CollabCloseBeginEventMsg","type": "object"- }- ]- },- "RealtimeAudioFrame": {- "properties": {- "data": {- "type": "string"- },- "num_channels": {- "format": "uint16",- "minimum": 0.0,- "type": "integer"},- "sample_rate": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"+ {+ "description": "Collab interaction: close end.",+ "properties": {+ "call_id": {+ "description": "Identifier for the collab tool call.",+ "type": "string"+ },+ "receiver_agent_nickname": {+ "description": "Optional nickname assigned to the receiver agent.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiver_agent_role": {+ "description": "Optional role assigned to the receiver agent.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiver_thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/ThreadId"+ }+ ],+ "description": "Thread ID of the receiver."+ },+ "sender_thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/ThreadId"+ }+ ],+ "description": "Thread ID of the sender."+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/AgentStatus"+ }+ ],+ "description": "Last known status of the receiver agent reported to the sender agent before the close."+ },+ "type": {+ "enum": [+ "collab_close_end"+ ],+ "title": "CollabCloseEndEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "call_id",+ "receiver_thread_id",+ "sender_thread_id",+ "status",+ "type"+ ],+ "title": "CollabCloseEndEventMsg",+ "type": "object"},- "samples_per_channel": {- "format": "uint32",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "required": [- "data",- "num_channels",- "sample_rate"- ],- "type": "object"- },- "RealtimeEvent": {- "oneOf": [{- "additionalProperties": false,+ "description": "Collab interaction: resume begin.","properties": {- "SessionCreated": {- "properties": {- "session_id": {- "type": "string"+ "call_id": {+ "description": "Identifier for the collab tool call.",+ "type": "string"+ },+ "receiver_agent_nickname": {+ "description": "Optional nickname assigned to the receiver agent.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiver_agent_role": {+ "description": "Optional role assigned to the receiver agent.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiver_thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/ThreadId"}- },- "required": [- "session_id"],- "type": "object"+ "description": "Thread ID of the receiver."+ },+ "sender_thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/ThreadId"+ }+ ],+ "description": "Thread ID of the sender."+ },+ "type": {+ "enum": [+ "collab_resume_begin"+ ],+ "title": "CollabResumeBeginEventMsgType",+ "type": "string"}},"required": [- "SessionCreated"+ "call_id",+ "receiver_thread_id",+ "sender_thread_id",+ "type"],- "title": "SessionCreatedRealtimeEvent",+ "title": "CollabResumeBeginEventMsg","type": "object"},{- "additionalProperties": false,+ "description": "Collab interaction: resume end.","properties": {- "SessionUpdated": {- "properties": {- "backend_prompt": {- "type": [- "string",- "null"- ]+ "call_id": {+ "description": "Identifier for the collab tool call.",+ "type": "string"+ },+ "receiver_agent_nickname": {+ "description": "Optional nickname assigned to the receiver agent.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiver_agent_role": {+ "description": "Optional role assigned to the receiver agent.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiver_thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/ThreadId"+ }+ ],+ "description": "Thread ID of the receiver."+ },+ "sender_thread_id": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/ThreadId"+ }+ ],+ "description": "Thread ID of the sender."+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/AgentStatus"}- },- "type": "object"+ ],+ "description": "Last known status of the receiver agent reported to the sender agent after resume."+ },+ "type": {+ "enum": [+ "collab_resume_end"+ ],+ "title": "CollabResumeEndEventMsgType",+ "type": "string"}},"required": [- "SessionUpdated"+ "call_id",+ "receiver_thread_id",+ "sender_thread_id",+ "status",+ "type"],- "title": "SessionUpdatedRealtimeEvent",+ "title": "CollabResumeEndEventMsg","type": "object"+ }+ ],+ "title": "EventMsg"+ },+ "ExecCommandApprovalParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "approvalId": {+ "description": "Identifier for this specific approval callback.",+ "type": [+ "string",+ "null"+ ]},- {- "additionalProperties": false,- "properties": {- "AudioOut": {- "$ref": "#/definitions/RealtimeAudioFrame"- }- },- "required": [- "AudioOut"- ],- "title": "AudioOutRealtimeEvent",- "type": "object"+ "callId": {+ "description": "Use to correlate this with [codex_core::protocol::ExecCommandBeginEvent] and [codex_core::protocol::ExecCommandEndEvent].",+ "type": "string"},- {- "additionalProperties": false,- "properties": {- "ConversationItemAdded": true+ "command": {+ "items": {+ "type": "string"},- "required": [- "ConversationItemAdded"- ],- "title": "ConversationItemAddedRealtimeEvent",- "type": "object"+ "type": "array"},- {- "additionalProperties": false,- "properties": {- "Error": {- "type": "string"- }+ "conversationId": {+ "$ref": "#/definitions/v2/ThreadId"+ },+ "cwd": {+ "type": "string"+ },+ "parsedCmd": {+ "items": {+ "$ref": "#/definitions/ParsedCommand"},- "required": [- "Error"- ],- "title": "ErrorRealtimeEvent",- "type": "object"+ "type": "array"+ },+ "reason": {+ "type": [+ "string",+ "null"+ ]}- ]+ },+ "required": [+ "callId",+ "command",+ "conversationId",+ "cwd",+ "parsedCmd"+ ],+ "title": "ExecCommandApprovalParams",+ "type": "object"+ },+ "ExecCommandApprovalResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "decision": {+ "$ref": "#/definitions/ReviewDecision"+ }+ },+ "required": [+ "decision"+ ],+ "title": "ExecCommandApprovalResponse",+ "type": "object"+ },+ "ExecCommandSource": {+ "enum": [+ "agent",+ "user_shell",+ "unified_exec_startup",+ "unified_exec_interaction"+ ],+ "type": "string"+ },+ "ExecCommandStatus": {+ "enum": [+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"},- "ReasoningEffort": {- "description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",+ "ExecOutputStream": {"enum": [- "none",- "minimal",- "low",- "medium",- "high",- "xhigh"+ "stdout",+ "stderr"],"type": "string"},- "ReasoningItemContent": {+ "FileChange": {"oneOf": [{"properties": {- "text": {+ "content": {"type": "string"},"type": {"enum": [- "reasoning_text"+ "add"],- "title": "ReasoningTextReasoningItemContentType",+ "title": "AddFileChangeType","type": "string"}},"required": [- "text",+ "content","type"],- "title": "ReasoningTextReasoningItemContent",+ "title": "AddFileChange","type": "object"},{"properties": {- "text": {+ "content": {"type": "string"},"type": {"enum": [- "text"+ "delete"],- "title": "TextReasoningItemContentType",+ "title": "DeleteFileChangeType","type": "string"}},"required": [- "text",+ "content","type"],- "title": "TextReasoningItemContent",+ "title": "DeleteFileChange","type": "object"- }- ]- },- "ReasoningItemReasoningSummary": {- "oneOf": [+ },{"properties": {- "text": {- "type": "string"+ "move_path": {+ "type": [+ "string",+ "null"+ ]},"type": {"enum": [- "summary_text"+ "update"],- "title": "SummaryTextReasoningItemReasoningSummaryType",+ "title": "UpdateFileChangeType",+ "type": "string"+ },+ "unified_diff": {"type": "string"}},"required": [- "text",- "type"+ "type",+ "unified_diff"],- "title": "SummaryTextReasoningItemReasoningSummary",+ "title": "UpdateFileChange","type": "object"}]},- "ReasoningSummary": {- "description": "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries",+ "FileChangeApprovalDecision": {"oneOf": [{+ "description": "User approved the file changes.",+ "enum": [+ "accept"+ ],+ "type": "string"+ },+ {+ "description": "User approved the file changes and future changes to the same files should run without prompting.",+ "enum": [+ "acceptForSession"+ ],+ "type": "string"+ },+ {+ "description": "User denied the file changes. The agent will continue the turn.","enum": [- "auto",- "concise",- "detailed"+ "decline"],"type": "string"},{- "description": "Option to disable reasoning summaries.",+ "description": "User denied the file changes. The turn will also be immediately interrupted.","enum": [- "none"+ "cancel"],"type": "string"}]},- "RejectConfig": {+ "FileChangeRequestApprovalParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "grantRoot": {+ "description": "[UNSTABLE] When set, the agent is asking the user to allow writes under this root for the remainder of the session (unclear if this is honored today).",+ "type": [+ "string",+ "null"+ ]+ },+ "itemId": {+ "type": "string"+ },+ "reason": {+ "description": "Optional explanatory reason (e.g. request for extra write access).",+ "type": [+ "string",+ "null"+ ]+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "threadId",+ "turnId"+ ],+ "title": "FileChangeRequestApprovalParams",+ "type": "object"+ },+ "FileChangeRequestApprovalResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "decision": {+ "$ref": "#/definitions/FileChangeApprovalDecision"+ }+ },+ "required": [+ "decision"+ ],+ "title": "FileChangeRequestApprovalResponse",+ "type": "object"+ },+ "FuzzyFileSearchParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cancellationToken": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": "string"+ },+ "roots": {+ "items": {+ "type": "string"+ },+ "type": "array"+ }+ },+ "required": [+ "query",+ "roots"+ ],+ "title": "FuzzyFileSearchParams",+ "type": "object"+ },+ "FuzzyFileSearchResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#","properties": {- "mcp_elicitations": {- "description": "Reject MCP elicitation prompts.",- "type": "boolean"- },- "rules": {- "description": "Reject prompts triggered by execpolicy `prompt` rules.",- "type": "boolean"- },- "sandbox_approval": {- "description": "Reject approval prompts related to sandbox escalation.",- "type": "boolean"+ "files": {+ "items": {+ "$ref": "#/definitions/FuzzyFileSearchResult"+ },+ "type": "array"}},"required": [- "mcp_elicitations",- "rules",- "sandbox_approval"+ "files"],+ "title": "FuzzyFileSearchResponse","type": "object"},- "RemoteSkillSummary": {+ "FuzzyFileSearchResult": {+ "description": "Superset of [`codex_file_search::FileMatch`]","properties": {- "description": {+ "file_name": {"type": "string"},- "id": {+ "indices": {+ "items": {+ "format": "uint32",+ "minimum": 0.0,+ "type": "integer"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "path": {"type": "string"},- "name": {+ "root": {"type": "string"+ },+ "score": {+ "format": "uint32",+ "minimum": 0.0,+ "type": "integer"}},"required": [- "description",- "id",- "name"+ "file_name",+ "path",+ "root",+ "score"],"type": "object"},- "RemoveConversationListenerParams": {+ "FuzzyFileSearchSessionCompletedNotification": {"$schema": "http://json-schema.org/draft-07/schema#","properties": {- "subscriptionId": {+ "sessionId": {"type": "string"}},"required": [- "subscriptionId"+ "sessionId"],- "title": "RemoveConversationListenerParams",+ "title": "FuzzyFileSearchSessionCompletedNotification","type": "object"},- "RemoveConversationSubscriptionResponse": {+ "FuzzyFileSearchSessionUpdatedNotification": {"$schema": "http://json-schema.org/draft-07/schema#",- "title": "RemoveConversationSubscriptionResponse",- "type": "object"- },- "RequestId": {- "anyOf": [- {+ "properties": {+ "files": {+ "items": {+ "$ref": "#/definitions/FuzzyFileSearchResult"+ },+ "type": "array"+ },+ "query": {"type": "string"},- {- "format": "int64",- "type": "integer"+ "sessionId": {+ "type": "string"}+ },+ "required": [+ "files",+ "query",+ "sessionId"],- "description": "ID of a request, which can be either a string or an integer."+ "title": "FuzzyFileSearchSessionUpdatedNotification",+ "type": "object"},- "RequestUserInputQuestion": {+ "HistoryEntry": {"properties": {- "header": {+ "conversation_id": {"type": "string"},- "id": {+ "text": {"type": "string"},- "isOther": {- "default": false,- "type": "boolean"- },- "isSecret": {+ "ts": {+ "format": "uint64",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "conversation_id",+ "text",+ "ts"+ ],+ "type": "object"+ },+ "InitializeCapabilities": {+ "description": "Client-declared capabilities negotiated during initialize.",+ "properties": {+ "experimentalApi": {"default": false,+ "description": "Opt into receiving experimental API methods and fields.","type": "boolean"},- "options": {+ "optOutNotificationMethods": {+ "description": "Exact notification method names that should be suppressed for this connection (for example `codex/event/session_configured`).","items": {- "$ref": "#/definitions/RequestUserInputQuestionOption"+ "type": "string"},"type": ["array","null"]+ }+ },+ "type": "object"+ },+ "InitializeParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "capabilities": {+ "anyOf": [+ {+ "$ref": "#/definitions/InitializeCapabilities"+ },+ {+ "type": "null"+ }+ ]},- "question": {- "type": "string"+ "clientInfo": {+ "$ref": "#/definitions/ClientInfo"}},"required": [- "header",- "id",- "question"+ "clientInfo"],+ "title": "InitializeParams","type": "object"},- "RequestUserInputQuestionOption": {+ "InitializeResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#","properties": {- "description": {+ "userAgent": {"type": "string"+ }+ },+ "required": [+ "userAgent"+ ],+ "title": "InitializeResponse",+ "type": "object"+ },+ "JSONRPCError": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "A response to a request that indicates an error occurred.",+ "properties": {+ "error": {+ "$ref": "#/definitions/JSONRPCErrorError"},- "label": {+ "id": {+ "$ref": "#/definitions/RequestId"+ }+ },+ "required": [+ "error",+ "id"+ ],+ "title": "JSONRPCError",+ "type": "object"+ },+ "JSONRPCErrorError": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "code": {+ "format": "int64",+ "type": "integer"+ },+ "data": true,+ "message": {"type": "string"}},"required": [- "description",- "label"+ "code",+ "message"+ ],+ "title": "JSONRPCErrorError",+ "type": "object"+ },+ "JSONRPCMessage": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "anyOf": [+ {+ "$ref": "#/definitions/JSONRPCRequest"+ },+ {+ "$ref": "#/definitions/JSONRPCNotification"+ },+ {+ "$ref": "#/definitions/JSONRPCResponse"+ },+ {+ "$ref": "#/definitions/JSONRPCError"+ }+ ],+ "description": "Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.",+ "title": "JSONRPCMessage"+ },+ "JSONRPCNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "A notification which does not expect a response.",+ "properties": {+ "method": {+ "type": "string"+ },+ "params": true+ },+ "required": [+ "method"+ ],+ "title": "JSONRPCNotification",+ "type": "object"+ },+ "JSONRPCRequest": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "A request that expects a response.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "type": "string"+ },+ "params": true+ },+ "required": [+ "id",+ "method"+ ],+ "title": "JSONRPCRequest",+ "type": "object"+ },+ "JSONRPCResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "A successful (non-error) response to a request.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "result": true+ },+ "required": [+ "id",+ "result"],+ "title": "JSONRPCResponse","type": "object"},- "Resource": {- "description": "A known resource that the server is capable of reading.",+ "McpInvocation": {"properties": {- "_meta": true,- "annotations": true,- "description": {- "type": [- "string",- "null"- ]- },- "icons": {- "items": true,- "type": [- "array",- "null"- ]- },- "mimeType": {- "type": [- "string",- "null"- ]+ "arguments": {+ "description": "Arguments to the tool call."},- "name": {+ "server": {+ "description": "Name of the MCP server as defined in the config.","type": "string"},- "size": {- "format": "int64",- "type": [- "integer",- "null"- ]- },- "title": {- "type": [- "string",- "null"- ]- },- "uri": {+ "tool": {+ "description": "Name of the tool as given by the MCP server.","type": "string"}},"required": [- "name",- "uri"+ "server",+ "tool"],"type": "object"},- "ResourceTemplate": {- "description": "A template description for resources available on the server.",+ "McpStartupFailure": {"properties": {- "annotations": true,- "description": {- "type": [- "string",- "null"- ]- },- "mimeType": {- "type": [- "string",- "null"- ]- },- "name": {+ "error": {"type": "string"},- "title": {- "type": [- "string",- "null"- ]- },- "uriTemplate": {+ "server": {"type": "string"}},"required": [- "name",- "uriTemplate"+ "error",+ "server"],"type": "object"},- "ResponseItem": {+ "McpStartupStatus": {"oneOf": [{"properties": {- "content": {- "items": {- "$ref": "#/definitions/ContentItem"- },- "type": "array"- },- "end_turn": {- "type": [- "boolean",- "null"- ]- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "phase": {- "anyOf": [- {- "$ref": "#/definitions/MessagePhase"- },- {- "type": "null"- }- ]- },- "role": {- "type": "string"- },- "type": {- "enum": [- "message"- ],- "title": "MessageResponseItemType",- "type": "string"- }- },- "required": [- "content",- "role",- "type"- ],- "title": "MessageResponseItem",- "type": "object"- },- {- "properties": {- "content": {- "default": null,- "items": {- "$ref": "#/definitions/ReasoningItemContent"- },- "type": [- "array",- "null"- ]- },- "encrypted_content": {- "type": [- "string",- "null"- ]- },- "id": {- "type": "string",- "writeOnly": true- },- "summary": {- "items": {- "$ref": "#/definitions/ReasoningItemReasoningSummary"- },- "type": "array"- },- "type": {+ "state": {"enum": [- "reasoning"+ "starting"],- "title": "ReasoningResponseItemType","type": "string"}},"required": [- "id",- "summary",- "type"+ "state"],- "title": "ReasoningResponseItem",+ "title": "StartingMcpStartupStatus","type": "object"},{"properties": {- "action": {- "$ref": "#/definitions/LocalShellAction"- },- "call_id": {- "description": "Set when using the Responses API.",- "type": [- "string",- "null"- ]- },- "id": {- "description": "Legacy id field retained for compatibility with older payloads.",- "type": [- "string",- "null"- ],- "writeOnly": true- },- "status": {- "$ref": "#/definitions/LocalShellStatus"- },- "type": {+ "state": {"enum": [- "local_shell_call"+ "ready"],- "title": "LocalShellCallResponseItemType","type": "string"}},"required": [- "action",- "status",- "type"+ "state"],- "title": "LocalShellCallResponseItem",+ "title": "ReadyMcpStartupStatus","type": "object"},{"properties": {- "arguments": {- "type": "string"- },- "call_id": {- "type": "string"- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "name": {+ "error": {"type": "string"},- "type": {+ "state": {"enum": [- "function_call"+ "failed"],- "title": "FunctionCallResponseItemType","type": "string"}},"required": [- "arguments",- "call_id",- "name",- "type"+ "error",+ "state"],- "title": "FunctionCallResponseItem","type": "object"},{"properties": {- "call_id": {- "type": "string"- },- "output": {- "$ref": "#/definitions/FunctionCallOutputPayload"- },- "type": {+ "state": {"enum": [- "function_call_output"+ "cancelled"],- "title": "FunctionCallOutputResponseItemType","type": "string"}},"required": [- "call_id",- "output",- "type"+ "state"],- "title": "FunctionCallOutputResponseItem",+ "title": "CancelledMcpStartupStatus","type": "object"+ }+ ]+ },+ "NetworkApprovalContext": {+ "properties": {+ "host": {+ "type": "string"},+ "protocol": {+ "$ref": "#/definitions/NetworkApprovalProtocol"+ }+ },+ "required": [+ "host",+ "protocol"+ ],+ "type": "object"+ },+ "NetworkApprovalProtocol": {+ "enum": [+ "http",+ "https",+ "socks5Tcp",+ "socks5Udp"+ ],+ "type": "string"+ },+ "ParsedCommand": {+ "oneOf": [{"properties": {- "call_id": {- "type": "string"- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "input": {+ "cmd": {"type": "string"},"name": {"type": "string"},- "status": {- "type": [- "string",- "null"- ]+ "path": {+ "description": "(Best effort) Path to the file being read by the command. When possible, this is an absolute path, though when relative, it should be resolved against the `cwd`` that will be used to run the command to derive the absolute path.",+ "type": "string"},"type": {"enum": [- "custom_tool_call"+ "read"],- "title": "CustomToolCallResponseItemType",+ "title": "ReadParsedCommandType","type": "string"}},"required": [- "call_id",- "input",+ "cmd","name",+ "path","type"],- "title": "CustomToolCallResponseItem",+ "title": "ReadParsedCommand","type": "object"},{"properties": {- "call_id": {+ "cmd": {"type": "string"},- "output": {- "type": "string"+ "path": {+ "type": [+ "string",+ "null"+ ]},"type": {"enum": [- "custom_tool_call_output"+ "list_files"],- "title": "CustomToolCallOutputResponseItemType",+ "title": "ListFilesParsedCommandType","type": "string"}},"required": [- "call_id",- "output",+ "cmd","type"],- "title": "CustomToolCallOutputResponseItem",+ "title": "ListFilesParsedCommand","type": "object"},{"properties": {- "action": {- "anyOf": [- {- "$ref": "#/definitions/WebSearchAction"- },- {- "type": "null"- }- ]+ "cmd": {+ "type": "string"},- "id": {+ "path": {"type": ["string","null"- ],- "writeOnly": true+ ]},- "status": {+ "query": {"type": ["string","null"@@ -7801,175 +4974,283 @@},"type": {"enum": [- "web_search_call"+ "search"],- "title": "WebSearchCallResponseItemType",+ "title": "SearchParsedCommandType","type": "string"}},"required": [+ "cmd","type"],- "title": "WebSearchCallResponseItem",+ "title": "SearchParsedCommand","type": "object"},{"properties": {- "ghost_commit": {- "$ref": "#/definitions/GhostCommit"+ "cmd": {+ "type": "string"},"type": {"enum": [- "ghost_snapshot"+ "unknown"],- "title": "GhostSnapshotResponseItemType",+ "title": "UnknownParsedCommandType","type": "string"}},"required": [- "ghost_commit",+ "cmd","type"],- "title": "GhostSnapshotResponseItem",+ "title": "UnknownParsedCommand","type": "object"+ }+ ]+ },+ "PlanItemArg": {+ "additionalProperties": false,+ "properties": {+ "status": {+ "$ref": "#/definitions/StepStatus"+ },+ "step": {+ "type": "string"+ }+ },+ "required": [+ "status",+ "step"+ ],+ "type": "object"+ },+ "RealtimeAudioFrame": {+ "properties": {+ "data": {+ "type": "string"+ },+ "num_channels": {+ "format": "uint16",+ "minimum": 0.0,+ "type": "integer"+ },+ "sample_rate": {+ "format": "uint32",+ "minimum": 0.0,+ "type": "integer"},+ "samples_per_channel": {+ "format": "uint32",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "data",+ "num_channels",+ "sample_rate"+ ],+ "type": "object"+ },+ "RealtimeEvent": {+ "oneOf": [{+ "additionalProperties": false,"properties": {- "encrypted_content": {- "type": "string"- },- "type": {- "enum": [- "compaction"+ "SessionCreated": {+ "properties": {+ "session_id": {+ "type": "string"+ }+ },+ "required": [+ "session_id"],- "title": "CompactionResponseItemType",- "type": "string"+ "type": "object"}},"required": [- "encrypted_content",- "type"+ "SessionCreated"],- "title": "CompactionResponseItem",+ "title": "SessionCreatedRealtimeEvent","type": "object"},{+ "additionalProperties": false,"properties": {- "type": {- "enum": [- "other"- ],- "title": "OtherResponseItemType",- "type": "string"+ "SessionUpdated": {+ "properties": {+ "backend_prompt": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"}},"required": [- "type"+ "SessionUpdated"],- "title": "OtherResponseItem",+ "title": "SessionUpdatedRealtimeEvent","type": "object"- }- ]- },- "Result_of_CallToolResult_or_String": {- "oneOf": [+ },{+ "additionalProperties": false,"properties": {- "Ok": {- "$ref": "#/definitions/CallToolResult"+ "AudioOut": {+ "$ref": "#/definitions/RealtimeAudioFrame"}},"required": [- "Ok"+ "AudioOut"],- "title": "OkResult_of_CallToolResult_or_String",+ "title": "AudioOutRealtimeEvent","type": "object"},{+ "additionalProperties": false,"properties": {- "Err": {+ "ConversationItemAdded": true+ },+ "required": [+ "ConversationItemAdded"+ ],+ "title": "ConversationItemAddedRealtimeEvent",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "Error": {"type": "string"}},"required": [- "Err"+ "Error"],- "title": "ErrResult_of_CallToolResult_or_String",+ "title": "ErrorRealtimeEvent","type": "object"}]},- "ResumeConversationParams": {- "$schema": "http://json-schema.org/draft-07/schema#",+ "RejectConfig": {"properties": {- "conversationId": {- "anyOf": [- {- "$ref": "#/definitions/ThreadId"- },- {- "type": "null"- }- ]- },- "history": {- "items": {- "$ref": "#/definitions/ResponseItem"- },- "type": [- "array",- "null"- ]+ "mcp_elicitations": {+ "description": "Reject MCP elicitation prompts.",+ "type": "boolean"},- "overrides": {- "anyOf": [- {- "$ref": "#/definitions/NewConversationParams"- },- {- "type": "null"- }- ]+ "rules": {+ "description": "Reject prompts triggered by execpolicy `prompt` rules.",+ "type": "boolean"},- "path": {- "type": [- "string",- "null"- ]+ "sandbox_approval": {+ "description": "Reject approval prompts related to sandbox escalation.",+ "type": "boolean"}},- "title": "ResumeConversationParams",+ "required": [+ "mcp_elicitations",+ "rules",+ "sandbox_approval"+ ],"type": "object"},- "ResumeConversationResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",+ "RequestId": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "format": "int64",+ "type": "integer"+ }+ ],+ "description": "ID of a request, which can be either a string or an integer."+ },+ "RequestUserInputQuestion": {"properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"+ "header": {+ "type": "string"+ },+ "id": {+ "type": "string"+ },+ "isOther": {+ "default": false,+ "type": "boolean"+ },+ "isSecret": {+ "default": false,+ "type": "boolean"},- "initialMessages": {+ "options": {"items": {- "$ref": "#/definitions/EventMsg"+ "$ref": "#/definitions/RequestUserInputQuestionOption"},"type": ["array","null"]},- "model": {+ "question": {+ "type": "string"+ }+ },+ "required": [+ "header",+ "id",+ "question"+ ],+ "type": "object"+ },+ "RequestUserInputQuestionOption": {+ "properties": {+ "description": {+ "type": "string"+ },+ "label": {"type": "string"+ }+ },+ "required": [+ "description",+ "label"+ ],+ "type": "object"+ },+ "Result_of_CallToolResult_or_String": {+ "oneOf": [+ {+ "properties": {+ "Ok": {+ "$ref": "#/definitions/CallToolResult"+ }+ },+ "required": [+ "Ok"+ ],+ "title": "OkResult_of_CallToolResult_or_String",+ "type": "object"},- "rolloutPath": {- "type": "string"+ {+ "properties": {+ "Err": {+ "type": "string"+ }+ },+ "required": [+ "Err"+ ],+ "title": "ErrResult_of_CallToolResult_or_String",+ "type": "object"}- },- "required": [- "conversationId",- "model",- "rolloutPath"- ],- "title": "ResumeConversationResponse",- "type": "object"+ ]},"ReviewCodeLocation": {"description": "Location of the code related to a review finding.",@@ -8097,362 +5378,30 @@},"ReviewOutputEvent": {"description": "Structured review result produced by a child review session.",- "properties": {- "findings": {- "items": {- "$ref": "#/definitions/ReviewFinding"- },- "type": "array"- },- "overall_confidence_score": {- "format": "float",- "type": "number"- },- "overall_correctness": {- "type": "string"- },- "overall_explanation": {- "type": "string"- }- },- "required": [- "findings",- "overall_confidence_score",- "overall_correctness",- "overall_explanation"- ],- "type": "object"- },- "ReviewTarget": {- "oneOf": [- {- "description": "Review the working tree: staged, unstaged, and untracked files.",- "properties": {- "type": {- "enum": [- "uncommittedChanges"- ],- "title": "UncommittedChangesReviewTargetType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "UncommittedChangesReviewTarget",- "type": "object"- },- {- "description": "Review changes between the current branch and the given base branch.",- "properties": {- "branch": {- "type": "string"- },- "type": {- "enum": [- "baseBranch"- ],- "title": "BaseBranchReviewTargetType",- "type": "string"- }- },- "required": [- "branch",- "type"- ],- "title": "BaseBranchReviewTarget",- "type": "object"- },- {- "description": "Review the changes introduced by a specific commit.",- "properties": {- "sha": {- "type": "string"- },- "title": {- "description": "Optional human-readable label (e.g., commit subject) for UIs.",- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "commit"- ],- "title": "CommitReviewTargetType",- "type": "string"- }- },- "required": [- "sha",- "type"- ],- "title": "CommitReviewTarget",- "type": "object"- },- {- "description": "Arbitrary instructions provided by the user.",- "properties": {- "instructions": {- "type": "string"- },- "type": {- "enum": [- "custom"- ],- "title": "CustomReviewTargetType",- "type": "string"- }- },- "required": [- "instructions",- "type"- ],- "title": "CustomReviewTarget",- "type": "object"- }- ]- },- "SandboxMode": {- "enum": [- "read-only",- "workspace-write",- "danger-full-access"- ],- "type": "string"- },- "SandboxPolicy": {- "description": "Determines execution restrictions for model shell commands.",- "oneOf": [- {- "description": "No restrictions whatsoever. Use with caution.",- "properties": {- "type": {- "enum": [- "danger-full-access"- ],- "title": "DangerFullAccessSandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "DangerFullAccessSandboxPolicy",- "type": "object"- },- {- "description": "Read-only access configuration.",- "properties": {- "access": {- "allOf": [- {- "$ref": "#/definitions/ReadOnlyAccess"- }- ],- "description": "Read access granted while running under this policy."- },- "type": {- "enum": [- "read-only"- ],- "title": "ReadOnlySandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ReadOnlySandboxPolicy",- "type": "object"- },- {- "description": "Indicates the process is already in an external sandbox. Allows full disk access while honoring the provided network setting.",- "properties": {- "network_access": {- "allOf": [- {- "$ref": "#/definitions/NetworkAccess"- }- ],- "default": "restricted",- "description": "Whether the external sandbox permits outbound network traffic."- },- "type": {- "enum": [- "external-sandbox"- ],- "title": "ExternalSandboxSandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ExternalSandboxSandboxPolicy",- "type": "object"- },- {- "description": "Same as `ReadOnly` but additionally grants write access to the current working directory (\"workspace\").",- "properties": {- "exclude_slash_tmp": {- "default": false,- "description": "When set to `true`, will NOT include the `/tmp` among the default writable roots on UNIX. Defaults to `false`.",- "type": "boolean"- },- "exclude_tmpdir_env_var": {- "default": false,- "description": "When set to `true`, will NOT include the per-user `TMPDIR` environment variable among the default writable roots. Defaults to `false`.",- "type": "boolean"- },- "network_access": {- "default": false,- "description": "When set to `true`, outbound network access is allowed. `false` by default.",- "type": "boolean"- },- "read_only_access": {- "allOf": [- {- "$ref": "#/definitions/ReadOnlyAccess"- }- ],- "description": "Read access granted while running under this policy."- },- "type": {- "enum": [- "workspace-write"- ],- "title": "WorkspaceWriteSandboxPolicyType",- "type": "string"- },- "writable_roots": {- "description": "Additional folders (beyond cwd and possibly TMPDIR) that should be writable from within the sandbox.",- "items": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": "array"- }- },- "required": [- "type"- ],- "title": "WorkspaceWriteSandboxPolicy",- "type": "object"- }- ]- },- "SandboxSettings": {- "properties": {- "excludeSlashTmp": {- "type": [- "boolean",- "null"- ]- },- "excludeTmpdirEnvVar": {- "type": [- "boolean",- "null"- ]- },- "networkAccess": {- "type": [- "boolean",- "null"- ]- },- "writableRoots": {- "default": [],- "items": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": "array"- }- },- "type": "object"- },- "SendUserMessageParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "items": {- "items": {- "$ref": "#/definitions/InputItem"- },- "type": "array"- }- },- "required": [- "conversationId",- "items"- ],- "title": "SendUserMessageParams",- "type": "object"- },- "SendUserMessageResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "title": "SendUserMessageResponse",- "type": "object"- },- "SendUserTurnParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "approvalPolicy": {- "$ref": "#/definitions/AskForApproval"- },- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "cwd": {- "type": "string"- },- "effort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ]- },- "items": {+ "properties": {+ "findings": {"items": {- "$ref": "#/definitions/InputItem"+ "$ref": "#/definitions/ReviewFinding"},"type": "array"},- "model": {- "type": "string"- },- "outputSchema": {- "description": "Optional JSON Schema used to constrain the final assistant message for this turn."+ "overall_confidence_score": {+ "format": "float",+ "type": "number"},- "sandboxPolicy": {- "$ref": "#/definitions/SandboxPolicy"+ "overall_correctness": {+ "type": "string"},- "summary": {- "$ref": "#/definitions/ReasoningSummary"+ "overall_explanation": {+ "type": "string"}},"required": [- "approvalPolicy",- "conversationId",- "cwd",- "items",- "model",- "sandboxPolicy",- "summary"+ "findings",+ "overall_confidence_score",+ "overall_correctness",+ "overall_explanation"],- "title": "SendUserTurnParams",- "type": "object"- },- "SendUserTurnResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "title": "SendUserTurnResponse","type": "object"},"ServerNotification": {@@ -8720,27 +5669,6 @@"title": "Item/completedNotification","type": "object"},- {- "description": "This event is internal-only. Used by Codex Cloud.",- "properties": {- "method": {- "enum": [- "rawResponseItem/completed"- ],- "title": "RawResponseItem/completedNotificationMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/v2/RawResponseItemCompletedNotification"- }- },- "required": [- "method",- "params"- ],- "title": "RawResponseItem/completedNotification",- "type": "object"- },{"properties": {"method": {@@ -9130,726 +6058,269 @@"enum": ["windows/worldWritableWarning"],- "title": "Windows/worldWritableWarningNotificationMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/v2/WindowsWorldWritableWarningNotification"- }- },- "required": [- "method",- "params"- ],- "title": "Windows/worldWritableWarningNotification",- "type": "object"- },- {- "properties": {- "method": {- "enum": [- "windowsSandbox/setupCompleted"- ],- "title": "WindowsSandbox/setupCompletedNotificationMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/v2/WindowsSandboxSetupCompletedNotification"- }- },- "required": [- "method",- "params"- ],- "title": "WindowsSandbox/setupCompletedNotification",- "type": "object"- },- {- "properties": {- "method": {- "enum": [- "account/login/completed"- ],- "title": "Account/login/completedNotificationMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/v2/AccountLoginCompletedNotification"- }- },- "required": [- "method",- "params"- ],- "title": "Account/login/completedNotification",- "type": "object"- },- {- "description": "DEPRECATED NOTIFICATIONS below",- "properties": {- "method": {- "enum": [- "authStatusChange"- ],- "title": "AuthStatusChangeNotificationMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/AuthStatusChangeNotification"- }- },- "required": [- "method",- "params"- ],- "title": "AuthStatusChangeNotification",- "type": "object"- },- {- "description": "Deprecated: use `account/login/completed` instead.",- "properties": {- "method": {- "enum": [- "loginChatGptComplete"- ],- "title": "LoginChatGptCompleteNotificationMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/LoginChatGptCompleteNotification"- }- },- "required": [- "method",- "params"- ],- "title": "LoginChatGptCompleteNotification",- "type": "object"- },- {- "properties": {- "method": {- "enum": [- "sessionConfigured"- ],- "title": "SessionConfiguredNotificationMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/SessionConfiguredNotification"- }- },- "required": [- "method",- "params"- ],- "title": "SessionConfiguredNotification",- "type": "object"- }- ],- "title": "ServerNotification"- },- "ServerRequest": {- "$schema": "http://json-schema.org/draft-07/schema#",- "description": "Request initiated from the server and sent to the client.",- "oneOf": [- {- "description": "NEW APIs Sent when approval is requested for a specific command execution. This request is used for Turns started via turn/start.",- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "item/commandExecution/requestApproval"- ],- "title": "Item/commandExecution/requestApprovalRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/CommandExecutionRequestApprovalParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Item/commandExecution/requestApprovalRequest",- "type": "object"- },- {- "description": "Sent when approval is requested for a specific file change. This request is used for Turns started via turn/start.",- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "item/fileChange/requestApproval"- ],- "title": "Item/fileChange/requestApprovalRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/FileChangeRequestApprovalParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Item/fileChange/requestApprovalRequest",- "type": "object"- },- {- "description": "EXPERIMENTAL - Request input from the user for a tool call.",- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "item/tool/requestUserInput"- ],- "title": "Item/tool/requestUserInputRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ToolRequestUserInputParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Item/tool/requestUserInputRequest",- "type": "object"- },- {- "description": "Execute a dynamic tool call on the client.",- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "item/tool/call"- ],- "title": "Item/tool/callRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/DynamicToolCallParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Item/tool/callRequest",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "account/chatgptAuthTokens/refresh"- ],- "title": "Account/chatgptAuthTokens/refreshRequestMethod",+ "title": "Windows/worldWritableWarningNotificationMethod","type": "string"},"params": {- "$ref": "#/definitions/ChatgptAuthTokensRefreshParams"+ "$ref": "#/definitions/v2/WindowsWorldWritableWarningNotification"}},"required": [- "id","method","params"],- "title": "Account/chatgptAuthTokens/refreshRequest",+ "title": "Windows/worldWritableWarningNotification","type": "object"},{- "description": "DEPRECATED APIs below Request to approve a patch. This request is used for Turns started via the legacy APIs (i.e. SendUserTurn, SendUserMessage).","properties": {- "id": {- "$ref": "#/definitions/RequestId"- },"method": {"enum": [- "applyPatchApproval"+ "windowsSandbox/setupCompleted"],- "title": "ApplyPatchApprovalRequestMethod",+ "title": "WindowsSandbox/setupCompletedNotificationMethod","type": "string"},"params": {- "$ref": "#/definitions/ApplyPatchApprovalParams"+ "$ref": "#/definitions/v2/WindowsSandboxSetupCompletedNotification"}},"required": [- "id","method","params"],- "title": "ApplyPatchApprovalRequest",+ "title": "WindowsSandbox/setupCompletedNotification","type": "object"},{- "description": "Request to exec a command. This request is used for Turns started via the legacy APIs (i.e. SendUserTurn, SendUserMessage).","properties": {- "id": {- "$ref": "#/definitions/RequestId"- },"method": {"enum": [- "execCommandApproval"+ "account/login/completed"],- "title": "ExecCommandApprovalRequestMethod",+ "title": "Account/login/completedNotificationMethod","type": "string"},"params": {- "$ref": "#/definitions/ExecCommandApprovalParams"+ "$ref": "#/definitions/v2/AccountLoginCompletedNotification"}},"required": [- "id","method","params"],- "title": "ExecCommandApprovalRequest",+ "title": "Account/login/completedNotification","type": "object"}],- "title": "ServerRequest"+ "title": "ServerNotification"},- "SessionConfiguredNotification": {+ "ServerRequest": {"$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "historyEntryCount": {- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "historyLogId": {- "format": "uint64",- "minimum": 0.0,- "type": "integer"- },- "initialMessages": {- "items": {- "$ref": "#/definitions/EventMsg"- },- "type": [- "array",- "null"- ]- },- "model": {- "type": "string"- },- "reasoningEffort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ]- },- "rolloutPath": {- "type": "string"- },- "sessionId": {- "$ref": "#/definitions/ThreadId"- }- },- "required": [- "historyEntryCount",- "historyLogId",- "model",- "rolloutPath",- "sessionId"- ],- "title": "SessionConfiguredNotification",- "type": "object"- },- "SessionNetworkProxyRuntime": {- "properties": {- "admin_addr": {- "type": "string"- },- "http_addr": {- "type": "string"- },- "socks_addr": {- "type": "string"- }- },- "required": [- "admin_addr",- "http_addr",- "socks_addr"- ],- "type": "object"- },- "SessionSource": {+ "description": "Request initiated from the server and sent to the client.","oneOf": [{- "enum": [- "cli",- "vscode",- "exec",- "mcp",- "unknown"- ],- "type": "string"- },- {- "additionalProperties": false,+ "description": "NEW APIs Sent when approval is requested for a specific command execution. This request is used for Turns started via turn/start.","properties": {- "subagent": {- "$ref": "#/definitions/SubAgentSource"- }- },- "required": [- "subagent"- ],- "title": "SubagentSessionSource",- "type": "object"- }- ]- },- "SetDefaultModelParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "model": {- "type": [- "string",- "null"- ]- },- "reasoningEffort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ]- }- },- "title": "SetDefaultModelParams",- "type": "object"- },- "SetDefaultModelResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "title": "SetDefaultModelResponse",- "type": "object"- },- "SkillDependencies": {- "properties": {- "tools": {- "items": {- "$ref": "#/definitions/SkillToolDependency"- },- "type": "array"- }- },- "required": [- "tools"- ],- "type": "object"- },- "SkillErrorInfo": {- "properties": {- "message": {- "type": "string"- },- "path": {- "type": "string"- }- },- "required": [- "message",- "path"- ],- "type": "object"- },- "SkillInterface": {- "properties": {- "brand_color": {- "type": [- "string",- "null"- ]- },- "default_prompt": {- "type": [- "string",- "null"- ]- },- "display_name": {- "type": [- "string",- "null"- ]- },- "icon_large": {- "type": [- "string",- "null"- ]- },- "icon_small": {- "type": [- "string",- "null"- ]- },- "short_description": {- "type": [- "string",- "null"- ]- }- },- "type": "object"- },- "SkillMetadata": {- "properties": {- "dependencies": {- "anyOf": [- {- "$ref": "#/definitions/SkillDependencies"- },- {- "type": "null"- }- ]- },- "description": {- "type": "string"- },- "enabled": {- "type": "boolean"- },- "interface": {- "anyOf": [- {- "$ref": "#/definitions/SkillInterface"+ "id": {+ "$ref": "#/definitions/RequestId"},- {- "type": "null"- }- ]- },- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "scope": {- "$ref": "#/definitions/SkillScope"- },- "short_description": {- "description": "Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description.",- "type": [- "string",- "null"- ]- }- },- "required": [- "description",- "enabled",- "name",- "path",- "scope"- ],- "type": "object"- },- "SkillScope": {- "enum": [- "user",- "repo",- "system",- "admin"- ],- "type": "string"- },- "SkillToolDependency": {- "properties": {- "command": {- "type": [- "string",- "null"- ]- },- "description": {- "type": [- "string",- "null"- ]- },- "transport": {- "type": [- "string",- "null"- ]- },- "type": {- "type": "string"- },- "url": {- "type": [- "string",- "null"- ]+ "method": {+ "enum": [+ "item/commandExecution/requestApproval"+ ],+ "title": "Item/commandExecution/requestApprovalRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/CommandExecutionRequestApprovalParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Item/commandExecution/requestApprovalRequest",+ "type": "object"},- "value": {- "type": "string"- }- },- "required": [- "type",- "value"- ],- "type": "object"- },- "SkillsListEntry": {- "properties": {- "cwd": {- "type": "string"+ {+ "description": "Sent when approval is requested for a specific file change. This request is used for Turns started via turn/start.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "item/fileChange/requestApproval"+ ],+ "title": "Item/fileChange/requestApprovalRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/FileChangeRequestApprovalParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Item/fileChange/requestApprovalRequest",+ "type": "object"},- "errors": {- "items": {- "$ref": "#/definitions/SkillErrorInfo"+ {+ "description": "EXPERIMENTAL - Request input from the user for a tool call.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "item/tool/requestUserInput"+ ],+ "title": "Item/tool/requestUserInputRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ToolRequestUserInputParams"+ }},- "type": "array"+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Item/tool/requestUserInputRequest",+ "type": "object"},- "skills": {- "items": {- "$ref": "#/definitions/SkillMetadata"+ {+ "description": "Execute a dynamic tool call on the client.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "item/tool/call"+ ],+ "title": "Item/tool/callRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/DynamicToolCallParams"+ }},- "type": "array"- }- },- "required": [- "cwd",- "errors",- "skills"- ],- "type": "object"- },- "StepStatus": {- "enum": [- "pending",- "in_progress",- "completed"- ],- "type": "string"- },- "SubAgentSource": {- "oneOf": [+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Item/tool/callRequest",+ "type": "object"+ },{- "enum": [- "review",- "compact",- "memory_consolidation"+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "account/chatgptAuthTokens/refresh"+ ],+ "title": "Account/chatgptAuthTokens/refreshRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ChatgptAuthTokensRefreshParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"],- "type": "string"+ "title": "Account/chatgptAuthTokens/refreshRequest",+ "type": "object"},{- "additionalProperties": false,+ "description": "DEPRECATED APIs below Request to approve a patch. This request is used for Turns started via the legacy APIs (i.e. SendUserTurn, SendUserMessage).","properties": {- "thread_spawn": {- "properties": {- "agent_nickname": {- "default": null,- "type": [- "string",- "null"- ]- },- "agent_role": {- "default": null,- "type": [- "string",- "null"- ]- },- "depth": {- "format": "int32",- "type": "integer"- },- "parent_thread_id": {- "$ref": "#/definitions/ThreadId"- }- },- "required": [- "depth",- "parent_thread_id"+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "applyPatchApproval"],- "type": "object"+ "title": "ApplyPatchApprovalRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ApplyPatchApprovalParams"}},"required": [- "thread_spawn"+ "id",+ "method",+ "params"],- "title": "ThreadSpawnSubAgentSource",+ "title": "ApplyPatchApprovalRequest","type": "object"},{- "additionalProperties": false,+ "description": "Request to exec a command. This request is used for Turns started via the legacy APIs (i.e. SendUserTurn, SendUserMessage).","properties": {- "other": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "execCommandApproval"+ ],+ "title": "ExecCommandApprovalRequestMethod","type": "string"+ },+ "params": {+ "$ref": "#/definitions/ExecCommandApprovalParams"}},"required": [- "other"+ "id",+ "method",+ "params"],- "title": "OtherSubAgentSource",+ "title": "ExecCommandApprovalRequest","type": "object"}- ]+ ],+ "title": "ServerRequest"},- "TextElement": {+ "SessionNetworkProxyRuntime": {"properties": {- "byte_range": {- "allOf": [- {- "$ref": "#/definitions/ByteRange"- }- ],- "description": "Byte range in the parent `text` buffer that this element occupies."+ "admin_addr": {+ "type": "string"},- "placeholder": {- "description": "Optional human-readable placeholder for the element, displayed in the UI.",- "type": [- "string",- "null"- ]+ "http_addr": {+ "type": "string"+ },+ "socks_addr": {+ "type": "string"}},"required": [- "byte_range"+ "admin_addr",+ "http_addr",+ "socks_addr"],"type": "object"},- "ThreadId": {+ "StepStatus": {+ "enum": [+ "pending",+ "in_progress",+ "completed"+ ],"type": "string"},"TokenUsage": {@@ -9884,61 +6355,25 @@],"type": "object"},- "TokenUsageInfo": {- "properties": {- "last_token_usage": {- "$ref": "#/definitions/TokenUsage"- },- "model_context_window": {- "format": "int64",- "type": [- "integer",- "null"- ]- },- "total_token_usage": {- "$ref": "#/definitions/TokenUsage"- }- },- "required": [- "last_token_usage",- "total_token_usage"- ],- "type": "object"- },- "Tool": {- "description": "Definition for a tool the client can call.",- "properties": {- "_meta": true,- "annotations": true,- "description": {- "type": [- "string",- "null"- ]- },- "icons": {- "items": true,- "type": [- "array",- "null"- ]- },- "inputSchema": true,- "name": {- "type": "string"+ "TokenUsageInfo": {+ "properties": {+ "last_token_usage": {+ "$ref": "#/definitions/TokenUsage"},- "outputSchema": true,- "title": {+ "model_context_window": {+ "format": "int64","type": [- "string",+ "integer","null"]+ },+ "total_token_usage": {+ "$ref": "#/definitions/TokenUsage"}},"required": [- "inputSchema",- "name"+ "last_token_usage",+ "total_token_usage"],"type": "object"},@@ -10056,607 +6491,186 @@"title": "ToolRequestUserInputResponse","type": "object"},- "Tools": {- "properties": {- "viewImage": {- "type": [- "boolean",- "null"- ]- },- "webSearch": {- "type": [- "boolean",- "null"- ]- }- },- "type": "object"- },"TurnAbortReason": {"enum": ["interrupted","replaced","review_ended"- ],- "type": "string"- },- "TurnItem": {- "oneOf": [- {- "properties": {- "content": {- "items": {- "$ref": "#/definitions/UserInput"- },- "type": "array"- },- "id": {- "type": "string"- },- "type": {- "enum": [- "UserMessage"- ],- "title": "UserMessageTurnItemType",- "type": "string"- }- },- "required": [- "content",- "id",- "type"- ],- "title": "UserMessageTurnItem",- "type": "object"- },- {- "description": "Assistant-authored message payload used in turn-item streams.\n\n`phase` is optional because not all providers/models emit it. Consumers should use it when present, but retain legacy completion semantics when it is `None`.",- "properties": {- "content": {- "items": {- "$ref": "#/definitions/AgentMessageContent"- },- "type": "array"- },- "id": {- "type": "string"- },- "phase": {- "anyOf": [- {- "$ref": "#/definitions/MessagePhase"- },- {- "type": "null"- }- ],- "description": "Optional phase metadata carried through from `ResponseItem::Message`.\n\nThis is currently used by TUI rendering to distinguish mid-turn commentary from a final answer and avoid status-indicator jitter."- },- "type": {- "enum": [- "AgentMessage"- ],- "title": "AgentMessageTurnItemType",- "type": "string"- }- },- "required": [- "content",- "id",- "type"- ],- "title": "AgentMessageTurnItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "text": {- "type": "string"- },- "type": {- "enum": [- "Plan"- ],- "title": "PlanTurnItemType",- "type": "string"- }- },- "required": [- "id",- "text",- "type"- ],- "title": "PlanTurnItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "raw_content": {- "default": [],- "items": {- "type": "string"- },- "type": "array"- },- "summary_text": {- "items": {- "type": "string"- },- "type": "array"- },- "type": {- "enum": [- "Reasoning"- ],- "title": "ReasoningTurnItemType",- "type": "string"- }- },- "required": [- "id",- "summary_text",- "type"- ],- "title": "ReasoningTurnItem",- "type": "object"- },- {- "properties": {- "action": {- "$ref": "#/definitions/WebSearchAction"- },- "id": {- "type": "string"- },- "query": {- "type": "string"- },- "type": {- "enum": [- "WebSearch"- ],- "title": "WebSearchTurnItemType",- "type": "string"- }- },- "required": [- "action",- "id",- "query",- "type"- ],- "title": "WebSearchTurnItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "type": {- "enum": [- "ContextCompaction"- ],- "title": "ContextCompactionTurnItemType",- "type": "string"- }- },- "required": [- "id",- "type"- ],- "title": "ContextCompactionTurnItem",- "type": "object"- }- ]- },- "UserInfoResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "allegedUserEmail": {- "type": [- "string",- "null"- ]- }- },- "title": "UserInfoResponse",- "type": "object"- },- "UserInput": {- "description": "User input",- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "text_elements": {- "default": [],- "description": "UI-defined spans within `text` that should be treated as special elements. These are byte ranges into the UTF-8 `text` buffer and are used to render or persist rich input markers (e.g., image placeholders) across history and resume without mutating the literal text.",- "items": {- "$ref": "#/definitions/TextElement"- },- "type": "array"- },- "type": {- "enum": [- "text"- ],- "title": "TextUserInputType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "TextUserInput",- "type": "object"- },- {- "description": "Pre‑encoded data: URI image.",- "properties": {- "image_url": {- "type": "string"- },- "type": {- "enum": [- "image"- ],- "title": "ImageUserInputType",- "type": "string"- }- },- "required": [- "image_url",- "type"- ],- "title": "ImageUserInput",- "type": "object"- },+ ],+ "type": "string"+ },+ "TurnItem": {+ "oneOf": [{- "description": "Local image path provided by the user. This will be converted to an `Image` variant (base64 data URL) during request serialization.","properties": {- "path": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "id": {"type": "string"},"type": {"enum": [- "local_image"+ "UserMessage"],- "title": "LocalImageUserInputType",+ "title": "UserMessageTurnItemType","type": "string"}},"required": [- "path",+ "content",+ "id","type"],- "title": "LocalImageUserInput",+ "title": "UserMessageTurnItem","type": "object"},{- "description": "Skill selected by the user (name + path to SKILL.md).",+ "description": "Assistant-authored message payload used in turn-item streams.\n\n`phase` is optional because not all providers/models emit it. Consumers should use it when present, but retain legacy completion semantics when it is `None`.","properties": {- "name": {- "type": "string"+ "content": {+ "items": {+ "$ref": "#/definitions/AgentMessageContent"+ },+ "type": "array"},- "path": {+ "id": {"type": "string"},+ "phase": {+ "anyOf": [+ {+ "$ref": "#/definitions/MessagePhase"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional phase metadata carried through from `ResponseItem::Message`.\n\nThis is currently used by TUI rendering to distinguish mid-turn commentary from a final answer and avoid status-indicator jitter."+ },"type": {"enum": [- "skill"+ "AgentMessage"],- "title": "SkillUserInputType",+ "title": "AgentMessageTurnItemType","type": "string"}},"required": [- "name",- "path",+ "content",+ "id","type"],- "title": "SkillUserInput",+ "title": "AgentMessageTurnItem","type": "object"},{- "description": "Explicit mention selected by the user (name + app://connector id).","properties": {- "name": {+ "id": {"type": "string"},- "path": {+ "text": {"type": "string"},"type": {"enum": [- "mention"+ "Plan"],- "title": "MentionUserInputType",+ "title": "PlanTurnItemType","type": "string"}},"required": [- "name",- "path",+ "id",+ "text","type"],- "title": "MentionUserInput",- "type": "object"- }- ]- },- "UserSavedConfig": {- "properties": {- "approvalPolicy": {- "anyOf": [- {- "$ref": "#/definitions/AskForApproval"- },- {- "type": "null"- }- ]- },- "forcedChatgptWorkspaceId": {- "type": [- "string",- "null"- ]- },- "forcedLoginMethod": {- "anyOf": [- {- "$ref": "#/definitions/ForcedLoginMethod"- },- {- "type": "null"- }- ]- },- "model": {- "type": [- "string",- "null"- ]- },- "modelReasoningEffort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ]- },- "modelReasoningSummary": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningSummary"- },- {- "type": "null"- }- ]- },- "modelVerbosity": {- "anyOf": [- {- "$ref": "#/definitions/Verbosity"- },- {- "type": "null"- }- ]- },- "profile": {- "type": [- "string",- "null"- ]- },- "profiles": {- "additionalProperties": {- "$ref": "#/definitions/Profile"- },+ "title": "PlanTurnItem","type": "object"},- "sandboxMode": {- "anyOf": [- {- "$ref": "#/definitions/SandboxMode"- },- {- "type": "null"- }- ]- },- "sandboxSettings": {- "anyOf": [- {- "$ref": "#/definitions/SandboxSettings"- },- {- "type": "null"- }- ]- },- "tools": {- "anyOf": [- {- "$ref": "#/definitions/Tools"- },- {- "type": "null"- }- ]- }- },- "required": [- "profiles"- ],- "type": "object"- },- "V1ByteRange": {- "properties": {- "end": {- "description": "End byte offset (exclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "start": {- "description": "Start byte offset (inclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "end",- "start"- ],- "type": "object"- },- "V1TextElement": {- "properties": {- "byteRange": {- "allOf": [- {- "$ref": "#/definitions/V1ByteRange"- }- ],- "description": "Byte range in the parent `text` buffer that this element occupies."- },- "placeholder": {- "description": "Optional human-readable placeholder for the element, displayed in the UI.",- "type": [- "string",- "null"- ]- }- },- "required": [- "byteRange"- ],- "type": "object"- },- "Verbosity": {- "description": "Controls output length/detail on GPT-5 models via the Responses API. Serialized with lowercase values to match the OpenAI API.",- "enum": [- "low",- "medium",- "high"- ],- "type": "string"- },- "WebSearchAction": {- "oneOf": [{"properties": {- "queries": {+ "id": {+ "type": "string"+ },+ "raw_content": {+ "default": [],"items": {"type": "string"},- "type": [- "array",- "null"- ]+ "type": "array"},- "query": {- "type": [- "string",- "null"- ]+ "summary_text": {+ "items": {+ "type": "string"+ },+ "type": "array"},"type": {"enum": [- "search"+ "Reasoning"],- "title": "SearchWebSearchActionType",+ "title": "ReasoningTurnItemType","type": "string"}},"required": [+ "id",+ "summary_text","type"],- "title": "SearchWebSearchAction",+ "title": "ReasoningTurnItem","type": "object"},{"properties": {- "type": {- "enum": [- "open_page"- ],- "title": "OpenPageWebSearchActionType",+ "action": {+ "$ref": "#/definitions/WebSearchAction"+ },+ "id": {"type": "string"},- "url": {- "type": [- "string",- "null"- ]- }- },- "required": [- "type"- ],- "title": "OpenPageWebSearchAction",- "type": "object"- },- {- "properties": {- "pattern": {- "type": [- "string",- "null"- ]+ "query": {+ "type": "string"},"type": {"enum": [- "find_in_page"+ "WebSearch"],- "title": "FindInPageWebSearchActionType",+ "title": "WebSearchTurnItemType","type": "string"- },- "url": {- "type": [- "string",- "null"- ]}},"required": [+ "action",+ "id",+ "query","type"],- "title": "FindInPageWebSearchAction",+ "title": "WebSearchTurnItem","type": "object"},{"properties": {+ "id": {+ "type": "string"+ },"type": {"enum": [- "other"+ "ContextCompaction"],- "title": "OtherWebSearchActionType",+ "title": "ContextCompactionTurnItemType","type": "string"}},"required": [+ "id","type"],- "title": "OtherWebSearchAction",+ "title": "ContextCompactionTurnItem","type": "object"}]diff --git a/codex-rs/app-server-protocol/schema/json/v1/AddConversationListenerParams.json b/codex-rs/app-server-protocol/schema/json/v1/AddConversationListenerParams.jsondeleted file mode 100644index 67b8bd7d81..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/AddConversationListenerParams.json+++ /dev/null@@ -1,22 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "ThreadId": {- "type": "string"- }- },- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "experimentalRawEvents": {- "default": false,- "type": "boolean"- }- },- "required": [- "conversationId"- ],- "title": "AddConversationListenerParams",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/AddConversationSubscriptionResponse.json b/codex-rs/app-server-protocol/schema/json/v1/AddConversationSubscriptionResponse.jsondeleted file mode 100644index 8bd1bcf016..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/AddConversationSubscriptionResponse.json+++ /dev/null@@ -1,13 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "subscriptionId": {- "type": "string"- }- },- "required": [- "subscriptionId"- ],- "title": "AddConversationSubscriptionResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ArchiveConversationParams.json b/codex-rs/app-server-protocol/schema/json/v1/ArchiveConversationParams.jsondeleted file mode 100644index 7ee5b16b3b..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/ArchiveConversationParams.json+++ /dev/null@@ -1,22 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "ThreadId": {- "type": "string"- }- },- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "rolloutPath": {- "type": "string"- }- },- "required": [- "conversationId",- "rolloutPath"- ],- "title": "ArchiveConversationParams",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ArchiveConversationResponse.json b/codex-rs/app-server-protocol/schema/json/v1/ArchiveConversationResponse.jsondeleted file mode 100644index 253d15cc0d..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/ArchiveConversationResponse.json+++ /dev/null@@ -1,5 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "title": "ArchiveConversationResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/AuthStatusChangeNotification.json b/codex-rs/app-server-protocol/schema/json/v1/AuthStatusChangeNotification.jsondeleted file mode 100644index 2aee28ba9c..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/AuthStatusChangeNotification.json+++ /dev/null@@ -1,46 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "AuthMode": {- "description": "Authentication mode for OpenAI-backed providers.",- "oneOf": [- {- "description": "OpenAI API key provided by the caller and stored by Codex.",- "enum": [- "apikey"- ],- "type": "string"- },- {- "description": "ChatGPT OAuth managed by Codex (tokens persisted and refreshed by Codex).",- "enum": [- "chatgpt"- ],- "type": "string"- },- {- "description": "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE.\n\nChatGPT auth tokens are supplied by an external host app and are only stored in memory. Token refresh must be handled by the external host app.",- "enum": [- "chatgptAuthTokens"- ],- "type": "string"- }- ]- }- },- "description": "Deprecated notification. Use AccountUpdatedNotification instead.",- "properties": {- "authMethod": {- "anyOf": [- {- "$ref": "#/definitions/AuthMode"- },- {- "type": "null"- }- ]- }- },- "title": "AuthStatusChangeNotification",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/CancelLoginChatGptParams.json b/codex-rs/app-server-protocol/schema/json/v1/CancelLoginChatGptParams.jsondeleted file mode 100644index 8367dac087..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/CancelLoginChatGptParams.json+++ /dev/null@@ -1,13 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "loginId": {- "type": "string"- }- },- "required": [- "loginId"- ],- "title": "CancelLoginChatGptParams",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/CancelLoginChatGptResponse.json b/codex-rs/app-server-protocol/schema/json/v1/CancelLoginChatGptResponse.jsondeleted file mode 100644index a4e1c333c4..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/CancelLoginChatGptResponse.json+++ /dev/null@@ -1,5 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "title": "CancelLoginChatGptResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ExecOneOffCommandParams.json b/codex-rs/app-server-protocol/schema/json/v1/ExecOneOffCommandParams.jsondeleted file mode 100644index ec5b789352..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/ExecOneOffCommandParams.json+++ /dev/null@@ -1,225 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "AbsolutePathBuf": {- "description": "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",- "type": "string"- },- "NetworkAccess": {- "description": "Represents whether outbound network access is available to the agent.",- "enum": [- "restricted",- "enabled"- ],- "type": "string"- },- "ReadOnlyAccess": {- "description": "Determines how read-only file access is granted inside a restricted sandbox.",- "oneOf": [- {- "description": "Restrict reads to an explicit set of roots.\n\nWhen `include_platform_defaults` is `true`, platform defaults required for basic execution are included in addition to `readable_roots`.",- "properties": {- "include_platform_defaults": {- "default": true,- "description": "Include built-in platform read roots required for basic process execution.",- "type": "boolean"- },- "readable_roots": {- "description": "Additional absolute roots that should be readable.",- "items": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": "array"- },- "type": {- "enum": [- "restricted"- ],- "title": "RestrictedReadOnlyAccessType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "RestrictedReadOnlyAccess",- "type": "object"- },- {- "description": "Allow unrestricted file reads.",- "properties": {- "type": {- "enum": [- "full-access"- ],- "title": "FullAccessReadOnlyAccessType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "FullAccessReadOnlyAccess",- "type": "object"- }- ]- },- "SandboxPolicy": {- "description": "Determines execution restrictions for model shell commands.",- "oneOf": [- {- "description": "No restrictions whatsoever. Use with caution.",- "properties": {- "type": {- "enum": [- "danger-full-access"- ],- "title": "DangerFullAccessSandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "DangerFullAccessSandboxPolicy",- "type": "object"- },- {- "description": "Read-only access configuration.",- "properties": {- "access": {- "allOf": [- {- "$ref": "#/definitions/ReadOnlyAccess"- }- ],- "description": "Read access granted while running under this policy."- },- "type": {- "enum": [- "read-only"- ],- "title": "ReadOnlySandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ReadOnlySandboxPolicy",- "type": "object"- },- {- "description": "Indicates the process is already in an external sandbox. Allows full disk access while honoring the provided network setting.",- "properties": {- "network_access": {- "allOf": [- {- "$ref": "#/definitions/NetworkAccess"- }- ],- "default": "restricted",- "description": "Whether the external sandbox permits outbound network traffic."- },- "type": {- "enum": [- "external-sandbox"- ],- "title": "ExternalSandboxSandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ExternalSandboxSandboxPolicy",- "type": "object"- },- {- "description": "Same as `ReadOnly` but additionally grants write access to the current working directory (\"workspace\").",- "properties": {- "exclude_slash_tmp": {- "default": false,- "description": "When set to `true`, will NOT include the `/tmp` among the default writable roots on UNIX. Defaults to `false`.",- "type": "boolean"- },- "exclude_tmpdir_env_var": {- "default": false,- "description": "When set to `true`, will NOT include the per-user `TMPDIR` environment variable among the default writable roots. Defaults to `false`.",- "type": "boolean"- },- "network_access": {- "default": false,- "description": "When set to `true`, outbound network access is allowed. `false` by default.",- "type": "boolean"- },- "read_only_access": {- "allOf": [- {- "$ref": "#/definitions/ReadOnlyAccess"- }- ],- "description": "Read access granted while running under this policy."- },- "type": {- "enum": [- "workspace-write"- ],- "title": "WorkspaceWriteSandboxPolicyType",- "type": "string"- },- "writable_roots": {- "description": "Additional folders (beyond cwd and possibly TMPDIR) that should be writable from within the sandbox.",- "items": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": "array"- }- },- "required": [- "type"- ],- "title": "WorkspaceWriteSandboxPolicy",- "type": "object"- }- ]- }- },- "properties": {- "command": {- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "type": [- "string",- "null"- ]- },- "sandboxPolicy": {- "anyOf": [- {- "$ref": "#/definitions/SandboxPolicy"- },- {- "type": "null"- }- ]- },- "timeoutMs": {- "format": "uint64",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "required": [- "command"- ],- "title": "ExecOneOffCommandParams",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ExecOneOffCommandResponse.json b/codex-rs/app-server-protocol/schema/json/v1/ExecOneOffCommandResponse.jsondeleted file mode 100644index 121ed648ff..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/ExecOneOffCommandResponse.json+++ /dev/null@@ -1,22 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "exitCode": {- "format": "int32",- "type": "integer"- },- "stderr": {- "type": "string"- },- "stdout": {- "type": "string"- }- },- "required": [- "exitCode",- "stderr",- "stdout"- ],- "title": "ExecOneOffCommandResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ForkConversationParams.json b/codex-rs/app-server-protocol/schema/json/v1/ForkConversationParams.jsondeleted file mode 100644index b712352776..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/ForkConversationParams.json+++ /dev/null@@ -1,195 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "AskForApproval": {- "description": "Determines the conditions under which the user is consulted to approve running the command proposed by Codex.",- "oneOf": [- {- "description": "Under this policy, only \"known safe\" commands—as determined by `is_safe_command()`—that **only read files** are auto‑approved. Everything else will ask the user to approve.",- "enum": [- "untrusted"- ],- "type": "string"- },- {- "description": "DEPRECATED: *All* commands are auto‑approved, but they are expected to run inside a sandbox where network access is disabled and writes are confined to a specific set of paths. If the command fails, it will be escalated to the user to approve execution without a sandbox. Prefer `OnRequest` for interactive runs or `Never` for non-interactive runs.",- "enum": [- "on-failure"- ],- "type": "string"- },- {- "description": "The model decides when to ask the user for approval.",- "enum": [- "on-request"- ],- "type": "string"- },- {- "additionalProperties": false,- "description": "Fine-grained rejection controls for approval prompts.\n\nWhen a field is `true`, prompts of that category are automatically rejected instead of shown to the user.",- "properties": {- "reject": {- "$ref": "#/definitions/RejectConfig"- }- },- "required": [- "reject"- ],- "title": "RejectAskForApproval",- "type": "object"- },- {- "description": "Never ask the user to approve commands. Failures are immediately returned to the model, and never escalated to the user for approval.",- "enum": [- "never"- ],- "type": "string"- }- ]- },- "NewConversationParams": {- "properties": {- "approvalPolicy": {- "anyOf": [- {- "$ref": "#/definitions/AskForApproval"- },- {- "type": "null"- }- ]- },- "baseInstructions": {- "type": [- "string",- "null"- ]- },- "compactPrompt": {- "type": [- "string",- "null"- ]- },- "config": {- "additionalProperties": true,- "type": [- "object",- "null"- ]- },- "cwd": {- "type": [- "string",- "null"- ]- },- "developerInstructions": {- "type": [- "string",- "null"- ]- },- "includeApplyPatchTool": {- "type": [- "boolean",- "null"- ]- },- "model": {- "type": [- "string",- "null"- ]- },- "modelProvider": {- "type": [- "string",- "null"- ]- },- "profile": {- "type": [- "string",- "null"- ]- },- "sandbox": {- "anyOf": [- {- "$ref": "#/definitions/SandboxMode"- },- {- "type": "null"- }- ]- }- },- "type": "object"- },- "RejectConfig": {- "properties": {- "mcp_elicitations": {- "description": "Reject MCP elicitation prompts.",- "type": "boolean"- },- "rules": {- "description": "Reject prompts triggered by execpolicy `prompt` rules.",- "type": "boolean"- },- "sandbox_approval": {- "description": "Reject approval prompts related to sandbox escalation.",- "type": "boolean"- }- },- "required": [- "mcp_elicitations",- "rules",- "sandbox_approval"- ],- "type": "object"- },- "SandboxMode": {- "enum": [- "read-only",- "workspace-write",- "danger-full-access"- ],- "type": "string"- },- "ThreadId": {- "type": "string"- }- },- "properties": {- "conversationId": {- "anyOf": [- {- "$ref": "#/definitions/ThreadId"- },- {- "type": "null"- }- ]- },- "overrides": {- "anyOf": [- {- "$ref": "#/definitions/NewConversationParams"- },- {- "type": "null"- }- ]- },- "path": {- "type": [- "string",- "null"- ]- }- },- "title": "ForkConversationParams",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ForkConversationResponse.json b/codex-rs/app-server-protocol/schema/json/v1/ForkConversationResponse.jsondeleted file mode 100644index 70521ec729..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/ForkConversationResponse.json+++ /dev/null@@ -1,5776 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "AbsolutePathBuf": {- "description": "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",- "type": "string"- },- "AgentMessageContent": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "Text"- ],- "title": "TextAgentMessageContentType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "TextAgentMessageContent",- "type": "object"- }- ]- },- "AgentStatus": {- "description": "Agent lifecycle status, derived from emitted events.",- "oneOf": [- {- "description": "Agent is waiting for initialization.",- "enum": [- "pending_init"- ],- "type": "string"- },- {- "description": "Agent is currently running.",- "enum": [- "running"- ],- "type": "string"- },- {- "additionalProperties": false,- "description": "Agent is done. Contains the final assistant message.",- "properties": {- "completed": {- "type": [- "string",- "null"- ]- }- },- "required": [- "completed"- ],- "title": "CompletedAgentStatus",- "type": "object"- },- {- "additionalProperties": false,- "description": "Agent encountered an error.",- "properties": {- "errored": {- "type": "string"- }- },- "required": [- "errored"- ],- "title": "ErroredAgentStatus",- "type": "object"- },- {- "description": "Agent has been shutdown.",- "enum": [- "shutdown"- ],- "type": "string"- },- {- "description": "Agent is not found.",- "enum": [- "not_found"- ],- "type": "string"- }- ]- },- "AskForApproval": {- "description": "Determines the conditions under which the user is consulted to approve running the command proposed by Codex.",- "oneOf": [- {- "description": "Under this policy, only \"known safe\" commands—as determined by `is_safe_command()`—that **only read files** are auto‑approved. Everything else will ask the user to approve.",- "enum": [- "untrusted"- ],- "type": "string"- },- {- "description": "DEPRECATED: *All* commands are auto‑approved, but they are expected to run inside a sandbox where network access is disabled and writes are confined to a specific set of paths. If the command fails, it will be escalated to the user to approve execution without a sandbox. Prefer `OnRequest` for interactive runs or `Never` for non-interactive runs.",- "enum": [- "on-failure"- ],- "type": "string"- },- {- "description": "The model decides when to ask the user for approval.",- "enum": [- "on-request"- ],- "type": "string"- },- {- "additionalProperties": false,- "description": "Fine-grained rejection controls for approval prompts.\n\nWhen a field is `true`, prompts of that category are automatically rejected instead of shown to the user.",- "properties": {- "reject": {- "$ref": "#/definitions/RejectConfig"- }- },- "required": [- "reject"- ],- "title": "RejectAskForApproval",- "type": "object"- },- {- "description": "Never ask the user to approve commands. Failures are immediately returned to the model, and never escalated to the user for approval.",- "enum": [- "never"- ],- "type": "string"- }- ]- },- "ByteRange": {- "properties": {- "end": {- "description": "End byte offset (exclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "start": {- "description": "Start byte offset (inclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "end",- "start"- ],- "type": "object"- },- "CallToolResult": {- "description": "The server's response to a tool call.",- "properties": {- "_meta": true,- "content": {- "items": true,- "type": "array"- },- "isError": {- "type": [- "boolean",- "null"- ]- },- "structuredContent": true- },- "required": [- "content"- ],- "type": "object"- },- "CodexErrorInfo": {- "description": "Codex errors that we expose to clients.",- "oneOf": [- {- "enum": [- "context_window_exceeded",- "usage_limit_exceeded",- "server_overloaded",- "internal_server_error",- "unauthorized",- "bad_request",- "sandbox_error",- "thread_rollback_failed",- "other"- ],- "type": "string"- },- {- "additionalProperties": false,- "properties": {- "http_connection_failed": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "http_connection_failed"- ],- "title": "HttpConnectionFailedCodexErrorInfo",- "type": "object"- },- {- "additionalProperties": false,- "description": "Failed to connect to the response SSE stream.",- "properties": {- "response_stream_connection_failed": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "response_stream_connection_failed"- ],- "title": "ResponseStreamConnectionFailedCodexErrorInfo",- "type": "object"- },- {- "additionalProperties": false,- "description": "The response SSE stream disconnected in the middle of a turnbefore completion.",- "properties": {- "response_stream_disconnected": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "response_stream_disconnected"- ],- "title": "ResponseStreamDisconnectedCodexErrorInfo",- "type": "object"- },- {- "additionalProperties": false,- "description": "Reached the retry limit for responses.",- "properties": {- "response_too_many_failed_attempts": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "response_too_many_failed_attempts"- ],- "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",- "type": "object"- }- ]- },- "CollabAgentRef": {- "properties": {- "agent_nickname": {- "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "agent_role": {- "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver/new agent."- }- },- "required": [- "thread_id"- ],- "type": "object"- },- "CollabAgentStatusEntry": {- "properties": {- "agent_nickname": {- "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "agent_role": {- "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the agent."- },- "thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver/new agent."- }- },- "required": [- "status",- "thread_id"- ],- "type": "object"- },- "ContentItem": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "input_text"- ],- "title": "InputTextContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "InputTextContentItem",- "type": "object"- },- {- "properties": {- "image_url": {- "type": "string"- },- "type": {- "enum": [- "input_image"- ],- "title": "InputImageContentItemType",- "type": "string"- }- },- "required": [- "image_url",- "type"- ],- "title": "InputImageContentItem",- "type": "object"- },- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "output_text"- ],- "title": "OutputTextContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "OutputTextContentItem",- "type": "object"- }- ]- },- "CreditsSnapshot": {- "properties": {- "balance": {- "type": [- "string",- "null"- ]- },- "has_credits": {- "type": "boolean"- },- "unlimited": {- "type": "boolean"- }- },- "required": [- "has_credits",- "unlimited"- ],- "type": "object"- },- "CustomPrompt": {- "properties": {- "argument_hint": {- "type": [- "string",- "null"- ]- },- "content": {- "type": "string"- },- "description": {- "type": [- "string",- "null"- ]- },- "name": {- "type": "string"- },- "path": {- "type": "string"- }- },- "required": [- "content",- "name",- "path"- ],- "type": "object"- },- "Duration": {- "properties": {- "nanos": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "secs": {- "format": "uint64",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "nanos",- "secs"- ],- "type": "object"- },- "EventMsg": {- "description": "Response event from the agent NOTE: Make sure none of these values have optional types, as it will mess up the extension code-gen.",- "oneOf": [- {- "description": "Error while executing a submission",- "properties": {- "codex_error_info": {- "anyOf": [- {- "$ref": "#/definitions/CodexErrorInfo"- },- {- "type": "null"- }- ],- "default": null- },- "message": {- "type": "string"- },- "type": {- "enum": [- "error"- ],- "title": "ErrorEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "ErrorEventMsg",- "type": "object"- },- {- "description": "Warning issued while processing a submission. Unlike `Error`, this indicates the turn continued but the user should still be notified.",- "properties": {- "message": {- "type": "string"- },- "type": {- "enum": [- "warning"- ],- "title": "WarningEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "WarningEventMsg",- "type": "object"- },- {- "description": "Realtime conversation lifecycle start event.",- "properties": {- "session_id": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "realtime_conversation_started"- ],- "title": "RealtimeConversationStartedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "RealtimeConversationStartedEventMsg",- "type": "object"- },- {- "description": "Realtime conversation streaming payload event.",- "properties": {- "payload": {- "$ref": "#/definitions/RealtimeEvent"- },- "type": {- "enum": [- "realtime_conversation_realtime"- ],- "title": "RealtimeConversationRealtimeEventMsgType",- "type": "string"- }- },- "required": [- "payload",- "type"- ],- "title": "RealtimeConversationRealtimeEventMsg",- "type": "object"- },- {- "description": "Realtime conversation lifecycle close event.",- "properties": {- "reason": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "realtime_conversation_closed"- ],- "title": "RealtimeConversationClosedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "RealtimeConversationClosedEventMsg",- "type": "object"- },- {- "description": "Model routing changed from the requested model to a different model.",- "properties": {- "from_model": {- "type": "string"- },- "reason": {- "$ref": "#/definitions/ModelRerouteReason"- },- "to_model": {- "type": "string"- },- "type": {- "enum": [- "model_reroute"- ],- "title": "ModelRerouteEventMsgType",- "type": "string"- }- },- "required": [- "from_model",- "reason",- "to_model",- "type"- ],- "title": "ModelRerouteEventMsg",- "type": "object"- },- {- "description": "Conversation history was compacted (either automatically or manually).",- "properties": {- "type": {- "enum": [- "context_compacted"- ],- "title": "ContextCompactedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ContextCompactedEventMsg",- "type": "object"- },- {- "description": "Conversation history was rolled back by dropping the last N user turns.",- "properties": {- "num_turns": {- "description": "Number of user turns that were removed from context.",- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "type": {- "enum": [- "thread_rolled_back"- ],- "title": "ThreadRolledBackEventMsgType",- "type": "string"- }- },- "required": [- "num_turns",- "type"- ],- "title": "ThreadRolledBackEventMsg",- "type": "object"- },- {- "description": "Agent has started a turn. v1 wire format uses `task_started`; accept `turn_started` for v2 interop.",- "properties": {- "collaboration_mode_kind": {- "allOf": [- {- "$ref": "#/definitions/ModeKind"- }- ],- "default": "default"- },- "model_context_window": {- "format": "int64",- "type": [- "integer",- "null"- ]- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "task_started"- ],- "title": "TaskStartedEventMsgType",- "type": "string"- }- },- "required": [- "turn_id",- "type"- ],- "title": "TaskStartedEventMsg",- "type": "object"- },- {- "description": "Agent has completed all actions. v1 wire format uses `task_complete`; accept `turn_complete` for v2 interop.",- "properties": {- "last_agent_message": {- "type": [- "string",- "null"- ]- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "task_complete"- ],- "title": "TaskCompleteEventMsgType",- "type": "string"- }- },- "required": [- "turn_id",- "type"- ],- "title": "TaskCompleteEventMsg",- "type": "object"- },- {- "description": "Usage update for the current session, including totals and last turn. Optional means unknown — UIs should not display when `None`.",- "properties": {- "info": {- "anyOf": [- {- "$ref": "#/definitions/TokenUsageInfo"- },- {- "type": "null"- }- ]- },- "rate_limits": {- "anyOf": [- {- "$ref": "#/definitions/RateLimitSnapshot"- },- {- "type": "null"- }- ]- },- "type": {- "enum": [- "token_count"- ],- "title": "TokenCountEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "TokenCountEventMsg",- "type": "object"- },- {- "description": "Agent text output message",- "properties": {- "message": {- "type": "string"- },- "phase": {- "anyOf": [- {- "$ref": "#/definitions/MessagePhase"- },- {- "type": "null"- }- ],- "default": null- },- "type": {- "enum": [- "agent_message"- ],- "title": "AgentMessageEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "AgentMessageEventMsg",- "type": "object"- },- {- "description": "User/system input message (what was sent to the model)",- "properties": {- "images": {- "description": "Image URLs sourced from `UserInput::Image`. These are safe to replay in legacy UI history events and correspond to images sent to the model.",- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "local_images": {- "default": [],- "description": "Local file paths sourced from `UserInput::LocalImage`. These are kept so the UI can reattach images when editing history, and should not be sent to the model or treated as API-ready URLs.",- "items": {- "type": "string"- },- "type": "array"- },- "message": {- "type": "string"- },- "text_elements": {- "default": [],- "description": "UI-defined spans within `message` used to render or persist special elements.",- "items": {- "$ref": "#/definitions/TextElement"- },- "type": "array"- },- "type": {- "enum": [- "user_message"- ],- "title": "UserMessageEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "UserMessageEventMsg",- "type": "object"- },- {- "description": "Agent text output delta message",- "properties": {- "delta": {- "type": "string"- },- "type": {- "enum": [- "agent_message_delta"- ],- "title": "AgentMessageDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "type"- ],- "title": "AgentMessageDeltaEventMsg",- "type": "object"- },- {- "description": "Reasoning event from agent.",- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "agent_reasoning"- ],- "title": "AgentReasoningEventMsgType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "AgentReasoningEventMsg",- "type": "object"- },- {- "description": "Agent reasoning delta event from agent.",- "properties": {- "delta": {- "type": "string"- },- "type": {- "enum": [- "agent_reasoning_delta"- ],- "title": "AgentReasoningDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "type"- ],- "title": "AgentReasoningDeltaEventMsg",- "type": "object"- },- {- "description": "Raw chain-of-thought from agent.",- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "agent_reasoning_raw_content"- ],- "title": "AgentReasoningRawContentEventMsgType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "AgentReasoningRawContentEventMsg",- "type": "object"- },- {- "description": "Agent reasoning content delta event from agent.",- "properties": {- "delta": {- "type": "string"- },- "type": {- "enum": [- "agent_reasoning_raw_content_delta"- ],- "title": "AgentReasoningRawContentDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "type"- ],- "title": "AgentReasoningRawContentDeltaEventMsg",- "type": "object"- },- {- "description": "Signaled when the model begins a new reasoning summary section (e.g., a new titled block).",- "properties": {- "item_id": {- "default": "",- "type": "string"- },- "summary_index": {- "default": 0,- "format": "int64",- "type": "integer"- },- "type": {- "enum": [- "agent_reasoning_section_break"- ],- "title": "AgentReasoningSectionBreakEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "AgentReasoningSectionBreakEventMsg",- "type": "object"- },- {- "description": "Ack the client's configure message.",- "properties": {- "approval_policy": {- "allOf": [- {- "$ref": "#/definitions/AskForApproval"- }- ],- "description": "When to escalate for approval for execution"- },- "cwd": {- "description": "Working directory that should be treated as the *root* of the session.",- "type": "string"- },- "forked_from_id": {- "anyOf": [- {- "$ref": "#/definitions/ThreadId"- },- {- "type": "null"- }- ]- },- "history_entry_count": {- "description": "Current number of entries in the history log.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "history_log_id": {- "description": "Identifier of the history log file (inode on Unix, 0 otherwise).",- "format": "uint64",- "minimum": 0.0,- "type": "integer"- },- "initial_messages": {- "description": "Optional initial messages (as events) for resumed sessions. When present, UIs can use these to seed the history.",- "items": {- "$ref": "#/definitions/EventMsg"- },- "type": [- "array",- "null"- ]- },- "model": {- "description": "Tell the client what model is being queried.",- "type": "string"- },- "model_provider_id": {- "type": "string"- },- "network_proxy": {- "anyOf": [- {- "$ref": "#/definitions/SessionNetworkProxyRuntime"- },- {- "type": "null"- }- ],- "description": "Runtime proxy bind addresses, when the managed proxy was started for this session."- },- "reasoning_effort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ],- "description": "The effort the model is putting into reasoning about the user's request."- },- "rollout_path": {- "description": "Path in which the rollout is stored. Can be `None` for ephemeral threads",- "type": [- "string",- "null"- ]- },- "sandbox_policy": {- "allOf": [- {- "$ref": "#/definitions/SandboxPolicy"- }- ],- "description": "How to sandbox commands executed in the system"- },- "session_id": {- "$ref": "#/definitions/ThreadId"- },- "thread_name": {- "description": "Optional user-facing thread name (may be unset).",- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "session_configured"- ],- "title": "SessionConfiguredEventMsgType",- "type": "string"- }- },- "required": [- "approval_policy",- "cwd",- "history_entry_count",- "history_log_id",- "model",- "model_provider_id",- "sandbox_policy",- "session_id",- "type"- ],- "title": "SessionConfiguredEventMsg",- "type": "object"- },- {- "description": "Updated session metadata (e.g., thread name changes).",- "properties": {- "thread_id": {- "$ref": "#/definitions/ThreadId"- },- "thread_name": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "thread_name_updated"- ],- "title": "ThreadNameUpdatedEventMsgType",- "type": "string"- }- },- "required": [- "thread_id",- "type"- ],- "title": "ThreadNameUpdatedEventMsg",- "type": "object"- },- {- "description": "Incremental MCP startup progress updates.",- "properties": {- "server": {- "description": "Server name being started.",- "type": "string"- },- "status": {- "allOf": [- {- "$ref": "#/definitions/McpStartupStatus"- }- ],- "description": "Current startup status."- },- "type": {- "enum": [- "mcp_startup_update"- ],- "title": "McpStartupUpdateEventMsgType",- "type": "string"- }- },- "required": [- "server",- "status",- "type"- ],- "title": "McpStartupUpdateEventMsg",- "type": "object"- },- {- "description": "Aggregate MCP startup completion summary.",- "properties": {- "cancelled": {- "items": {- "type": "string"- },- "type": "array"- },- "failed": {- "items": {- "$ref": "#/definitions/McpStartupFailure"- },- "type": "array"- },- "ready": {- "items": {- "type": "string"- },- "type": "array"- },- "type": {- "enum": [- "mcp_startup_complete"- ],- "title": "McpStartupCompleteEventMsgType",- "type": "string"- }- },- "required": [- "cancelled",- "failed",- "ready",- "type"- ],- "title": "McpStartupCompleteEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Identifier so this can be paired with the McpToolCallEnd event.",- "type": "string"- },- "invocation": {- "$ref": "#/definitions/McpInvocation"- },- "type": {- "enum": [- "mcp_tool_call_begin"- ],- "title": "McpToolCallBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "invocation",- "type"- ],- "title": "McpToolCallBeginEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Identifier for the corresponding McpToolCallBegin that finished.",- "type": "string"- },- "duration": {- "$ref": "#/definitions/Duration"- },- "invocation": {- "$ref": "#/definitions/McpInvocation"- },- "result": {- "allOf": [- {- "$ref": "#/definitions/Result_of_CallToolResult_or_String"- }- ],- "description": "Result of the tool call. Note this could be an error."- },- "type": {- "enum": [- "mcp_tool_call_end"- ],- "title": "McpToolCallEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "duration",- "invocation",- "result",- "type"- ],- "title": "McpToolCallEndEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "type": {- "enum": [- "web_search_begin"- ],- "title": "WebSearchBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "type"- ],- "title": "WebSearchBeginEventMsg",- "type": "object"- },- {- "properties": {- "action": {- "$ref": "#/definitions/WebSearchAction"- },- "call_id": {- "type": "string"- },- "query": {- "type": "string"- },- "type": {- "enum": [- "web_search_end"- ],- "title": "WebSearchEndEventMsgType",- "type": "string"- }- },- "required": [- "action",- "call_id",- "query",- "type"- ],- "title": "WebSearchEndEventMsg",- "type": "object"- },- {- "description": "Notification that the server is about to execute a command.",- "properties": {- "call_id": {- "description": "Identifier so this can be paired with the ExecCommandEnd event.",- "type": "string"- },- "command": {- "description": "The command to be executed.",- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "description": "The command's working directory if not the default cwd for the agent.",- "type": "string"- },- "interaction_input": {- "description": "Raw input sent to a unified exec session (if this is an interaction event).",- "type": [- "string",- "null"- ]- },- "parsed_cmd": {- "items": {- "$ref": "#/definitions/ParsedCommand"- },- "type": "array"- },- "process_id": {- "description": "Identifier for the underlying PTY process (when available).",- "type": [- "string",- "null"- ]- },- "source": {- "allOf": [- {- "$ref": "#/definitions/ExecCommandSource"- }- ],- "default": "agent",- "description": "Where the command originated. Defaults to Agent for backward compatibility."- },- "turn_id": {- "description": "Turn ID that this command belongs to.",- "type": "string"- },- "type": {- "enum": [- "exec_command_begin"- ],- "title": "ExecCommandBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "command",- "cwd",- "parsed_cmd",- "turn_id",- "type"- ],- "title": "ExecCommandBeginEventMsg",- "type": "object"- },- {- "description": "Incremental chunk of output from a running command.",- "properties": {- "call_id": {- "description": "Identifier for the ExecCommandBegin that produced this chunk.",- "type": "string"- },- "chunk": {- "description": "Raw bytes from the stream (may not be valid UTF-8).",- "type": "string"- },- "stream": {- "allOf": [- {- "$ref": "#/definitions/ExecOutputStream"- }- ],- "description": "Which stream produced this chunk."- },- "type": {- "enum": [- "exec_command_output_delta"- ],- "title": "ExecCommandOutputDeltaEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "chunk",- "stream",- "type"- ],- "title": "ExecCommandOutputDeltaEventMsg",- "type": "object"- },- {- "description": "Terminal interaction for an in-progress command (stdin sent and stdout observed).",- "properties": {- "call_id": {- "description": "Identifier for the ExecCommandBegin that produced this chunk.",- "type": "string"- },- "process_id": {- "description": "Process id associated with the running command.",- "type": "string"- },- "stdin": {- "description": "Stdin sent to the running session.",- "type": "string"- },- "type": {- "enum": [- "terminal_interaction"- ],- "title": "TerminalInteractionEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "process_id",- "stdin",- "type"- ],- "title": "TerminalInteractionEventMsg",- "type": "object"- },- {- "properties": {- "aggregated_output": {- "default": "",- "description": "Captured aggregated output",- "type": "string"- },- "call_id": {- "description": "Identifier for the ExecCommandBegin that finished.",- "type": "string"- },- "command": {- "description": "The command that was executed.",- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "description": "The command's working directory if not the default cwd for the agent.",- "type": "string"- },- "duration": {- "allOf": [- {- "$ref": "#/definitions/Duration"- }- ],- "description": "The duration of the command execution."- },- "exit_code": {- "description": "The command's exit code.",- "format": "int32",- "type": "integer"- },- "formatted_output": {- "description": "Formatted output from the command, as seen by the model.",- "type": "string"- },- "interaction_input": {- "description": "Raw input sent to a unified exec session (if this is an interaction event).",- "type": [- "string",- "null"- ]- },- "parsed_cmd": {- "items": {- "$ref": "#/definitions/ParsedCommand"- },- "type": "array"- },- "process_id": {- "description": "Identifier for the underlying PTY process (when available).",- "type": [- "string",- "null"- ]- },- "source": {- "allOf": [- {- "$ref": "#/definitions/ExecCommandSource"- }- ],- "default": "agent",- "description": "Where the command originated. Defaults to Agent for backward compatibility."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/ExecCommandStatus"- }- ],- "description": "Completion status for this command execution."- },- "stderr": {- "description": "Captured stderr",- "type": "string"- },- "stdout": {- "description": "Captured stdout",- "type": "string"- },- "turn_id": {- "description": "Turn ID that this command belongs to.",- "type": "string"- },- "type": {- "enum": [- "exec_command_end"- ],- "title": "ExecCommandEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "command",- "cwd",- "duration",- "exit_code",- "formatted_output",- "parsed_cmd",- "status",- "stderr",- "stdout",- "turn_id",- "type"- ],- "title": "ExecCommandEndEventMsg",- "type": "object"- },- {- "description": "Notification that the agent attached a local image via the view_image tool.",- "properties": {- "call_id": {- "description": "Identifier for the originating tool call.",- "type": "string"- },- "path": {- "description": "Local filesystem path provided to the tool.",- "type": "string"- },- "type": {- "enum": [- "view_image_tool_call"- ],- "title": "ViewImageToolCallEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "path",- "type"- ],- "title": "ViewImageToolCallEventMsg",- "type": "object"- },- {- "properties": {- "approval_id": {- "description": "Identifier for this specific approval callback.\n\nWhen absent, the approval is for the command item itself (`call_id`). This is present for subcommand approvals (via execve intercept).",- "type": [- "string",- "null"- ]- },- "call_id": {- "description": "Identifier for the associated command execution item.",- "type": "string"- },- "command": {- "description": "The command to be executed.",- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "description": "The command's working directory.",- "type": "string"- },- "network_approval_context": {- "anyOf": [- {- "$ref": "#/definitions/NetworkApprovalContext"- },- {- "type": "null"- }- ],- "description": "Optional network context for a blocked request that can be approved."- },- "parsed_cmd": {- "items": {- "$ref": "#/definitions/ParsedCommand"- },- "type": "array"- },- "proposed_execpolicy_amendment": {- "description": "Proposed execpolicy amendment that can be applied to allow future runs.",- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "reason": {- "description": "Optional human-readable reason for the approval (e.g. retry without sandbox).",- "type": [- "string",- "null"- ]- },- "turn_id": {- "default": "",- "description": "Turn ID that this command belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "exec_approval_request"- ],- "title": "ExecApprovalRequestEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "command",- "cwd",- "parsed_cmd",- "type"- ],- "title": "ExecApprovalRequestEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Responses API call id for the associated tool call, if available.",- "type": "string"- },- "questions": {- "items": {- "$ref": "#/definitions/RequestUserInputQuestion"- },- "type": "array"- },- "turn_id": {- "default": "",- "description": "Turn ID that this request belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "request_user_input"- ],- "title": "RequestUserInputEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "questions",- "type"- ],- "title": "RequestUserInputEventMsg",- "type": "object"- },- {- "properties": {- "arguments": true,- "callId": {- "type": "string"- },- "tool": {- "type": "string"- },- "turnId": {- "type": "string"- },- "type": {- "enum": [- "dynamic_tool_call_request"- ],- "title": "DynamicToolCallRequestEventMsgType",- "type": "string"- }- },- "required": [- "arguments",- "callId",- "tool",- "turnId",- "type"- ],- "title": "DynamicToolCallRequestEventMsg",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "message": {- "type": "string"- },- "server_name": {- "type": "string"- },- "type": {- "enum": [- "elicitation_request"- ],- "title": "ElicitationRequestEventMsgType",- "type": "string"- }- },- "required": [- "id",- "message",- "server_name",- "type"- ],- "title": "ElicitationRequestEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Responses API call id for the associated patch apply call, if available.",- "type": "string"- },- "changes": {- "additionalProperties": {- "$ref": "#/definitions/FileChange"- },- "type": "object"- },- "grant_root": {- "description": "When set, the agent is asking the user to allow writes under this root for the remainder of the session.",- "type": [- "string",- "null"- ]- },- "reason": {- "description": "Optional explanatory reason (e.g. request for extra write access).",- "type": [- "string",- "null"- ]- },- "turn_id": {- "default": "",- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility with older senders.",- "type": "string"- },- "type": {- "enum": [- "apply_patch_approval_request"- ],- "title": "ApplyPatchApprovalRequestEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "changes",- "type"- ],- "title": "ApplyPatchApprovalRequestEventMsg",- "type": "object"- },- {- "description": "Notification advising the user that something they are using has been deprecated and should be phased out.",- "properties": {- "details": {- "description": "Optional extra guidance, such as migration steps or rationale.",- "type": [- "string",- "null"- ]- },- "summary": {- "description": "Concise summary of what is deprecated.",- "type": "string"- },- "type": {- "enum": [- "deprecation_notice"- ],- "title": "DeprecationNoticeEventMsgType",- "type": "string"- }- },- "required": [- "summary",- "type"- ],- "title": "DeprecationNoticeEventMsg",- "type": "object"- },- {- "properties": {- "message": {- "type": "string"- },- "type": {- "enum": [- "background_event"- ],- "title": "BackgroundEventEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "BackgroundEventEventMsg",- "type": "object"- },- {- "properties": {- "message": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "undo_started"- ],- "title": "UndoStartedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "UndoStartedEventMsg",- "type": "object"- },- {- "properties": {- "message": {- "type": [- "string",- "null"- ]- },- "success": {- "type": "boolean"- },- "type": {- "enum": [- "undo_completed"- ],- "title": "UndoCompletedEventMsgType",- "type": "string"- }- },- "required": [- "success",- "type"- ],- "title": "UndoCompletedEventMsg",- "type": "object"- },- {- "description": "Notification that a model stream experienced an error or disconnect and the system is handling it (e.g., retrying with backoff).",- "properties": {- "additional_details": {- "default": null,- "description": "Optional details about the underlying stream failure (often the same human-readable message that is surfaced as the terminal error if retries are exhausted).",- "type": [- "string",- "null"- ]- },- "codex_error_info": {- "anyOf": [- {- "$ref": "#/definitions/CodexErrorInfo"- },- {- "type": "null"- }- ],- "default": null- },- "message": {- "type": "string"- },- "type": {- "enum": [- "stream_error"- ],- "title": "StreamErrorEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "StreamErrorEventMsg",- "type": "object"- },- {- "description": "Notification that the agent is about to apply a code patch. Mirrors `ExecCommandBegin` so front‑ends can show progress indicators.",- "properties": {- "auto_approved": {- "description": "If true, there was no ApplyPatchApprovalRequest for this patch.",- "type": "boolean"- },- "call_id": {- "description": "Identifier so this can be paired with the PatchApplyEnd event.",- "type": "string"- },- "changes": {- "additionalProperties": {- "$ref": "#/definitions/FileChange"- },- "description": "The changes to be applied.",- "type": "object"- },- "turn_id": {- "default": "",- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "patch_apply_begin"- ],- "title": "PatchApplyBeginEventMsgType",- "type": "string"- }- },- "required": [- "auto_approved",- "call_id",- "changes",- "type"- ],- "title": "PatchApplyBeginEventMsg",- "type": "object"- },- {- "description": "Notification that a patch application has finished.",- "properties": {- "call_id": {- "description": "Identifier for the PatchApplyBegin that finished.",- "type": "string"- },- "changes": {- "additionalProperties": {- "$ref": "#/definitions/FileChange"- },- "default": {},- "description": "The changes that were applied (mirrors PatchApplyBeginEvent::changes).",- "type": "object"- },- "status": {- "allOf": [- {- "$ref": "#/definitions/PatchApplyStatus"- }- ],- "description": "Completion status for this patch application."- },- "stderr": {- "description": "Captured stderr (parser errors, IO failures, etc.).",- "type": "string"- },- "stdout": {- "description": "Captured stdout (summary printed by apply_patch).",- "type": "string"- },- "success": {- "description": "Whether the patch was applied successfully.",- "type": "boolean"- },- "turn_id": {- "default": "",- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "patch_apply_end"- ],- "title": "PatchApplyEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "status",- "stderr",- "stdout",- "success",- "type"- ],- "title": "PatchApplyEndEventMsg",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "turn_diff"- ],- "title": "TurnDiffEventMsgType",- "type": "string"- },- "unified_diff": {- "type": "string"- }- },- "required": [- "type",- "unified_diff"- ],- "title": "TurnDiffEventMsg",- "type": "object"- },- {- "description": "Response to GetHistoryEntryRequest.",- "properties": {- "entry": {- "anyOf": [- {- "$ref": "#/definitions/HistoryEntry"- },- {- "type": "null"- }- ],- "description": "The entry at the requested offset, if available and parseable."- },- "log_id": {- "format": "uint64",- "minimum": 0.0,- "type": "integer"- },- "offset": {- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "type": {- "enum": [- "get_history_entry_response"- ],- "title": "GetHistoryEntryResponseEventMsgType",- "type": "string"- }- },- "required": [- "log_id",- "offset",- "type"- ],- "title": "GetHistoryEntryResponseEventMsg",- "type": "object"- },- {- "description": "List of MCP tools available to the agent.",- "properties": {- "auth_statuses": {- "additionalProperties": {- "$ref": "#/definitions/McpAuthStatus"- },- "description": "Authentication status for each configured MCP server.",- "type": "object"- },- "resource_templates": {- "additionalProperties": {- "items": {- "$ref": "#/definitions/ResourceTemplate"- },- "type": "array"- },- "description": "Known resource templates grouped by server name.",- "type": "object"- },- "resources": {- "additionalProperties": {- "items": {- "$ref": "#/definitions/Resource"- },- "type": "array"- },- "description": "Known resources grouped by server name.",- "type": "object"- },- "tools": {- "additionalProperties": {- "$ref": "#/definitions/Tool"- },- "description": "Fully qualified tool name -> tool definition.",- "type": "object"- },- "type": {- "enum": [- "mcp_list_tools_response"- ],- "title": "McpListToolsResponseEventMsgType",- "type": "string"- }- },- "required": [- "auth_statuses",- "resource_templates",- "resources",- "tools",- "type"- ],- "title": "McpListToolsResponseEventMsg",- "type": "object"- },- {- "description": "List of custom prompts available to the agent.",- "properties": {- "custom_prompts": {- "items": {- "$ref": "#/definitions/CustomPrompt"- },- "type": "array"- },- "type": {- "enum": [- "list_custom_prompts_response"- ],- "title": "ListCustomPromptsResponseEventMsgType",- "type": "string"- }- },- "required": [- "custom_prompts",- "type"- ],- "title": "ListCustomPromptsResponseEventMsg",- "type": "object"- },- {- "description": "List of skills available to the agent.",- "properties": {- "skills": {- "items": {- "$ref": "#/definitions/SkillsListEntry"- },- "type": "array"- },- "type": {- "enum": [- "list_skills_response"- ],- "title": "ListSkillsResponseEventMsgType",- "type": "string"- }- },- "required": [- "skills",- "type"- ],- "title": "ListSkillsResponseEventMsg",- "type": "object"- },- {- "description": "List of remote skills available to the agent.",- "properties": {- "skills": {- "items": {- "$ref": "#/definitions/RemoteSkillSummary"- },- "type": "array"- },- "type": {- "enum": [- "list_remote_skills_response"- ],- "title": "ListRemoteSkillsResponseEventMsgType",- "type": "string"- }- },- "required": [- "skills",- "type"- ],- "title": "ListRemoteSkillsResponseEventMsg",- "type": "object"- },- {- "description": "Remote skill downloaded to local cache.",- "properties": {- "id": {- "type": "string"- },- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "type": {- "enum": [- "remote_skill_downloaded"- ],- "title": "RemoteSkillDownloadedEventMsgType",- "type": "string"- }- },- "required": [- "id",- "name",- "path",- "type"- ],- "title": "RemoteSkillDownloadedEventMsg",- "type": "object"- },- {- "description": "Notification that skill data may have been updated and clients may want to reload.",- "properties": {- "type": {- "enum": [- "skills_update_available"- ],- "title": "SkillsUpdateAvailableEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "SkillsUpdateAvailableEventMsg",- "type": "object"- },- {- "properties": {- "explanation": {- "default": null,- "description": "Arguments for the `update_plan` todo/checklist tool (not plan mode).",- "type": [- "string",- "null"- ]- },- "plan": {- "items": {- "$ref": "#/definitions/PlanItemArg"- },- "type": "array"- },- "type": {- "enum": [- "plan_update"- ],- "title": "PlanUpdateEventMsgType",- "type": "string"- }- },- "required": [- "plan",- "type"- ],- "title": "PlanUpdateEventMsg",- "type": "object"- },- {- "properties": {- "reason": {- "$ref": "#/definitions/TurnAbortReason"- },- "turn_id": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "turn_aborted"- ],- "title": "TurnAbortedEventMsgType",- "type": "string"- }- },- "required": [- "reason",- "type"- ],- "title": "TurnAbortedEventMsg",- "type": "object"- },- {- "description": "Notification that the agent is shutting down.",- "properties": {- "type": {- "enum": [- "shutdown_complete"- ],- "title": "ShutdownCompleteEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ShutdownCompleteEventMsg",- "type": "object"- },- {- "description": "Entered review mode.",- "properties": {- "target": {- "$ref": "#/definitions/ReviewTarget"- },- "type": {- "enum": [- "entered_review_mode"- ],- "title": "EnteredReviewModeEventMsgType",- "type": "string"- },- "user_facing_hint": {- "type": [- "string",- "null"- ]- }- },- "required": [- "target",- "type"- ],- "title": "EnteredReviewModeEventMsg",- "type": "object"- },- {- "description": "Exited review mode with an optional final result to apply.",- "properties": {- "review_output": {- "anyOf": [- {- "$ref": "#/definitions/ReviewOutputEvent"- },- {- "type": "null"- }- ]- },- "type": {- "enum": [- "exited_review_mode"- ],- "title": "ExitedReviewModeEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ExitedReviewModeEventMsg",- "type": "object"- },- {- "properties": {- "item": {- "$ref": "#/definitions/ResponseItem"- },- "type": {- "enum": [- "raw_response_item"- ],- "title": "RawResponseItemEventMsgType",- "type": "string"- }- },- "required": [- "item",- "type"- ],- "title": "RawResponseItemEventMsg",- "type": "object"- },- {- "properties": {- "item": {- "$ref": "#/definitions/TurnItem"- },- "thread_id": {- "$ref": "#/definitions/ThreadId"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "item_started"- ],- "title": "ItemStartedEventMsgType",- "type": "string"- }- },- "required": [- "item",- "thread_id",- "turn_id",- "type"- ],- "title": "ItemStartedEventMsg",- "type": "object"- },- {- "properties": {- "item": {- "$ref": "#/definitions/TurnItem"- },- "thread_id": {- "$ref": "#/definitions/ThreadId"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "item_completed"- ],- "title": "ItemCompletedEventMsgType",- "type": "string"- }- },- "required": [- "item",- "thread_id",- "turn_id",- "type"- ],- "title": "ItemCompletedEventMsg",- "type": "object"- },- {- "properties": {- "delta": {- "type": "string"- },- "item_id": {- "type": "string"- },- "thread_id": {- "type": "string"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "agent_message_content_delta"- ],- "title": "AgentMessageContentDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "item_id",- "thread_id",- "turn_id",- "type"- ],- "title": "AgentMessageContentDeltaEventMsg",- "type": "object"- },- {- "properties": {- "delta": {- "type": "string"- },- "item_id": {- "type": "string"- },- "thread_id": {- "type": "string"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "plan_delta"- ],- "title": "PlanDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "item_id",- "thread_id",- "turn_id",- "type"- ],- "title": "PlanDeltaEventMsg",- "type": "object"- },- {- "properties": {- "delta": {- "type": "string"- },- "item_id": {- "type": "string"- },- "summary_index": {- "default": 0,- "format": "int64",- "type": "integer"- },- "thread_id": {- "type": "string"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "reasoning_content_delta"- ],- "title": "ReasoningContentDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "item_id",- "thread_id",- "turn_id",- "type"- ],- "title": "ReasoningContentDeltaEventMsg",- "type": "object"- },- {- "properties": {- "content_index": {- "default": 0,- "format": "int64",- "type": "integer"- },- "delta": {- "type": "string"- },- "item_id": {- "type": "string"- },- "thread_id": {- "type": "string"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "reasoning_raw_content_delta"- ],- "title": "ReasoningRawContentDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "item_id",- "thread_id",- "turn_id",- "type"- ],- "title": "ReasoningRawContentDeltaEventMsg",- "type": "object"- },- {- "description": "Collab interaction: agent spawn begin.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "prompt": {- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",- "type": "string"- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_agent_spawn_begin"- ],- "title": "CollabAgentSpawnBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "prompt",- "sender_thread_id",- "type"- ],- "title": "CollabAgentSpawnBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: agent spawn end.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "new_agent_nickname": {- "description": "Optional nickname assigned to the new agent.",- "type": [- "string",- "null"- ]- },- "new_agent_role": {- "description": "Optional role assigned to the new agent.",- "type": [- "string",- "null"- ]- },- "new_thread_id": {- "anyOf": [- {- "$ref": "#/definitions/ThreadId"- },- {- "type": "null"- }- ],- "description": "Thread ID of the newly spawned agent, if it was created."- },- "prompt": {- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",- "type": "string"- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the new agent reported to the sender agent."- },- "type": {- "enum": [- "collab_agent_spawn_end"- ],- "title": "CollabAgentSpawnEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "prompt",- "sender_thread_id",- "status",- "type"- ],- "title": "CollabAgentSpawnEndEventMsg",- "type": "object"- },- {- "description": "Collab interaction: agent interaction begin.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "prompt": {- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",- "type": "string"- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_agent_interaction_begin"- ],- "title": "CollabAgentInteractionBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "prompt",- "receiver_thread_id",- "sender_thread_id",- "type"- ],- "title": "CollabAgentInteractionBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: agent interaction end.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "prompt": {- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the receiver agent reported to the sender agent."- },- "type": {- "enum": [- "collab_agent_interaction_end"- ],- "title": "CollabAgentInteractionEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "prompt",- "receiver_thread_id",- "sender_thread_id",- "status",- "type"- ],- "title": "CollabAgentInteractionEndEventMsg",- "type": "object"- },- {- "description": "Collab interaction: waiting begin.",- "properties": {- "call_id": {- "description": "ID of the waiting call.",- "type": "string"- },- "receiver_agents": {- "description": "Optional nicknames/roles for receivers.",- "items": {- "$ref": "#/definitions/CollabAgentRef"- },- "type": "array"- },- "receiver_thread_ids": {- "description": "Thread ID of the receivers.",- "items": {- "$ref": "#/definitions/ThreadId"- },- "type": "array"- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_waiting_begin"- ],- "title": "CollabWaitingBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_ids",- "sender_thread_id",- "type"- ],- "title": "CollabWaitingBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: waiting end.",- "properties": {- "agent_statuses": {- "description": "Optional receiver metadata paired with final statuses.",- "items": {- "$ref": "#/definitions/CollabAgentStatusEntry"- },- "type": "array"- },- "call_id": {- "description": "ID of the waiting call.",- "type": "string"- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "statuses": {- "additionalProperties": {- "$ref": "#/definitions/AgentStatus"- },- "description": "Last known status of the receiver agents reported to the sender agent.",- "type": "object"- },- "type": {- "enum": [- "collab_waiting_end"- ],- "title": "CollabWaitingEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "sender_thread_id",- "statuses",- "type"- ],- "title": "CollabWaitingEndEventMsg",- "type": "object"- },- {- "description": "Collab interaction: close begin.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_close_begin"- ],- "title": "CollabCloseBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "type"- ],- "title": "CollabCloseBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: close end.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the receiver agent reported to the sender agent before the close."- },- "type": {- "enum": [- "collab_close_end"- ],- "title": "CollabCloseEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "status",- "type"- ],- "title": "CollabCloseEndEventMsg",- "type": "object"- },- {- "description": "Collab interaction: resume begin.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_resume_begin"- ],- "title": "CollabResumeBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "type"- ],- "title": "CollabResumeBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: resume end.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the receiver agent reported to the sender agent after resume."- },- "type": {- "enum": [- "collab_resume_end"- ],- "title": "CollabResumeEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "status",- "type"- ],- "title": "CollabResumeEndEventMsg",- "type": "object"- }- ]- },- "ExecCommandSource": {- "enum": [- "agent",- "user_shell",- "unified_exec_startup",- "unified_exec_interaction"- ],- "type": "string"- },- "ExecCommandStatus": {- "enum": [- "completed",- "failed",- "declined"- ],- "type": "string"- },- "ExecOutputStream": {- "enum": [- "stdout",- "stderr"- ],- "type": "string"- },- "FileChange": {- "oneOf": [- {- "properties": {- "content": {- "type": "string"- },- "type": {- "enum": [- "add"- ],- "title": "AddFileChangeType",- "type": "string"- }- },- "required": [- "content",- "type"- ],- "title": "AddFileChange",- "type": "object"- },- {- "properties": {- "content": {- "type": "string"- },- "type": {- "enum": [- "delete"- ],- "title": "DeleteFileChangeType",- "type": "string"- }- },- "required": [- "content",- "type"- ],- "title": "DeleteFileChange",- "type": "object"- },- {- "properties": {- "move_path": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "update"- ],- "title": "UpdateFileChangeType",- "type": "string"- },- "unified_diff": {- "type": "string"- }- },- "required": [- "type",- "unified_diff"- ],- "title": "UpdateFileChange",- "type": "object"- }- ]- },- "FunctionCallOutputBody": {- "anyOf": [- {- "type": "string"- },- {- "items": {- "$ref": "#/definitions/FunctionCallOutputContentItem"- },- "type": "array"- }- ]- },- "FunctionCallOutputContentItem": {- "description": "Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.",- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "input_text"- ],- "title": "InputTextFunctionCallOutputContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "InputTextFunctionCallOutputContentItem",- "type": "object"- },- {- "properties": {- "image_url": {- "type": "string"- },- "type": {- "enum": [- "input_image"- ],- "title": "InputImageFunctionCallOutputContentItemType",- "type": "string"- }- },- "required": [- "image_url",- "type"- ],- "title": "InputImageFunctionCallOutputContentItem",- "type": "object"- }- ]- },- "FunctionCallOutputPayload": {- "description": "The payload we send back to OpenAI when reporting a tool call result.\n\n`body` serializes directly as the wire value for `function_call_output.output`. `success` remains internal metadata for downstream handling.",- "properties": {- "body": {- "$ref": "#/definitions/FunctionCallOutputBody"- },- "success": {- "type": [- "boolean",- "null"- ]- }- },- "required": [- "body"- ],- "type": "object"- },- "GhostCommit": {- "description": "Details of a ghost commit created from a repository state.",- "properties": {- "id": {- "type": "string"- },- "parent": {- "type": [- "string",- "null"- ]- },- "preexisting_untracked_dirs": {- "items": {- "type": "string"- },- "type": "array"- },- "preexisting_untracked_files": {- "items": {- "type": "string"- },- "type": "array"- }- },- "required": [- "id",- "preexisting_untracked_dirs",- "preexisting_untracked_files"- ],- "type": "object"- },- "HistoryEntry": {- "properties": {- "conversation_id": {- "type": "string"- },- "text": {- "type": "string"- },- "ts": {- "format": "uint64",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "conversation_id",- "text",- "ts"- ],- "type": "object"- },- "LocalShellAction": {- "oneOf": [- {- "properties": {- "command": {- "items": {- "type": "string"- },- "type": "array"- },- "env": {- "additionalProperties": {- "type": "string"- },- "type": [- "object",- "null"- ]- },- "timeout_ms": {- "format": "uint64",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- },- "type": {- "enum": [- "exec"- ],- "title": "ExecLocalShellActionType",- "type": "string"- },- "user": {- "type": [- "string",- "null"- ]- },- "working_directory": {- "type": [- "string",- "null"- ]- }- },- "required": [- "command",- "type"- ],- "title": "ExecLocalShellAction",- "type": "object"- }- ]- },- "LocalShellStatus": {- "enum": [- "completed",- "in_progress",- "incomplete"- ],- "type": "string"- },- "McpAuthStatus": {- "enum": [- "unsupported",- "not_logged_in",- "bearer_token",- "o_auth"- ],- "type": "string"- },- "McpInvocation": {- "properties": {- "arguments": {- "description": "Arguments to the tool call."- },- "server": {- "description": "Name of the MCP server as defined in the config.",- "type": "string"- },- "tool": {- "description": "Name of the tool as given by the MCP server.",- "type": "string"- }- },- "required": [- "server",- "tool"- ],- "type": "object"- },- "McpStartupFailure": {- "properties": {- "error": {- "type": "string"- },- "server": {- "type": "string"- }- },- "required": [- "error",- "server"- ],- "type": "object"- },- "McpStartupStatus": {- "oneOf": [- {- "properties": {- "state": {- "enum": [- "starting"- ],- "type": "string"- }- },- "required": [- "state"- ],- "title": "StateMcpStartupStatus",- "type": "object"- },- {- "properties": {- "state": {- "enum": [- "ready"- ],- "type": "string"- }- },- "required": [- "state"- ],- "title": "StateMcpStartupStatus2",- "type": "object"- },- {- "properties": {- "error": {- "type": "string"- },- "state": {- "enum": [- "failed"- ],- "type": "string"- }- },- "required": [- "error",- "state"- ],- "type": "object"- },- {- "properties": {- "state": {- "enum": [- "cancelled"- ],- "type": "string"- }- },- "required": [- "state"- ],- "title": "StateMcpStartupStatus3",- "type": "object"- }- ]- },- "MessagePhase": {- "description": "Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as \"phase unknown\" and keep compatibility behavior for legacy models.",- "oneOf": [- {- "description": "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.",- "enum": [- "commentary"- ],- "type": "string"- },- {- "description": "The assistant's terminal answer text for the current turn.",- "enum": [- "final_answer"- ],- "type": "string"- }- ]- },- "ModeKind": {- "description": "Initial collaboration mode to use when the TUI starts.",- "enum": [- "plan",- "default"- ],- "type": "string"- },- "ModelRerouteReason": {- "enum": [- "high_risk_cyber_activity"- ],- "type": "string"- },- "NetworkAccess": {- "description": "Represents whether outbound network access is available to the agent.",- "enum": [- "restricted",- "enabled"- ],- "type": "string"- },- "NetworkApprovalContext": {- "properties": {- "host": {- "type": "string"- },- "protocol": {- "$ref": "#/definitions/NetworkApprovalProtocol"- }- },- "required": [- "host",- "protocol"- ],- "type": "object"- },- "NetworkApprovalProtocol": {- "enum": [- "http",- "https",- "socks5_tcp",- "socks5_udp"- ],- "type": "string"- },- "ParsedCommand": {- "oneOf": [- {- "properties": {- "cmd": {- "type": "string"- },- "name": {- "type": "string"- },- "path": {- "description": "(Best effort) Path to the file being read by the command. When possible, this is an absolute path, though when relative, it should be resolved against the `cwd`` that will be used to run the command to derive the absolute path.",- "type": "string"- },- "type": {- "enum": [- "read"- ],- "title": "ReadParsedCommandType",- "type": "string"- }- },- "required": [- "cmd",- "name",- "path",- "type"- ],- "title": "ReadParsedCommand",- "type": "object"- },- {- "properties": {- "cmd": {- "type": "string"- },- "path": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "list_files"- ],- "title": "ListFilesParsedCommandType",- "type": "string"- }- },- "required": [- "cmd",- "type"- ],- "title": "ListFilesParsedCommand",- "type": "object"- },- {- "properties": {- "cmd": {- "type": "string"- },- "path": {- "type": [- "string",- "null"- ]- },- "query": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "search"- ],- "title": "SearchParsedCommandType",- "type": "string"- }- },- "required": [- "cmd",- "type"- ],- "title": "SearchParsedCommand",- "type": "object"- },- {- "properties": {- "cmd": {- "type": "string"- },- "type": {- "enum": [- "unknown"- ],- "title": "UnknownParsedCommandType",- "type": "string"- }- },- "required": [- "cmd",- "type"- ],- "title": "UnknownParsedCommand",- "type": "object"- }- ]- },- "PatchApplyStatus": {- "enum": [- "completed",- "failed",- "declined"- ],- "type": "string"- },- "PlanItemArg": {- "additionalProperties": false,- "properties": {- "status": {- "$ref": "#/definitions/StepStatus"- },- "step": {- "type": "string"- }- },- "required": [- "status",- "step"- ],- "type": "object"- },- "PlanType": {- "enum": [- "free",- "go",- "plus",- "pro",- "team",- "business",- "enterprise",- "edu",- "unknown"- ],- "type": "string"- },- "RateLimitSnapshot": {- "properties": {- "credits": {- "anyOf": [- {- "$ref": "#/definitions/CreditsSnapshot"- },- {- "type": "null"- }- ]- },- "limit_id": {- "type": [- "string",- "null"- ]- },- "limit_name": {- "type": [- "string",- "null"- ]- },- "plan_type": {- "anyOf": [- {- "$ref": "#/definitions/PlanType"- },- {- "type": "null"- }- ]- },- "primary": {- "anyOf": [- {- "$ref": "#/definitions/RateLimitWindow"- },- {- "type": "null"- }- ]- },- "secondary": {- "anyOf": [- {- "$ref": "#/definitions/RateLimitWindow"- },- {- "type": "null"- }- ]- }- },- "type": "object"- },- "RateLimitWindow": {- "properties": {- "resets_at": {- "description": "Unix timestamp (seconds since epoch) when the window resets.",- "format": "int64",- "type": [- "integer",- "null"- ]- },- "used_percent": {- "description": "Percentage (0-100) of the window that has been consumed.",- "format": "double",- "type": "number"- },- "window_minutes": {- "description": "Rolling window duration, in minutes.",- "format": "int64",- "type": [- "integer",- "null"- ]- }- },- "required": [- "used_percent"- ],- "type": "object"- },- "ReadOnlyAccess": {- "description": "Determines how read-only file access is granted inside a restricted sandbox.",- "oneOf": [- {- "description": "Restrict reads to an explicit set of roots.\n\nWhen `include_platform_defaults` is `true`, platform defaults required for basic execution are included in addition to `readable_roots`.",- "properties": {- "include_platform_defaults": {- "default": true,- "description": "Include built-in platform read roots required for basic process execution.",- "type": "boolean"- },- "readable_roots": {- "description": "Additional absolute roots that should be readable.",- "items": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": "array"- },- "type": {- "enum": [- "restricted"- ],- "title": "RestrictedReadOnlyAccessType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "RestrictedReadOnlyAccess",- "type": "object"- },- {- "description": "Allow unrestricted file reads.",- "properties": {- "type": {- "enum": [- "full-access"- ],- "title": "FullAccessReadOnlyAccessType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "FullAccessReadOnlyAccess",- "type": "object"- }- ]- },- "RealtimeAudioFrame": {- "properties": {- "data": {- "type": "string"- },- "num_channels": {- "format": "uint16",- "minimum": 0.0,- "type": "integer"- },- "sample_rate": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "samples_per_channel": {- "format": "uint32",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "required": [- "data",- "num_channels",- "sample_rate"- ],- "type": "object"- },- "RealtimeEvent": {- "oneOf": [- {- "additionalProperties": false,- "properties": {- "SessionCreated": {- "properties": {- "session_id": {- "type": "string"- }- },- "required": [- "session_id"- ],- "type": "object"- }- },- "required": [- "SessionCreated"- ],- "title": "SessionCreatedRealtimeEvent",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "SessionUpdated": {- "properties": {- "backend_prompt": {- "type": [- "string",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "SessionUpdated"- ],- "title": "SessionUpdatedRealtimeEvent",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "AudioOut": {- "$ref": "#/definitions/RealtimeAudioFrame"- }- },- "required": [- "AudioOut"- ],- "title": "AudioOutRealtimeEvent",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "ConversationItemAdded": true- },- "required": [- "ConversationItemAdded"- ],- "title": "ConversationItemAddedRealtimeEvent",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "Error": {- "type": "string"- }- },- "required": [- "Error"- ],- "title": "ErrorRealtimeEvent",- "type": "object"- }- ]- },- "ReasoningEffort": {- "description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",- "enum": [- "none",- "minimal",- "low",- "medium",- "high",- "xhigh"- ],- "type": "string"- },- "ReasoningItemContent": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "reasoning_text"- ],- "title": "ReasoningTextReasoningItemContentType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "ReasoningTextReasoningItemContent",- "type": "object"- },- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "text"- ],- "title": "TextReasoningItemContentType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "TextReasoningItemContent",- "type": "object"- }- ]- },- "ReasoningItemReasoningSummary": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "summary_text"- ],- "title": "SummaryTextReasoningItemReasoningSummaryType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "SummaryTextReasoningItemReasoningSummary",- "type": "object"- }- ]- },- "RejectConfig": {- "properties": {- "mcp_elicitations": {- "description": "Reject MCP elicitation prompts.",- "type": "boolean"- },- "rules": {- "description": "Reject prompts triggered by execpolicy `prompt` rules.",- "type": "boolean"- },- "sandbox_approval": {- "description": "Reject approval prompts related to sandbox escalation.",- "type": "boolean"- }- },- "required": [- "mcp_elicitations",- "rules",- "sandbox_approval"- ],- "type": "object"- },- "RemoteSkillSummary": {- "properties": {- "description": {- "type": "string"- },- "id": {- "type": "string"- },- "name": {- "type": "string"- }- },- "required": [- "description",- "id",- "name"- ],- "type": "object"- },- "RequestId": {- "anyOf": [- {- "type": "string"- },- {- "format": "int64",- "type": "integer"- }- ],- "description": "ID of a request, which can be either a string or an integer."- },- "RequestUserInputQuestion": {- "properties": {- "header": {- "type": "string"- },- "id": {- "type": "string"- },- "isOther": {- "default": false,- "type": "boolean"- },- "isSecret": {- "default": false,- "type": "boolean"- },- "options": {- "items": {- "$ref": "#/definitions/RequestUserInputQuestionOption"- },- "type": [- "array",- "null"- ]- },- "question": {- "type": "string"- }- },- "required": [- "header",- "id",- "question"- ],- "type": "object"- },- "RequestUserInputQuestionOption": {- "properties": {- "description": {- "type": "string"- },- "label": {- "type": "string"- }- },- "required": [- "description",- "label"- ],- "type": "object"- },- "Resource": {- "description": "A known resource that the server is capable of reading.",- "properties": {- "_meta": true,- "annotations": true,- "description": {- "type": [- "string",- "null"- ]- },- "icons": {- "items": true,- "type": [- "array",- "null"- ]- },- "mimeType": {- "type": [- "string",- "null"- ]- },- "name": {- "type": "string"- },- "size": {- "format": "int64",- "type": [- "integer",- "null"- ]- },- "title": {- "type": [- "string",- "null"- ]- },- "uri": {- "type": "string"- }- },- "required": [- "name",- "uri"- ],- "type": "object"- },- "ResourceTemplate": {- "description": "A template description for resources available on the server.",- "properties": {- "annotations": true,- "description": {- "type": [- "string",- "null"- ]- },- "mimeType": {- "type": [- "string",- "null"- ]- },- "name": {- "type": "string"- },- "title": {- "type": [- "string",- "null"- ]- },- "uriTemplate": {- "type": "string"- }- },- "required": [- "name",- "uriTemplate"- ],- "type": "object"- },- "ResponseItem": {- "oneOf": [- {- "properties": {- "content": {- "items": {- "$ref": "#/definitions/ContentItem"- },- "type": "array"- },- "end_turn": {- "type": [- "boolean",- "null"- ]- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "phase": {- "anyOf": [- {- "$ref": "#/definitions/MessagePhase"- },- {- "type": "null"- }- ]- },- "role": {- "type": "string"- },- "type": {- "enum": [- "message"- ],- "title": "MessageResponseItemType",- "type": "string"- }- },- "required": [- "content",- "role",- "type"- ],- "title": "MessageResponseItem",- "type": "object"- },- {- "properties": {- "content": {- "default": null,- "items": {- "$ref": "#/definitions/ReasoningItemContent"- },- "type": [- "array",- "null"- ]- },- "encrypted_content": {- "type": [- "string",- "null"- ]- },- "id": {- "type": "string",- "writeOnly": true- },- "summary": {- "items": {- "$ref": "#/definitions/ReasoningItemReasoningSummary"- },- "type": "array"- },- "type": {- "enum": [- "reasoning"- ],- "title": "ReasoningResponseItemType",- "type": "string"- }- },- "required": [- "id",- "summary",- "type"- ],- "title": "ReasoningResponseItem",- "type": "object"- },- {- "properties": {- "action": {- "$ref": "#/definitions/LocalShellAction"- },- "call_id": {- "description": "Set when using the Responses API.",- "type": [- "string",- "null"- ]- },- "id": {- "description": "Legacy id field retained for compatibility with older payloads.",- "type": [- "string",- "null"- ],- "writeOnly": true- },- "status": {- "$ref": "#/definitions/LocalShellStatus"- },- "type": {- "enum": [- "local_shell_call"- ],- "title": "LocalShellCallResponseItemType",- "type": "string"- }- },- "required": [- "action",- "status",- "type"- ],- "title": "LocalShellCallResponseItem",- "type": "object"- },- {- "properties": {- "arguments": {- "type": "string"- },- "call_id": {- "type": "string"- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "name": {- "type": "string"- },- "type": {- "enum": [- "function_call"- ],- "title": "FunctionCallResponseItemType",- "type": "string"- }- },- "required": [- "arguments",- "call_id",- "name",- "type"- ],- "title": "FunctionCallResponseItem",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "output": {- "$ref": "#/definitions/FunctionCallOutputPayload"- },- "type": {- "enum": [- "function_call_output"- ],- "title": "FunctionCallOutputResponseItemType",- "type": "string"- }- },- "required": [- "call_id",- "output",- "type"- ],- "title": "FunctionCallOutputResponseItem",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "input": {- "type": "string"- },- "name": {- "type": "string"- },- "status": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "custom_tool_call"- ],- "title": "CustomToolCallResponseItemType",- "type": "string"- }- },- "required": [- "call_id",- "input",- "name",- "type"- ],- "title": "CustomToolCallResponseItem",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "output": {- "type": "string"- },- "type": {- "enum": [- "custom_tool_call_output"- ],- "title": "CustomToolCallOutputResponseItemType",- "type": "string"- }- },- "required": [- "call_id",- "output",- "type"- ],- "title": "CustomToolCallOutputResponseItem",- "type": "object"- },- {- "properties": {- "action": {- "anyOf": [- {- "$ref": "#/definitions/WebSearchAction"- },- {- "type": "null"- }- ]- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "status": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "web_search_call"- ],- "title": "WebSearchCallResponseItemType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "WebSearchCallResponseItem",- "type": "object"- },- {- "properties": {- "ghost_commit": {- "$ref": "#/definitions/GhostCommit"- },- "type": {- "enum": [- "ghost_snapshot"- ],- "title": "GhostSnapshotResponseItemType",- "type": "string"- }- },- "required": [- "ghost_commit",- "type"- ],- "title": "GhostSnapshotResponseItem",- "type": "object"- },- {- "properties": {- "encrypted_content": {- "type": "string"- },- "type": {- "enum": [- "compaction"- ],- "title": "CompactionResponseItemType",- "type": "string"- }- },- "required": [- "encrypted_content",- "type"- ],- "title": "CompactionResponseItem",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "other"- ],- "title": "OtherResponseItemType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "OtherResponseItem",- "type": "object"- }- ]- },- "Result_of_CallToolResult_or_String": {- "oneOf": [- {- "properties": {- "Ok": {- "$ref": "#/definitions/CallToolResult"- }- },- "required": [- "Ok"- ],- "title": "OkResult_of_CallToolResult_or_String",- "type": "object"- },- {- "properties": {- "Err": {- "type": "string"- }- },- "required": [- "Err"- ],- "title": "ErrResult_of_CallToolResult_or_String",- "type": "object"- }- ]- },- "ReviewCodeLocation": {- "description": "Location of the code related to a review finding.",- "properties": {- "absolute_file_path": {- "type": "string"- },- "line_range": {- "$ref": "#/definitions/ReviewLineRange"- }- },- "required": [- "absolute_file_path",- "line_range"- ],- "type": "object"- },- "ReviewFinding": {- "description": "A single review finding describing an observed issue or recommendation.",- "properties": {- "body": {- "type": "string"- },- "code_location": {- "$ref": "#/definitions/ReviewCodeLocation"- },- "confidence_score": {- "format": "float",- "type": "number"- },- "priority": {- "format": "int32",- "type": "integer"- },- "title": {- "type": "string"- }- },- "required": [- "body",- "code_location",- "confidence_score",- "priority",- "title"- ],- "type": "object"- },- "ReviewLineRange": {- "description": "Inclusive line range in a file associated with the finding.",- "properties": {- "end": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "start": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "end",- "start"- ],- "type": "object"- },- "ReviewOutputEvent": {- "description": "Structured review result produced by a child review session.",- "properties": {- "findings": {- "items": {- "$ref": "#/definitions/ReviewFinding"- },- "type": "array"- },- "overall_confidence_score": {- "format": "float",- "type": "number"- },- "overall_correctness": {- "type": "string"- },- "overall_explanation": {- "type": "string"- }- },- "required": [- "findings",- "overall_confidence_score",- "overall_correctness",- "overall_explanation"- ],- "type": "object"- },- "ReviewTarget": {- "oneOf": [- {- "description": "Review the working tree: staged, unstaged, and untracked files.",- "properties": {- "type": {- "enum": [- "uncommittedChanges"- ],- "title": "UncommittedChangesReviewTargetType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "UncommittedChangesReviewTarget",- "type": "object"- },- {- "description": "Review changes between the current branch and the given base branch.",- "properties": {- "branch": {- "type": "string"- },- "type": {- "enum": [- "baseBranch"- ],- "title": "BaseBranchReviewTargetType",- "type": "string"- }- },- "required": [- "branch",- "type"- ],- "title": "BaseBranchReviewTarget",- "type": "object"- },- {- "description": "Review the changes introduced by a specific commit.",- "properties": {- "sha": {- "type": "string"- },- "title": {- "description": "Optional human-readable label (e.g., commit subject) for UIs.",- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "commit"- ],- "title": "CommitReviewTargetType",- "type": "string"- }- },- "required": [- "sha",- "type"- ],- "title": "CommitReviewTarget",- "type": "object"- },- {- "description": "Arbitrary instructions provided by the user.",- "properties": {- "instructions": {- "type": "string"- },- "type": {- "enum": [- "custom"- ],- "title": "CustomReviewTargetType",- "type": "string"- }- },- "required": [- "instructions",- "type"- ],- "title": "CustomReviewTarget",- "type": "object"- }- ]- },- "SandboxPolicy": {- "description": "Determines execution restrictions for model shell commands.",- "oneOf": [- {- "description": "No restrictions whatsoever. Use with caution.",- "properties": {- "type": {- "enum": [- "danger-full-access"- ],- "title": "DangerFullAccessSandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "DangerFullAccessSandboxPolicy",- "type": "object"- },- {- "description": "Read-only access configuration.",- "properties": {- "access": {- "allOf": [- {- "$ref": "#/definitions/ReadOnlyAccess"- }- ],- "description": "Read access granted while running under this policy."- },- "type": {- "enum": [- "read-only"- ],- "title": "ReadOnlySandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ReadOnlySandboxPolicy",- "type": "object"- },- {- "description": "Indicates the process is already in an external sandbox. Allows full disk access while honoring the provided network setting.",- "properties": {- "network_access": {- "allOf": [- {- "$ref": "#/definitions/NetworkAccess"- }- ],- "default": "restricted",- "description": "Whether the external sandbox permits outbound network traffic."- },- "type": {- "enum": [- "external-sandbox"- ],- "title": "ExternalSandboxSandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ExternalSandboxSandboxPolicy",- "type": "object"- },- {- "description": "Same as `ReadOnly` but additionally grants write access to the current working directory (\"workspace\").",- "properties": {- "exclude_slash_tmp": {- "default": false,- "description": "When set to `true`, will NOT include the `/tmp` among the default writable roots on UNIX. Defaults to `false`.",- "type": "boolean"- },- "exclude_tmpdir_env_var": {- "default": false,- "description": "When set to `true`, will NOT include the per-user `TMPDIR` environment variable among the default writable roots. Defaults to `false`.",- "type": "boolean"- },- "network_access": {- "default": false,- "description": "When set to `true`, outbound network access is allowed. `false` by default.",- "type": "boolean"- },- "read_only_access": {- "allOf": [- {- "$ref": "#/definitions/ReadOnlyAccess"- }- ],- "description": "Read access granted while running under this policy."- },- "type": {- "enum": [- "workspace-write"- ],- "title": "WorkspaceWriteSandboxPolicyType",- "type": "string"- },- "writable_roots": {- "description": "Additional folders (beyond cwd and possibly TMPDIR) that should be writable from within the sandbox.",- "items": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": "array"- }- },- "required": [- "type"- ],- "title": "WorkspaceWriteSandboxPolicy",- "type": "object"- }- ]- },- "SessionNetworkProxyRuntime": {- "properties": {- "admin_addr": {- "type": "string"- },- "http_addr": {- "type": "string"- },- "socks_addr": {- "type": "string"- }- },- "required": [- "admin_addr",- "http_addr",- "socks_addr"- ],- "type": "object"- },- "SkillDependencies": {- "properties": {- "tools": {- "items": {- "$ref": "#/definitions/SkillToolDependency"- },- "type": "array"- }- },- "required": [- "tools"- ],- "type": "object"- },- "SkillErrorInfo": {- "properties": {- "message": {- "type": "string"- },- "path": {- "type": "string"- }- },- "required": [- "message",- "path"- ],- "type": "object"- },- "SkillInterface": {- "properties": {- "brand_color": {- "type": [- "string",- "null"- ]- },- "default_prompt": {- "type": [- "string",- "null"- ]- },- "display_name": {- "type": [- "string",- "null"- ]- },- "icon_large": {- "type": [- "string",- "null"- ]- },- "icon_small": {- "type": [- "string",- "null"- ]- },- "short_description": {- "type": [- "string",- "null"- ]- }- },- "type": "object"- },- "SkillMetadata": {- "properties": {- "dependencies": {- "anyOf": [- {- "$ref": "#/definitions/SkillDependencies"- },- {- "type": "null"- }- ]- },- "description": {- "type": "string"- },- "enabled": {- "type": "boolean"- },- "interface": {- "anyOf": [- {- "$ref": "#/definitions/SkillInterface"- },- {- "type": "null"- }- ]- },- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "scope": {- "$ref": "#/definitions/SkillScope"- },- "short_description": {- "description": "Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description.",- "type": [- "string",- "null"- ]- }- },- "required": [- "description",- "enabled",- "name",- "path",- "scope"- ],- "type": "object"- },- "SkillScope": {- "enum": [- "user",- "repo",- "system",- "admin"- ],- "type": "string"- },- "SkillToolDependency": {- "properties": {- "command": {- "type": [- "string",- "null"- ]- },- "description": {- "type": [- "string",- "null"- ]- },- "transport": {- "type": [- "string",- "null"- ]- },- "type": {- "type": "string"- },- "url": {- "type": [- "string",- "null"- ]- },- "value": {- "type": "string"- }- },- "required": [- "type",- "value"- ],- "type": "object"- },- "SkillsListEntry": {- "properties": {- "cwd": {- "type": "string"- },- "errors": {- "items": {- "$ref": "#/definitions/SkillErrorInfo"- },- "type": "array"- },- "skills": {- "items": {- "$ref": "#/definitions/SkillMetadata"- },- "type": "array"- }- },- "required": [- "cwd",- "errors",- "skills"- ],- "type": "object"- },- "StepStatus": {- "enum": [- "pending",- "in_progress",- "completed"- ],- "type": "string"- },- "TextElement": {- "properties": {- "byte_range": {- "allOf": [- {- "$ref": "#/definitions/ByteRange"- }- ],- "description": "Byte range in the parent `text` buffer that this element occupies."- },- "placeholder": {- "description": "Optional human-readable placeholder for the element, displayed in the UI.",- "type": [- "string",- "null"- ]- }- },- "required": [- "byte_range"- ],- "type": "object"- },- "ThreadId": {- "type": "string"- },- "TokenUsage": {- "properties": {- "cached_input_tokens": {- "format": "int64",- "type": "integer"- },- "input_tokens": {- "format": "int64",- "type": "integer"- },- "output_tokens": {- "format": "int64",- "type": "integer"- },- "reasoning_output_tokens": {- "format": "int64",- "type": "integer"- },- "total_tokens": {- "format": "int64",- "type": "integer"- }- },- "required": [- "cached_input_tokens",- "input_tokens",- "output_tokens",- "reasoning_output_tokens",- "total_tokens"- ],- "type": "object"- },- "TokenUsageInfo": {- "properties": {- "last_token_usage": {- "$ref": "#/definitions/TokenUsage"- },- "model_context_window": {- "format": "int64",- "type": [- "integer",- "null"- ]- },- "total_token_usage": {- "$ref": "#/definitions/TokenUsage"- }- },- "required": [- "last_token_usage",- "total_token_usage"- ],- "type": "object"- },- "Tool": {- "description": "Definition for a tool the client can call.",- "properties": {- "_meta": true,- "annotations": true,- "description": {- "type": [- "string",- "null"- ]- },- "icons": {- "items": true,- "type": [- "array",- "null"- ]- },- "inputSchema": true,- "name": {- "type": "string"- },- "outputSchema": true,- "title": {- "type": [- "string",- "null"- ]- }- },- "required": [- "inputSchema",- "name"- ],- "type": "object"- },- "TurnAbortReason": {- "enum": [- "interrupted",- "replaced",- "review_ended"- ],- "type": "string"- },- "TurnItem": {- "oneOf": [- {- "properties": {- "content": {- "items": {- "$ref": "#/definitions/UserInput"- },- "type": "array"- },- "id": {- "type": "string"- },- "type": {- "enum": [- "UserMessage"- ],- "title": "UserMessageTurnItemType",- "type": "string"- }- },- "required": [- "content",- "id",- "type"- ],- "title": "UserMessageTurnItem",- "type": "object"- },- {- "description": "Assistant-authored message payload used in turn-item streams.\n\n`phase` is optional because not all providers/models emit it. Consumers should use it when present, but retain legacy completion semantics when it is `None`.",- "properties": {- "content": {- "items": {- "$ref": "#/definitions/AgentMessageContent"- },- "type": "array"- },- "id": {- "type": "string"- },- "phase": {- "anyOf": [- {- "$ref": "#/definitions/MessagePhase"- },- {- "type": "null"- }- ],- "description": "Optional phase metadata carried through from `ResponseItem::Message`.\n\nThis is currently used by TUI rendering to distinguish mid-turn commentary from a final answer and avoid status-indicator jitter."- },- "type": {- "enum": [- "AgentMessage"- ],- "title": "AgentMessageTurnItemType",- "type": "string"- }- },- "required": [- "content",- "id",- "type"- ],- "title": "AgentMessageTurnItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "text": {- "type": "string"- },- "type": {- "enum": [- "Plan"- ],- "title": "PlanTurnItemType",- "type": "string"- }- },- "required": [- "id",- "text",- "type"- ],- "title": "PlanTurnItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "raw_content": {- "default": [],- "items": {- "type": "string"- },- "type": "array"- },- "summary_text": {- "items": {- "type": "string"- },- "type": "array"- },- "type": {- "enum": [- "Reasoning"- ],- "title": "ReasoningTurnItemType",- "type": "string"- }- },- "required": [- "id",- "summary_text",- "type"- ],- "title": "ReasoningTurnItem",- "type": "object"- },- {- "properties": {- "action": {- "$ref": "#/definitions/WebSearchAction"- },- "id": {- "type": "string"- },- "query": {- "type": "string"- },- "type": {- "enum": [- "WebSearch"- ],- "title": "WebSearchTurnItemType",- "type": "string"- }- },- "required": [- "action",- "id",- "query",- "type"- ],- "title": "WebSearchTurnItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "type": {- "enum": [- "ContextCompaction"- ],- "title": "ContextCompactionTurnItemType",- "type": "string"- }- },- "required": [- "id",- "type"- ],- "title": "ContextCompactionTurnItem",- "type": "object"- }- ]- },- "UserInput": {- "description": "User input",- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "text_elements": {- "default": [],- "description": "UI-defined spans within `text` that should be treated as special elements. These are byte ranges into the UTF-8 `text` buffer and are used to render or persist rich input markers (e.g., image placeholders) across history and resume without mutating the literal text.",- "items": {- "$ref": "#/definitions/TextElement"- },- "type": "array"- },- "type": {- "enum": [- "text"- ],- "title": "TextUserInputType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "TextUserInput",- "type": "object"- },- {- "description": "Pre‑encoded data: URI image.",- "properties": {- "image_url": {- "type": "string"- },- "type": {- "enum": [- "image"- ],- "title": "ImageUserInputType",- "type": "string"- }- },- "required": [- "image_url",- "type"- ],- "title": "ImageUserInput",- "type": "object"- },- {- "description": "Local image path provided by the user. This will be converted to an `Image` variant (base64 data URL) during request serialization.",- "properties": {- "path": {- "type": "string"- },- "type": {- "enum": [- "local_image"- ],- "title": "LocalImageUserInputType",- "type": "string"- }- },- "required": [- "path",- "type"- ],- "title": "LocalImageUserInput",- "type": "object"- },- {- "description": "Skill selected by the user (name + path to SKILL.md).",- "properties": {- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "type": {- "enum": [- "skill"- ],- "title": "SkillUserInputType",- "type": "string"- }- },- "required": [- "name",- "path",- "type"- ],- "title": "SkillUserInput",- "type": "object"- },- {- "description": "Explicit mention selected by the user (name + app://connector id).",- "properties": {- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "type": {- "enum": [- "mention"- ],- "title": "MentionUserInputType",- "type": "string"- }- },- "required": [- "name",- "path",- "type"- ],- "title": "MentionUserInput",- "type": "object"- }- ]- },- "WebSearchAction": {- "oneOf": [- {- "properties": {- "queries": {- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "query": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "search"- ],- "title": "SearchWebSearchActionType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "SearchWebSearchAction",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "open_page"- ],- "title": "OpenPageWebSearchActionType",- "type": "string"- },- "url": {- "type": [- "string",- "null"- ]- }- },- "required": [- "type"- ],- "title": "OpenPageWebSearchAction",- "type": "object"- },- {- "properties": {- "pattern": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "find_in_page"- ],- "title": "FindInPageWebSearchActionType",- "type": "string"- },- "url": {- "type": [- "string",- "null"- ]- }- },- "required": [- "type"- ],- "title": "FindInPageWebSearchAction",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "other"- ],- "title": "OtherWebSearchActionType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "OtherWebSearchAction",- "type": "object"- }- ]- }- },- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "initialMessages": {- "items": {- "$ref": "#/definitions/EventMsg"- },- "type": [- "array",- "null"- ]- },- "model": {- "type": "string"- },- "rolloutPath": {- "type": "string"- }- },- "required": [- "conversationId",- "model",- "rolloutPath"- ],- "title": "ForkConversationResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/GetAuthStatusParams.json b/codex-rs/app-server-protocol/schema/json/v1/GetAuthStatusParams.jsondeleted file mode 100644index 0b21fd765d..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/GetAuthStatusParams.json+++ /dev/null@@ -1,19 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "includeToken": {- "type": [- "boolean",- "null"- ]- },- "refreshToken": {- "type": [- "boolean",- "null"- ]- }- },- "title": "GetAuthStatusParams",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/GetAuthStatusResponse.json b/codex-rs/app-server-protocol/schema/json/v1/GetAuthStatusResponse.jsondeleted file mode 100644index 7a605453d4..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/GetAuthStatusResponse.json+++ /dev/null@@ -1,57 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "AuthMode": {- "description": "Authentication mode for OpenAI-backed providers.",- "oneOf": [- {- "description": "OpenAI API key provided by the caller and stored by Codex.",- "enum": [- "apikey"- ],- "type": "string"- },- {- "description": "ChatGPT OAuth managed by Codex (tokens persisted and refreshed by Codex).",- "enum": [- "chatgpt"- ],- "type": "string"- },- {- "description": "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE.\n\nChatGPT auth tokens are supplied by an external host app and are only stored in memory. Token refresh must be handled by the external host app.",- "enum": [- "chatgptAuthTokens"- ],- "type": "string"- }- ]- }- },- "properties": {- "authMethod": {- "anyOf": [- {- "$ref": "#/definitions/AuthMode"- },- {- "type": "null"- }- ]- },- "authToken": {- "type": [- "string",- "null"- ]- },- "requiresOpenaiAuth": {- "type": [- "boolean",- "null"- ]- }- },- "title": "GetAuthStatusResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/GetConversationSummaryParams.json b/codex-rs/app-server-protocol/schema/json/v1/GetConversationSummaryParams.jsondeleted file mode 100644index aa6726cded..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/GetConversationSummaryParams.json+++ /dev/null@@ -1,35 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "anyOf": [- {- "properties": {- "rolloutPath": {- "type": "string"- }- },- "required": [- "rolloutPath"- ],- "title": "RolloutPathv1::GetConversationSummaryParams",- "type": "object"- },- {- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- }- },- "required": [- "conversationId"- ],- "title": "ConversationIdv1::GetConversationSummaryParams",- "type": "object"- }- ],- "definitions": {- "ThreadId": {- "type": "string"- }- },- "title": "GetConversationSummaryParams"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/GetConversationSummaryResponse.json b/codex-rs/app-server-protocol/schema/json/v1/GetConversationSummaryResponse.jsondeleted file mode 100644index 13cdf0b0f8..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/GetConversationSummaryResponse.json+++ /dev/null@@ -1,190 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "ConversationGitInfo": {- "properties": {- "branch": {- "type": [- "string",- "null"- ]- },- "origin_url": {- "type": [- "string",- "null"- ]- },- "sha": {- "type": [- "string",- "null"- ]- }- },- "type": "object"- },- "ConversationSummary": {- "properties": {- "cliVersion": {- "type": "string"- },- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "cwd": {- "type": "string"- },- "gitInfo": {- "anyOf": [- {- "$ref": "#/definitions/ConversationGitInfo"- },- {- "type": "null"- }- ]- },- "modelProvider": {- "type": "string"- },- "path": {- "type": "string"- },- "preview": {- "type": "string"- },- "source": {- "$ref": "#/definitions/SessionSource"- },- "timestamp": {- "type": [- "string",- "null"- ]- },- "updatedAt": {- "type": [- "string",- "null"- ]- }- },- "required": [- "cliVersion",- "conversationId",- "cwd",- "modelProvider",- "path",- "preview",- "source"- ],- "type": "object"- },- "SessionSource": {- "oneOf": [- {- "enum": [- "cli",- "vscode",- "exec",- "mcp",- "unknown"- ],- "type": "string"- },- {- "additionalProperties": false,- "properties": {- "subagent": {- "$ref": "#/definitions/SubAgentSource"- }- },- "required": [- "subagent"- ],- "title": "SubagentSessionSource",- "type": "object"- }- ]- },- "SubAgentSource": {- "oneOf": [- {- "enum": [- "review",- "compact",- "memory_consolidation"- ],- "type": "string"- },- {- "additionalProperties": false,- "properties": {- "thread_spawn": {- "properties": {- "agent_nickname": {- "default": null,- "type": [- "string",- "null"- ]- },- "agent_role": {- "default": null,- "type": [- "string",- "null"- ]- },- "depth": {- "format": "int32",- "type": "integer"- },- "parent_thread_id": {- "$ref": "#/definitions/ThreadId"- }- },- "required": [- "depth",- "parent_thread_id"- ],- "type": "object"- }- },- "required": [- "thread_spawn"- ],- "title": "ThreadSpawnSubAgentSource",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "other": {- "type": "string"- }- },- "required": [- "other"- ],- "title": "OtherSubAgentSource",- "type": "object"- }- ]- },- "ThreadId": {- "type": "string"- }- },- "properties": {- "summary": {- "$ref": "#/definitions/ConversationSummary"- }- },- "required": [- "summary"- ],- "title": "GetConversationSummaryResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/GetUserAgentResponse.json b/codex-rs/app-server-protocol/schema/json/v1/GetUserAgentResponse.jsondeleted file mode 100644index c041282c8f..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/GetUserAgentResponse.json+++ /dev/null@@ -1,13 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "userAgent": {- "type": "string"- }- },- "required": [- "userAgent"- ],- "title": "GetUserAgentResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/GetUserSavedConfigResponse.json b/codex-rs/app-server-protocol/schema/json/v1/GetUserSavedConfigResponse.jsondeleted file mode 100644index 2f6d8b3b5f..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/GetUserSavedConfigResponse.json+++ /dev/null@@ -1,366 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "AbsolutePathBuf": {- "description": "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",- "type": "string"- },- "AskForApproval": {- "description": "Determines the conditions under which the user is consulted to approve running the command proposed by Codex.",- "oneOf": [- {- "description": "Under this policy, only \"known safe\" commands—as determined by `is_safe_command()`—that **only read files** are auto‑approved. Everything else will ask the user to approve.",- "enum": [- "untrusted"- ],- "type": "string"- },- {- "description": "DEPRECATED: *All* commands are auto‑approved, but they are expected to run inside a sandbox where network access is disabled and writes are confined to a specific set of paths. If the command fails, it will be escalated to the user to approve execution without a sandbox. Prefer `OnRequest` for interactive runs or `Never` for non-interactive runs.",- "enum": [- "on-failure"- ],- "type": "string"- },- {- "description": "The model decides when to ask the user for approval.",- "enum": [- "on-request"- ],- "type": "string"- },- {- "additionalProperties": false,- "description": "Fine-grained rejection controls for approval prompts.\n\nWhen a field is `true`, prompts of that category are automatically rejected instead of shown to the user.",- "properties": {- "reject": {- "$ref": "#/definitions/RejectConfig"- }- },- "required": [- "reject"- ],- "title": "RejectAskForApproval",- "type": "object"- },- {- "description": "Never ask the user to approve commands. Failures are immediately returned to the model, and never escalated to the user for approval.",- "enum": [- "never"- ],- "type": "string"- }- ]- },- "ForcedLoginMethod": {- "enum": [- "chatgpt",- "api"- ],- "type": "string"- },- "Profile": {- "properties": {- "approvalPolicy": {- "anyOf": [- {- "$ref": "#/definitions/AskForApproval"- },- {- "type": "null"- }- ]- },- "chatgptBaseUrl": {- "type": [- "string",- "null"- ]- },- "model": {- "type": [- "string",- "null"- ]- },- "modelProvider": {- "type": [- "string",- "null"- ]- },- "modelReasoningEffort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ]- },- "modelReasoningSummary": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningSummary"- },- {- "type": "null"- }- ]- },- "modelVerbosity": {- "anyOf": [- {- "$ref": "#/definitions/Verbosity"- },- {- "type": "null"- }- ]- }- },- "type": "object"- },- "ReasoningEffort": {- "description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",- "enum": [- "none",- "minimal",- "low",- "medium",- "high",- "xhigh"- ],- "type": "string"- },- "ReasoningSummary": {- "description": "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries",- "oneOf": [- {- "enum": [- "auto",- "concise",- "detailed"- ],- "type": "string"- },- {- "description": "Option to disable reasoning summaries.",- "enum": [- "none"- ],- "type": "string"- }- ]- },- "RejectConfig": {- "properties": {- "mcp_elicitations": {- "description": "Reject MCP elicitation prompts.",- "type": "boolean"- },- "rules": {- "description": "Reject prompts triggered by execpolicy `prompt` rules.",- "type": "boolean"- },- "sandbox_approval": {- "description": "Reject approval prompts related to sandbox escalation.",- "type": "boolean"- }- },- "required": [- "mcp_elicitations",- "rules",- "sandbox_approval"- ],- "type": "object"- },- "SandboxMode": {- "enum": [- "read-only",- "workspace-write",- "danger-full-access"- ],- "type": "string"- },- "SandboxSettings": {- "properties": {- "excludeSlashTmp": {- "type": [- "boolean",- "null"- ]- },- "excludeTmpdirEnvVar": {- "type": [- "boolean",- "null"- ]- },- "networkAccess": {- "type": [- "boolean",- "null"- ]- },- "writableRoots": {- "default": [],- "items": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": "array"- }- },- "type": "object"- },- "Tools": {- "properties": {- "viewImage": {- "type": [- "boolean",- "null"- ]- },- "webSearch": {- "type": [- "boolean",- "null"- ]- }- },- "type": "object"- },- "UserSavedConfig": {- "properties": {- "approvalPolicy": {- "anyOf": [- {- "$ref": "#/definitions/AskForApproval"- },- {- "type": "null"- }- ]- },- "forcedChatgptWorkspaceId": {- "type": [- "string",- "null"- ]- },- "forcedLoginMethod": {- "anyOf": [- {- "$ref": "#/definitions/ForcedLoginMethod"- },- {- "type": "null"- }- ]- },- "model": {- "type": [- "string",- "null"- ]- },- "modelReasoningEffort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ]- },- "modelReasoningSummary": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningSummary"- },- {- "type": "null"- }- ]- },- "modelVerbosity": {- "anyOf": [- {- "$ref": "#/definitions/Verbosity"- },- {- "type": "null"- }- ]- },- "profile": {- "type": [- "string",- "null"- ]- },- "profiles": {- "additionalProperties": {- "$ref": "#/definitions/Profile"- },- "type": "object"- },- "sandboxMode": {- "anyOf": [- {- "$ref": "#/definitions/SandboxMode"- },- {- "type": "null"- }- ]- },- "sandboxSettings": {- "anyOf": [- {- "$ref": "#/definitions/SandboxSettings"- },- {- "type": "null"- }- ]- },- "tools": {- "anyOf": [- {- "$ref": "#/definitions/Tools"- },- {- "type": "null"- }- ]- }- },- "required": [- "profiles"- ],- "type": "object"- },- "Verbosity": {- "description": "Controls output length/detail on GPT-5 models via the Responses API. Serialized with lowercase values to match the OpenAI API.",- "enum": [- "low",- "medium",- "high"- ],- "type": "string"- }- },- "properties": {- "config": {- "$ref": "#/definitions/UserSavedConfig"- }- },- "required": [- "config"- ],- "title": "GetUserSavedConfigResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/GitDiffToRemoteParams.json b/codex-rs/app-server-protocol/schema/json/v1/GitDiffToRemoteParams.jsondeleted file mode 100644index 51640965ca..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/GitDiffToRemoteParams.json+++ /dev/null@@ -1,13 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "cwd": {- "type": "string"- }- },- "required": [- "cwd"- ],- "title": "GitDiffToRemoteParams",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/GitDiffToRemoteResponse.json b/codex-rs/app-server-protocol/schema/json/v1/GitDiffToRemoteResponse.jsondeleted file mode 100644index fd59b80e94..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/GitDiffToRemoteResponse.json+++ /dev/null@@ -1,22 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "GitSha": {- "type": "string"- }- },- "properties": {- "diff": {- "type": "string"- },- "sha": {- "$ref": "#/definitions/GitSha"- }- },- "required": [- "diff",- "sha"- ],- "title": "GitDiffToRemoteResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/InterruptConversationParams.json b/codex-rs/app-server-protocol/schema/json/v1/InterruptConversationParams.jsondeleted file mode 100644index 4fdd221fca..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/InterruptConversationParams.json+++ /dev/null@@ -1,18 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "ThreadId": {- "type": "string"- }- },- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- }- },- "required": [- "conversationId"- ],- "title": "InterruptConversationParams",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/InterruptConversationResponse.json b/codex-rs/app-server-protocol/schema/json/v1/InterruptConversationResponse.jsondeleted file mode 100644index 5d2ddf3e40..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/InterruptConversationResponse.json+++ /dev/null@@ -1,23 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "TurnAbortReason": {- "enum": [- "interrupted",- "replaced",- "review_ended"- ],- "type": "string"- }- },- "properties": {- "abortReason": {- "$ref": "#/definitions/TurnAbortReason"- }- },- "required": [- "abortReason"- ],- "title": "InterruptConversationResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ListConversationsParams.json b/codex-rs/app-server-protocol/schema/json/v1/ListConversationsParams.jsondeleted file mode 100644index 9ac05602c4..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/ListConversationsParams.json+++ /dev/null@@ -1,30 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "cursor": {- "type": [- "string",- "null"- ]- },- "modelProviders": {- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "pageSize": {- "format": "uint",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "title": "ListConversationsParams",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ListConversationsResponse.json b/codex-rs/app-server-protocol/schema/json/v1/ListConversationsResponse.jsondeleted file mode 100644index 2e3ab7e0dc..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/ListConversationsResponse.json+++ /dev/null@@ -1,199 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "ConversationGitInfo": {- "properties": {- "branch": {- "type": [- "string",- "null"- ]- },- "origin_url": {- "type": [- "string",- "null"- ]- },- "sha": {- "type": [- "string",- "null"- ]- }- },- "type": "object"- },- "ConversationSummary": {- "properties": {- "cliVersion": {- "type": "string"- },- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "cwd": {- "type": "string"- },- "gitInfo": {- "anyOf": [- {- "$ref": "#/definitions/ConversationGitInfo"- },- {- "type": "null"- }- ]- },- "modelProvider": {- "type": "string"- },- "path": {- "type": "string"- },- "preview": {- "type": "string"- },- "source": {- "$ref": "#/definitions/SessionSource"- },- "timestamp": {- "type": [- "string",- "null"- ]- },- "updatedAt": {- "type": [- "string",- "null"- ]- }- },- "required": [- "cliVersion",- "conversationId",- "cwd",- "modelProvider",- "path",- "preview",- "source"- ],- "type": "object"- },- "SessionSource": {- "oneOf": [- {- "enum": [- "cli",- "vscode",- "exec",- "mcp",- "unknown"- ],- "type": "string"- },- {- "additionalProperties": false,- "properties": {- "subagent": {- "$ref": "#/definitions/SubAgentSource"- }- },- "required": [- "subagent"- ],- "title": "SubagentSessionSource",- "type": "object"- }- ]- },- "SubAgentSource": {- "oneOf": [- {- "enum": [- "review",- "compact",- "memory_consolidation"- ],- "type": "string"- },- {- "additionalProperties": false,- "properties": {- "thread_spawn": {- "properties": {- "agent_nickname": {- "default": null,- "type": [- "string",- "null"- ]- },- "agent_role": {- "default": null,- "type": [- "string",- "null"- ]- },- "depth": {- "format": "int32",- "type": "integer"- },- "parent_thread_id": {- "$ref": "#/definitions/ThreadId"- }- },- "required": [- "depth",- "parent_thread_id"- ],- "type": "object"- }- },- "required": [- "thread_spawn"- ],- "title": "ThreadSpawnSubAgentSource",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "other": {- "type": "string"- }- },- "required": [- "other"- ],- "title": "OtherSubAgentSource",- "type": "object"- }- ]- },- "ThreadId": {- "type": "string"- }- },- "properties": {- "items": {- "items": {- "$ref": "#/definitions/ConversationSummary"- },- "type": "array"- },- "nextCursor": {- "type": [- "string",- "null"- ]- }- },- "required": [- "items"- ],- "title": "ListConversationsResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/LoginApiKeyParams.json b/codex-rs/app-server-protocol/schema/json/v1/LoginApiKeyParams.jsondeleted file mode 100644index b23ce5548f..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/LoginApiKeyParams.json+++ /dev/null@@ -1,13 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "apiKey": {- "type": "string"- }- },- "required": [- "apiKey"- ],- "title": "LoginApiKeyParams",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/LoginApiKeyResponse.json b/codex-rs/app-server-protocol/schema/json/v1/LoginApiKeyResponse.jsondeleted file mode 100644index cba1fe3c40..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/LoginApiKeyResponse.json+++ /dev/null@@ -1,5 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "title": "LoginApiKeyResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/LoginChatGptCompleteNotification.json b/codex-rs/app-server-protocol/schema/json/v1/LoginChatGptCompleteNotification.jsondeleted file mode 100644index ae34de2f42..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/LoginChatGptCompleteNotification.json+++ /dev/null@@ -1,24 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "description": "Deprecated in favor of AccountLoginCompletedNotification.",- "properties": {- "error": {- "type": [- "string",- "null"- ]- },- "loginId": {- "type": "string"- },- "success": {- "type": "boolean"- }- },- "required": [- "loginId",- "success"- ],- "title": "LoginChatGptCompleteNotification",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/LoginChatGptResponse.json b/codex-rs/app-server-protocol/schema/json/v1/LoginChatGptResponse.jsondeleted file mode 100644index 9ecf3cdbb9..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/LoginChatGptResponse.json+++ /dev/null@@ -1,17 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "authUrl": {- "type": "string"- },- "loginId": {- "type": "string"- }- },- "required": [- "authUrl",- "loginId"- ],- "title": "LoginChatGptResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/LogoutChatGptResponse.json b/codex-rs/app-server-protocol/schema/json/v1/LogoutChatGptResponse.jsondeleted file mode 100644index 449cfc5fab..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/LogoutChatGptResponse.json+++ /dev/null@@ -1,5 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "title": "LogoutChatGptResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/NewConversationParams.json b/codex-rs/app-server-protocol/schema/json/v1/NewConversationParams.jsondeleted file mode 100644index c9c8caaa26..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/NewConversationParams.json+++ /dev/null@@ -1,161 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "AskForApproval": {- "description": "Determines the conditions under which the user is consulted to approve running the command proposed by Codex.",- "oneOf": [- {- "description": "Under this policy, only \"known safe\" commands—as determined by `is_safe_command()`—that **only read files** are auto‑approved. Everything else will ask the user to approve.",- "enum": [- "untrusted"- ],- "type": "string"- },- {- "description": "DEPRECATED: *All* commands are auto‑approved, but they are expected to run inside a sandbox where network access is disabled and writes are confined to a specific set of paths. If the command fails, it will be escalated to the user to approve execution without a sandbox. Prefer `OnRequest` for interactive runs or `Never` for non-interactive runs.",- "enum": [- "on-failure"- ],- "type": "string"- },- {- "description": "The model decides when to ask the user for approval.",- "enum": [- "on-request"- ],- "type": "string"- },- {- "additionalProperties": false,- "description": "Fine-grained rejection controls for approval prompts.\n\nWhen a field is `true`, prompts of that category are automatically rejected instead of shown to the user.",- "properties": {- "reject": {- "$ref": "#/definitions/RejectConfig"- }- },- "required": [- "reject"- ],- "title": "RejectAskForApproval",- "type": "object"- },- {- "description": "Never ask the user to approve commands. Failures are immediately returned to the model, and never escalated to the user for approval.",- "enum": [- "never"- ],- "type": "string"- }- ]- },- "RejectConfig": {- "properties": {- "mcp_elicitations": {- "description": "Reject MCP elicitation prompts.",- "type": "boolean"- },- "rules": {- "description": "Reject prompts triggered by execpolicy `prompt` rules.",- "type": "boolean"- },- "sandbox_approval": {- "description": "Reject approval prompts related to sandbox escalation.",- "type": "boolean"- }- },- "required": [- "mcp_elicitations",- "rules",- "sandbox_approval"- ],- "type": "object"- },- "SandboxMode": {- "enum": [- "read-only",- "workspace-write",- "danger-full-access"- ],- "type": "string"- }- },- "properties": {- "approvalPolicy": {- "anyOf": [- {- "$ref": "#/definitions/AskForApproval"- },- {- "type": "null"- }- ]- },- "baseInstructions": {- "type": [- "string",- "null"- ]- },- "compactPrompt": {- "type": [- "string",- "null"- ]- },- "config": {- "additionalProperties": true,- "type": [- "object",- "null"- ]- },- "cwd": {- "type": [- "string",- "null"- ]- },- "developerInstructions": {- "type": [- "string",- "null"- ]- },- "includeApplyPatchTool": {- "type": [- "boolean",- "null"- ]- },- "model": {- "type": [- "string",- "null"- ]- },- "modelProvider": {- "type": [- "string",- "null"- ]- },- "profile": {- "type": [- "string",- "null"- ]- },- "sandbox": {- "anyOf": [- {- "$ref": "#/definitions/SandboxMode"- },- {- "type": "null"- }- ]- }- },- "title": "NewConversationParams",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/NewConversationResponse.json b/codex-rs/app-server-protocol/schema/json/v1/NewConversationResponse.jsondeleted file mode 100644index 8030d8113f..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/NewConversationResponse.json+++ /dev/null@@ -1,48 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "ReasoningEffort": {- "description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",- "enum": [- "none",- "minimal",- "low",- "medium",- "high",- "xhigh"- ],- "type": "string"- },- "ThreadId": {- "type": "string"- }- },- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "model": {- "type": "string"- },- "reasoningEffort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ]- },- "rolloutPath": {- "type": "string"- }- },- "required": [- "conversationId",- "model",- "rolloutPath"- ],- "title": "NewConversationResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/RemoveConversationListenerParams.json b/codex-rs/app-server-protocol/schema/json/v1/RemoveConversationListenerParams.jsondeleted file mode 100644index 990b8ff0c4..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/RemoveConversationListenerParams.json+++ /dev/null@@ -1,13 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "subscriptionId": {- "type": "string"- }- },- "required": [- "subscriptionId"- ],- "title": "RemoveConversationListenerParams",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/RemoveConversationSubscriptionResponse.json b/codex-rs/app-server-protocol/schema/json/v1/RemoveConversationSubscriptionResponse.jsondeleted file mode 100644index 8efe40d430..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/RemoveConversationSubscriptionResponse.json+++ /dev/null@@ -1,5 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "title": "RemoveConversationSubscriptionResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ResumeConversationParams.json b/codex-rs/app-server-protocol/schema/json/v1/ResumeConversationParams.jsondeleted file mode 100644index a45e1e60ee..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/ResumeConversationParams.json+++ /dev/null@@ -1,984 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "AskForApproval": {- "description": "Determines the conditions under which the user is consulted to approve running the command proposed by Codex.",- "oneOf": [- {- "description": "Under this policy, only \"known safe\" commands—as determined by `is_safe_command()`—that **only read files** are auto‑approved. Everything else will ask the user to approve.",- "enum": [- "untrusted"- ],- "type": "string"- },- {- "description": "DEPRECATED: *All* commands are auto‑approved, but they are expected to run inside a sandbox where network access is disabled and writes are confined to a specific set of paths. If the command fails, it will be escalated to the user to approve execution without a sandbox. Prefer `OnRequest` for interactive runs or `Never` for non-interactive runs.",- "enum": [- "on-failure"- ],- "type": "string"- },- {- "description": "The model decides when to ask the user for approval.",- "enum": [- "on-request"- ],- "type": "string"- },- {- "additionalProperties": false,- "description": "Fine-grained rejection controls for approval prompts.\n\nWhen a field is `true`, prompts of that category are automatically rejected instead of shown to the user.",- "properties": {- "reject": {- "$ref": "#/definitions/RejectConfig"- }- },- "required": [- "reject"- ],- "title": "RejectAskForApproval",- "type": "object"- },- {- "description": "Never ask the user to approve commands. Failures are immediately returned to the model, and never escalated to the user for approval.",- "enum": [- "never"- ],- "type": "string"- }- ]- },- "ContentItem": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "input_text"- ],- "title": "InputTextContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "InputTextContentItem",- "type": "object"- },- {- "properties": {- "image_url": {- "type": "string"- },- "type": {- "enum": [- "input_image"- ],- "title": "InputImageContentItemType",- "type": "string"- }- },- "required": [- "image_url",- "type"- ],- "title": "InputImageContentItem",- "type": "object"- },- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "output_text"- ],- "title": "OutputTextContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "OutputTextContentItem",- "type": "object"- }- ]- },- "FunctionCallOutputBody": {- "anyOf": [- {- "type": "string"- },- {- "items": {- "$ref": "#/definitions/FunctionCallOutputContentItem"- },- "type": "array"- }- ]- },- "FunctionCallOutputContentItem": {- "description": "Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.",- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "input_text"- ],- "title": "InputTextFunctionCallOutputContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "InputTextFunctionCallOutputContentItem",- "type": "object"- },- {- "properties": {- "image_url": {- "type": "string"- },- "type": {- "enum": [- "input_image"- ],- "title": "InputImageFunctionCallOutputContentItemType",- "type": "string"- }- },- "required": [- "image_url",- "type"- ],- "title": "InputImageFunctionCallOutputContentItem",- "type": "object"- }- ]- },- "FunctionCallOutputPayload": {- "description": "The payload we send back to OpenAI when reporting a tool call result.\n\n`body` serializes directly as the wire value for `function_call_output.output`. `success` remains internal metadata for downstream handling.",- "properties": {- "body": {- "$ref": "#/definitions/FunctionCallOutputBody"- },- "success": {- "type": [- "boolean",- "null"- ]- }- },- "required": [- "body"- ],- "type": "object"- },- "GhostCommit": {- "description": "Details of a ghost commit created from a repository state.",- "properties": {- "id": {- "type": "string"- },- "parent": {- "type": [- "string",- "null"- ]- },- "preexisting_untracked_dirs": {- "items": {- "type": "string"- },- "type": "array"- },- "preexisting_untracked_files": {- "items": {- "type": "string"- },- "type": "array"- }- },- "required": [- "id",- "preexisting_untracked_dirs",- "preexisting_untracked_files"- ],- "type": "object"- },- "LocalShellAction": {- "oneOf": [- {- "properties": {- "command": {- "items": {- "type": "string"- },- "type": "array"- },- "env": {- "additionalProperties": {- "type": "string"- },- "type": [- "object",- "null"- ]- },- "timeout_ms": {- "format": "uint64",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- },- "type": {- "enum": [- "exec"- ],- "title": "ExecLocalShellActionType",- "type": "string"- },- "user": {- "type": [- "string",- "null"- ]- },- "working_directory": {- "type": [- "string",- "null"- ]- }- },- "required": [- "command",- "type"- ],- "title": "ExecLocalShellAction",- "type": "object"- }- ]- },- "LocalShellStatus": {- "enum": [- "completed",- "in_progress",- "incomplete"- ],- "type": "string"- },- "MessagePhase": {- "description": "Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as \"phase unknown\" and keep compatibility behavior for legacy models.",- "oneOf": [- {- "description": "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.",- "enum": [- "commentary"- ],- "type": "string"- },- {- "description": "The assistant's terminal answer text for the current turn.",- "enum": [- "final_answer"- ],- "type": "string"- }- ]- },- "NewConversationParams": {- "properties": {- "approvalPolicy": {- "anyOf": [- {- "$ref": "#/definitions/AskForApproval"- },- {- "type": "null"- }- ]- },- "baseInstructions": {- "type": [- "string",- "null"- ]- },- "compactPrompt": {- "type": [- "string",- "null"- ]- },- "config": {- "additionalProperties": true,- "type": [- "object",- "null"- ]- },- "cwd": {- "type": [- "string",- "null"- ]- },- "developerInstructions": {- "type": [- "string",- "null"- ]- },- "includeApplyPatchTool": {- "type": [- "boolean",- "null"- ]- },- "model": {- "type": [- "string",- "null"- ]- },- "modelProvider": {- "type": [- "string",- "null"- ]- },- "profile": {- "type": [- "string",- "null"- ]- },- "sandbox": {- "anyOf": [- {- "$ref": "#/definitions/SandboxMode"- },- {- "type": "null"- }- ]- }- },- "type": "object"- },- "ReasoningItemContent": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "reasoning_text"- ],- "title": "ReasoningTextReasoningItemContentType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "ReasoningTextReasoningItemContent",- "type": "object"- },- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "text"- ],- "title": "TextReasoningItemContentType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "TextReasoningItemContent",- "type": "object"- }- ]- },- "ReasoningItemReasoningSummary": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "summary_text"- ],- "title": "SummaryTextReasoningItemReasoningSummaryType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "SummaryTextReasoningItemReasoningSummary",- "type": "object"- }- ]- },- "RejectConfig": {- "properties": {- "mcp_elicitations": {- "description": "Reject MCP elicitation prompts.",- "type": "boolean"- },- "rules": {- "description": "Reject prompts triggered by execpolicy `prompt` rules.",- "type": "boolean"- },- "sandbox_approval": {- "description": "Reject approval prompts related to sandbox escalation.",- "type": "boolean"- }- },- "required": [- "mcp_elicitations",- "rules",- "sandbox_approval"- ],- "type": "object"- },- "ResponseItem": {- "oneOf": [- {- "properties": {- "content": {- "items": {- "$ref": "#/definitions/ContentItem"- },- "type": "array"- },- "end_turn": {- "type": [- "boolean",- "null"- ]- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "phase": {- "anyOf": [- {- "$ref": "#/definitions/MessagePhase"- },- {- "type": "null"- }- ]- },- "role": {- "type": "string"- },- "type": {- "enum": [- "message"- ],- "title": "MessageResponseItemType",- "type": "string"- }- },- "required": [- "content",- "role",- "type"- ],- "title": "MessageResponseItem",- "type": "object"- },- {- "properties": {- "content": {- "default": null,- "items": {- "$ref": "#/definitions/ReasoningItemContent"- },- "type": [- "array",- "null"- ]- },- "encrypted_content": {- "type": [- "string",- "null"- ]- },- "id": {- "type": "string",- "writeOnly": true- },- "summary": {- "items": {- "$ref": "#/definitions/ReasoningItemReasoningSummary"- },- "type": "array"- },- "type": {- "enum": [- "reasoning"- ],- "title": "ReasoningResponseItemType",- "type": "string"- }- },- "required": [- "id",- "summary",- "type"- ],- "title": "ReasoningResponseItem",- "type": "object"- },- {- "properties": {- "action": {- "$ref": "#/definitions/LocalShellAction"- },- "call_id": {- "description": "Set when using the Responses API.",- "type": [- "string",- "null"- ]- },- "id": {- "description": "Legacy id field retained for compatibility with older payloads.",- "type": [- "string",- "null"- ],- "writeOnly": true- },- "status": {- "$ref": "#/definitions/LocalShellStatus"- },- "type": {- "enum": [- "local_shell_call"- ],- "title": "LocalShellCallResponseItemType",- "type": "string"- }- },- "required": [- "action",- "status",- "type"- ],- "title": "LocalShellCallResponseItem",- "type": "object"- },- {- "properties": {- "arguments": {- "type": "string"- },- "call_id": {- "type": "string"- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "name": {- "type": "string"- },- "type": {- "enum": [- "function_call"- ],- "title": "FunctionCallResponseItemType",- "type": "string"- }- },- "required": [- "arguments",- "call_id",- "name",- "type"- ],- "title": "FunctionCallResponseItem",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "output": {- "$ref": "#/definitions/FunctionCallOutputPayload"- },- "type": {- "enum": [- "function_call_output"- ],- "title": "FunctionCallOutputResponseItemType",- "type": "string"- }- },- "required": [- "call_id",- "output",- "type"- ],- "title": "FunctionCallOutputResponseItem",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "input": {- "type": "string"- },- "name": {- "type": "string"- },- "status": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "custom_tool_call"- ],- "title": "CustomToolCallResponseItemType",- "type": "string"- }- },- "required": [- "call_id",- "input",- "name",- "type"- ],- "title": "CustomToolCallResponseItem",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "output": {- "type": "string"- },- "type": {- "enum": [- "custom_tool_call_output"- ],- "title": "CustomToolCallOutputResponseItemType",- "type": "string"- }- },- "required": [- "call_id",- "output",- "type"- ],- "title": "CustomToolCallOutputResponseItem",- "type": "object"- },- {- "properties": {- "action": {- "anyOf": [- {- "$ref": "#/definitions/WebSearchAction"- },- {- "type": "null"- }- ]- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "status": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "web_search_call"- ],- "title": "WebSearchCallResponseItemType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "WebSearchCallResponseItem",- "type": "object"- },- {- "properties": {- "ghost_commit": {- "$ref": "#/definitions/GhostCommit"- },- "type": {- "enum": [- "ghost_snapshot"- ],- "title": "GhostSnapshotResponseItemType",- "type": "string"- }- },- "required": [- "ghost_commit",- "type"- ],- "title": "GhostSnapshotResponseItem",- "type": "object"- },- {- "properties": {- "encrypted_content": {- "type": "string"- },- "type": {- "enum": [- "compaction"- ],- "title": "CompactionResponseItemType",- "type": "string"- }- },- "required": [- "encrypted_content",- "type"- ],- "title": "CompactionResponseItem",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "other"- ],- "title": "OtherResponseItemType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "OtherResponseItem",- "type": "object"- }- ]- },- "SandboxMode": {- "enum": [- "read-only",- "workspace-write",- "danger-full-access"- ],- "type": "string"- },- "ThreadId": {- "type": "string"- },- "WebSearchAction": {- "oneOf": [- {- "properties": {- "queries": {- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "query": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "search"- ],- "title": "SearchWebSearchActionType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "SearchWebSearchAction",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "open_page"- ],- "title": "OpenPageWebSearchActionType",- "type": "string"- },- "url": {- "type": [- "string",- "null"- ]- }- },- "required": [- "type"- ],- "title": "OpenPageWebSearchAction",- "type": "object"- },- {- "properties": {- "pattern": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "find_in_page"- ],- "title": "FindInPageWebSearchActionType",- "type": "string"- },- "url": {- "type": [- "string",- "null"- ]- }- },- "required": [- "type"- ],- "title": "FindInPageWebSearchAction",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "other"- ],- "title": "OtherWebSearchActionType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "OtherWebSearchAction",- "type": "object"- }- ]- }- },- "properties": {- "conversationId": {- "anyOf": [- {- "$ref": "#/definitions/ThreadId"- },- {- "type": "null"- }- ]- },- "history": {- "items": {- "$ref": "#/definitions/ResponseItem"- },- "type": [- "array",- "null"- ]- },- "overrides": {- "anyOf": [- {- "$ref": "#/definitions/NewConversationParams"- },- {- "type": "null"- }- ]- },- "path": {- "type": [- "string",- "null"- ]- }- },- "title": "ResumeConversationParams",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ResumeConversationResponse.json b/codex-rs/app-server-protocol/schema/json/v1/ResumeConversationResponse.jsondeleted file mode 100644index 3ce7593460..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/ResumeConversationResponse.json+++ /dev/null@@ -1,5776 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "AbsolutePathBuf": {- "description": "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",- "type": "string"- },- "AgentMessageContent": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "Text"- ],- "title": "TextAgentMessageContentType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "TextAgentMessageContent",- "type": "object"- }- ]- },- "AgentStatus": {- "description": "Agent lifecycle status, derived from emitted events.",- "oneOf": [- {- "description": "Agent is waiting for initialization.",- "enum": [- "pending_init"- ],- "type": "string"- },- {- "description": "Agent is currently running.",- "enum": [- "running"- ],- "type": "string"- },- {- "additionalProperties": false,- "description": "Agent is done. Contains the final assistant message.",- "properties": {- "completed": {- "type": [- "string",- "null"- ]- }- },- "required": [- "completed"- ],- "title": "CompletedAgentStatus",- "type": "object"- },- {- "additionalProperties": false,- "description": "Agent encountered an error.",- "properties": {- "errored": {- "type": "string"- }- },- "required": [- "errored"- ],- "title": "ErroredAgentStatus",- "type": "object"- },- {- "description": "Agent has been shutdown.",- "enum": [- "shutdown"- ],- "type": "string"- },- {- "description": "Agent is not found.",- "enum": [- "not_found"- ],- "type": "string"- }- ]- },- "AskForApproval": {- "description": "Determines the conditions under which the user is consulted to approve running the command proposed by Codex.",- "oneOf": [- {- "description": "Under this policy, only \"known safe\" commands—as determined by `is_safe_command()`—that **only read files** are auto‑approved. Everything else will ask the user to approve.",- "enum": [- "untrusted"- ],- "type": "string"- },- {- "description": "DEPRECATED: *All* commands are auto‑approved, but they are expected to run inside a sandbox where network access is disabled and writes are confined to a specific set of paths. If the command fails, it will be escalated to the user to approve execution without a sandbox. Prefer `OnRequest` for interactive runs or `Never` for non-interactive runs.",- "enum": [- "on-failure"- ],- "type": "string"- },- {- "description": "The model decides when to ask the user for approval.",- "enum": [- "on-request"- ],- "type": "string"- },- {- "additionalProperties": false,- "description": "Fine-grained rejection controls for approval prompts.\n\nWhen a field is `true`, prompts of that category are automatically rejected instead of shown to the user.",- "properties": {- "reject": {- "$ref": "#/definitions/RejectConfig"- }- },- "required": [- "reject"- ],- "title": "RejectAskForApproval",- "type": "object"- },- {- "description": "Never ask the user to approve commands. Failures are immediately returned to the model, and never escalated to the user for approval.",- "enum": [- "never"- ],- "type": "string"- }- ]- },- "ByteRange": {- "properties": {- "end": {- "description": "End byte offset (exclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "start": {- "description": "Start byte offset (inclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "end",- "start"- ],- "type": "object"- },- "CallToolResult": {- "description": "The server's response to a tool call.",- "properties": {- "_meta": true,- "content": {- "items": true,- "type": "array"- },- "isError": {- "type": [- "boolean",- "null"- ]- },- "structuredContent": true- },- "required": [- "content"- ],- "type": "object"- },- "CodexErrorInfo": {- "description": "Codex errors that we expose to clients.",- "oneOf": [- {- "enum": [- "context_window_exceeded",- "usage_limit_exceeded",- "server_overloaded",- "internal_server_error",- "unauthorized",- "bad_request",- "sandbox_error",- "thread_rollback_failed",- "other"- ],- "type": "string"- },- {- "additionalProperties": false,- "properties": {- "http_connection_failed": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "http_connection_failed"- ],- "title": "HttpConnectionFailedCodexErrorInfo",- "type": "object"- },- {- "additionalProperties": false,- "description": "Failed to connect to the response SSE stream.",- "properties": {- "response_stream_connection_failed": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "response_stream_connection_failed"- ],- "title": "ResponseStreamConnectionFailedCodexErrorInfo",- "type": "object"- },- {- "additionalProperties": false,- "description": "The response SSE stream disconnected in the middle of a turnbefore completion.",- "properties": {- "response_stream_disconnected": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "response_stream_disconnected"- ],- "title": "ResponseStreamDisconnectedCodexErrorInfo",- "type": "object"- },- {- "additionalProperties": false,- "description": "Reached the retry limit for responses.",- "properties": {- "response_too_many_failed_attempts": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "response_too_many_failed_attempts"- ],- "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",- "type": "object"- }- ]- },- "CollabAgentRef": {- "properties": {- "agent_nickname": {- "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "agent_role": {- "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver/new agent."- }- },- "required": [- "thread_id"- ],- "type": "object"- },- "CollabAgentStatusEntry": {- "properties": {- "agent_nickname": {- "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "agent_role": {- "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the agent."- },- "thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver/new agent."- }- },- "required": [- "status",- "thread_id"- ],- "type": "object"- },- "ContentItem": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "input_text"- ],- "title": "InputTextContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "InputTextContentItem",- "type": "object"- },- {- "properties": {- "image_url": {- "type": "string"- },- "type": {- "enum": [- "input_image"- ],- "title": "InputImageContentItemType",- "type": "string"- }- },- "required": [- "image_url",- "type"- ],- "title": "InputImageContentItem",- "type": "object"- },- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "output_text"- ],- "title": "OutputTextContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "OutputTextContentItem",- "type": "object"- }- ]- },- "CreditsSnapshot": {- "properties": {- "balance": {- "type": [- "string",- "null"- ]- },- "has_credits": {- "type": "boolean"- },- "unlimited": {- "type": "boolean"- }- },- "required": [- "has_credits",- "unlimited"- ],- "type": "object"- },- "CustomPrompt": {- "properties": {- "argument_hint": {- "type": [- "string",- "null"- ]- },- "content": {- "type": "string"- },- "description": {- "type": [- "string",- "null"- ]- },- "name": {- "type": "string"- },- "path": {- "type": "string"- }- },- "required": [- "content",- "name",- "path"- ],- "type": "object"- },- "Duration": {- "properties": {- "nanos": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "secs": {- "format": "uint64",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "nanos",- "secs"- ],- "type": "object"- },- "EventMsg": {- "description": "Response event from the agent NOTE: Make sure none of these values have optional types, as it will mess up the extension code-gen.",- "oneOf": [- {- "description": "Error while executing a submission",- "properties": {- "codex_error_info": {- "anyOf": [- {- "$ref": "#/definitions/CodexErrorInfo"- },- {- "type": "null"- }- ],- "default": null- },- "message": {- "type": "string"- },- "type": {- "enum": [- "error"- ],- "title": "ErrorEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "ErrorEventMsg",- "type": "object"- },- {- "description": "Warning issued while processing a submission. Unlike `Error`, this indicates the turn continued but the user should still be notified.",- "properties": {- "message": {- "type": "string"- },- "type": {- "enum": [- "warning"- ],- "title": "WarningEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "WarningEventMsg",- "type": "object"- },- {- "description": "Realtime conversation lifecycle start event.",- "properties": {- "session_id": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "realtime_conversation_started"- ],- "title": "RealtimeConversationStartedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "RealtimeConversationStartedEventMsg",- "type": "object"- },- {- "description": "Realtime conversation streaming payload event.",- "properties": {- "payload": {- "$ref": "#/definitions/RealtimeEvent"- },- "type": {- "enum": [- "realtime_conversation_realtime"- ],- "title": "RealtimeConversationRealtimeEventMsgType",- "type": "string"- }- },- "required": [- "payload",- "type"- ],- "title": "RealtimeConversationRealtimeEventMsg",- "type": "object"- },- {- "description": "Realtime conversation lifecycle close event.",- "properties": {- "reason": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "realtime_conversation_closed"- ],- "title": "RealtimeConversationClosedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "RealtimeConversationClosedEventMsg",- "type": "object"- },- {- "description": "Model routing changed from the requested model to a different model.",- "properties": {- "from_model": {- "type": "string"- },- "reason": {- "$ref": "#/definitions/ModelRerouteReason"- },- "to_model": {- "type": "string"- },- "type": {- "enum": [- "model_reroute"- ],- "title": "ModelRerouteEventMsgType",- "type": "string"- }- },- "required": [- "from_model",- "reason",- "to_model",- "type"- ],- "title": "ModelRerouteEventMsg",- "type": "object"- },- {- "description": "Conversation history was compacted (either automatically or manually).",- "properties": {- "type": {- "enum": [- "context_compacted"- ],- "title": "ContextCompactedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ContextCompactedEventMsg",- "type": "object"- },- {- "description": "Conversation history was rolled back by dropping the last N user turns.",- "properties": {- "num_turns": {- "description": "Number of user turns that were removed from context.",- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "type": {- "enum": [- "thread_rolled_back"- ],- "title": "ThreadRolledBackEventMsgType",- "type": "string"- }- },- "required": [- "num_turns",- "type"- ],- "title": "ThreadRolledBackEventMsg",- "type": "object"- },- {- "description": "Agent has started a turn. v1 wire format uses `task_started`; accept `turn_started` for v2 interop.",- "properties": {- "collaboration_mode_kind": {- "allOf": [- {- "$ref": "#/definitions/ModeKind"- }- ],- "default": "default"- },- "model_context_window": {- "format": "int64",- "type": [- "integer",- "null"- ]- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "task_started"- ],- "title": "TaskStartedEventMsgType",- "type": "string"- }- },- "required": [- "turn_id",- "type"- ],- "title": "TaskStartedEventMsg",- "type": "object"- },- {- "description": "Agent has completed all actions. v1 wire format uses `task_complete`; accept `turn_complete` for v2 interop.",- "properties": {- "last_agent_message": {- "type": [- "string",- "null"- ]- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "task_complete"- ],- "title": "TaskCompleteEventMsgType",- "type": "string"- }- },- "required": [- "turn_id",- "type"- ],- "title": "TaskCompleteEventMsg",- "type": "object"- },- {- "description": "Usage update for the current session, including totals and last turn. Optional means unknown — UIs should not display when `None`.",- "properties": {- "info": {- "anyOf": [- {- "$ref": "#/definitions/TokenUsageInfo"- },- {- "type": "null"- }- ]- },- "rate_limits": {- "anyOf": [- {- "$ref": "#/definitions/RateLimitSnapshot"- },- {- "type": "null"- }- ]- },- "type": {- "enum": [- "token_count"- ],- "title": "TokenCountEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "TokenCountEventMsg",- "type": "object"- },- {- "description": "Agent text output message",- "properties": {- "message": {- "type": "string"- },- "phase": {- "anyOf": [- {- "$ref": "#/definitions/MessagePhase"- },- {- "type": "null"- }- ],- "default": null- },- "type": {- "enum": [- "agent_message"- ],- "title": "AgentMessageEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "AgentMessageEventMsg",- "type": "object"- },- {- "description": "User/system input message (what was sent to the model)",- "properties": {- "images": {- "description": "Image URLs sourced from `UserInput::Image`. These are safe to replay in legacy UI history events and correspond to images sent to the model.",- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "local_images": {- "default": [],- "description": "Local file paths sourced from `UserInput::LocalImage`. These are kept so the UI can reattach images when editing history, and should not be sent to the model or treated as API-ready URLs.",- "items": {- "type": "string"- },- "type": "array"- },- "message": {- "type": "string"- },- "text_elements": {- "default": [],- "description": "UI-defined spans within `message` used to render or persist special elements.",- "items": {- "$ref": "#/definitions/TextElement"- },- "type": "array"- },- "type": {- "enum": [- "user_message"- ],- "title": "UserMessageEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "UserMessageEventMsg",- "type": "object"- },- {- "description": "Agent text output delta message",- "properties": {- "delta": {- "type": "string"- },- "type": {- "enum": [- "agent_message_delta"- ],- "title": "AgentMessageDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "type"- ],- "title": "AgentMessageDeltaEventMsg",- "type": "object"- },- {- "description": "Reasoning event from agent.",- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "agent_reasoning"- ],- "title": "AgentReasoningEventMsgType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "AgentReasoningEventMsg",- "type": "object"- },- {- "description": "Agent reasoning delta event from agent.",- "properties": {- "delta": {- "type": "string"- },- "type": {- "enum": [- "agent_reasoning_delta"- ],- "title": "AgentReasoningDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "type"- ],- "title": "AgentReasoningDeltaEventMsg",- "type": "object"- },- {- "description": "Raw chain-of-thought from agent.",- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "agent_reasoning_raw_content"- ],- "title": "AgentReasoningRawContentEventMsgType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "AgentReasoningRawContentEventMsg",- "type": "object"- },- {- "description": "Agent reasoning content delta event from agent.",- "properties": {- "delta": {- "type": "string"- },- "type": {- "enum": [- "agent_reasoning_raw_content_delta"- ],- "title": "AgentReasoningRawContentDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "type"- ],- "title": "AgentReasoningRawContentDeltaEventMsg",- "type": "object"- },- {- "description": "Signaled when the model begins a new reasoning summary section (e.g., a new titled block).",- "properties": {- "item_id": {- "default": "",- "type": "string"- },- "summary_index": {- "default": 0,- "format": "int64",- "type": "integer"- },- "type": {- "enum": [- "agent_reasoning_section_break"- ],- "title": "AgentReasoningSectionBreakEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "AgentReasoningSectionBreakEventMsg",- "type": "object"- },- {- "description": "Ack the client's configure message.",- "properties": {- "approval_policy": {- "allOf": [- {- "$ref": "#/definitions/AskForApproval"- }- ],- "description": "When to escalate for approval for execution"- },- "cwd": {- "description": "Working directory that should be treated as the *root* of the session.",- "type": "string"- },- "forked_from_id": {- "anyOf": [- {- "$ref": "#/definitions/ThreadId"- },- {- "type": "null"- }- ]- },- "history_entry_count": {- "description": "Current number of entries in the history log.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "history_log_id": {- "description": "Identifier of the history log file (inode on Unix, 0 otherwise).",- "format": "uint64",- "minimum": 0.0,- "type": "integer"- },- "initial_messages": {- "description": "Optional initial messages (as events) for resumed sessions. When present, UIs can use these to seed the history.",- "items": {- "$ref": "#/definitions/EventMsg"- },- "type": [- "array",- "null"- ]- },- "model": {- "description": "Tell the client what model is being queried.",- "type": "string"- },- "model_provider_id": {- "type": "string"- },- "network_proxy": {- "anyOf": [- {- "$ref": "#/definitions/SessionNetworkProxyRuntime"- },- {- "type": "null"- }- ],- "description": "Runtime proxy bind addresses, when the managed proxy was started for this session."- },- "reasoning_effort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ],- "description": "The effort the model is putting into reasoning about the user's request."- },- "rollout_path": {- "description": "Path in which the rollout is stored. Can be `None` for ephemeral threads",- "type": [- "string",- "null"- ]- },- "sandbox_policy": {- "allOf": [- {- "$ref": "#/definitions/SandboxPolicy"- }- ],- "description": "How to sandbox commands executed in the system"- },- "session_id": {- "$ref": "#/definitions/ThreadId"- },- "thread_name": {- "description": "Optional user-facing thread name (may be unset).",- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "session_configured"- ],- "title": "SessionConfiguredEventMsgType",- "type": "string"- }- },- "required": [- "approval_policy",- "cwd",- "history_entry_count",- "history_log_id",- "model",- "model_provider_id",- "sandbox_policy",- "session_id",- "type"- ],- "title": "SessionConfiguredEventMsg",- "type": "object"- },- {- "description": "Updated session metadata (e.g., thread name changes).",- "properties": {- "thread_id": {- "$ref": "#/definitions/ThreadId"- },- "thread_name": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "thread_name_updated"- ],- "title": "ThreadNameUpdatedEventMsgType",- "type": "string"- }- },- "required": [- "thread_id",- "type"- ],- "title": "ThreadNameUpdatedEventMsg",- "type": "object"- },- {- "description": "Incremental MCP startup progress updates.",- "properties": {- "server": {- "description": "Server name being started.",- "type": "string"- },- "status": {- "allOf": [- {- "$ref": "#/definitions/McpStartupStatus"- }- ],- "description": "Current startup status."- },- "type": {- "enum": [- "mcp_startup_update"- ],- "title": "McpStartupUpdateEventMsgType",- "type": "string"- }- },- "required": [- "server",- "status",- "type"- ],- "title": "McpStartupUpdateEventMsg",- "type": "object"- },- {- "description": "Aggregate MCP startup completion summary.",- "properties": {- "cancelled": {- "items": {- "type": "string"- },- "type": "array"- },- "failed": {- "items": {- "$ref": "#/definitions/McpStartupFailure"- },- "type": "array"- },- "ready": {- "items": {- "type": "string"- },- "type": "array"- },- "type": {- "enum": [- "mcp_startup_complete"- ],- "title": "McpStartupCompleteEventMsgType",- "type": "string"- }- },- "required": [- "cancelled",- "failed",- "ready",- "type"- ],- "title": "McpStartupCompleteEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Identifier so this can be paired with the McpToolCallEnd event.",- "type": "string"- },- "invocation": {- "$ref": "#/definitions/McpInvocation"- },- "type": {- "enum": [- "mcp_tool_call_begin"- ],- "title": "McpToolCallBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "invocation",- "type"- ],- "title": "McpToolCallBeginEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Identifier for the corresponding McpToolCallBegin that finished.",- "type": "string"- },- "duration": {- "$ref": "#/definitions/Duration"- },- "invocation": {- "$ref": "#/definitions/McpInvocation"- },- "result": {- "allOf": [- {- "$ref": "#/definitions/Result_of_CallToolResult_or_String"- }- ],- "description": "Result of the tool call. Note this could be an error."- },- "type": {- "enum": [- "mcp_tool_call_end"- ],- "title": "McpToolCallEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "duration",- "invocation",- "result",- "type"- ],- "title": "McpToolCallEndEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "type": {- "enum": [- "web_search_begin"- ],- "title": "WebSearchBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "type"- ],- "title": "WebSearchBeginEventMsg",- "type": "object"- },- {- "properties": {- "action": {- "$ref": "#/definitions/WebSearchAction"- },- "call_id": {- "type": "string"- },- "query": {- "type": "string"- },- "type": {- "enum": [- "web_search_end"- ],- "title": "WebSearchEndEventMsgType",- "type": "string"- }- },- "required": [- "action",- "call_id",- "query",- "type"- ],- "title": "WebSearchEndEventMsg",- "type": "object"- },- {- "description": "Notification that the server is about to execute a command.",- "properties": {- "call_id": {- "description": "Identifier so this can be paired with the ExecCommandEnd event.",- "type": "string"- },- "command": {- "description": "The command to be executed.",- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "description": "The command's working directory if not the default cwd for the agent.",- "type": "string"- },- "interaction_input": {- "description": "Raw input sent to a unified exec session (if this is an interaction event).",- "type": [- "string",- "null"- ]- },- "parsed_cmd": {- "items": {- "$ref": "#/definitions/ParsedCommand"- },- "type": "array"- },- "process_id": {- "description": "Identifier for the underlying PTY process (when available).",- "type": [- "string",- "null"- ]- },- "source": {- "allOf": [- {- "$ref": "#/definitions/ExecCommandSource"- }- ],- "default": "agent",- "description": "Where the command originated. Defaults to Agent for backward compatibility."- },- "turn_id": {- "description": "Turn ID that this command belongs to.",- "type": "string"- },- "type": {- "enum": [- "exec_command_begin"- ],- "title": "ExecCommandBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "command",- "cwd",- "parsed_cmd",- "turn_id",- "type"- ],- "title": "ExecCommandBeginEventMsg",- "type": "object"- },- {- "description": "Incremental chunk of output from a running command.",- "properties": {- "call_id": {- "description": "Identifier for the ExecCommandBegin that produced this chunk.",- "type": "string"- },- "chunk": {- "description": "Raw bytes from the stream (may not be valid UTF-8).",- "type": "string"- },- "stream": {- "allOf": [- {- "$ref": "#/definitions/ExecOutputStream"- }- ],- "description": "Which stream produced this chunk."- },- "type": {- "enum": [- "exec_command_output_delta"- ],- "title": "ExecCommandOutputDeltaEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "chunk",- "stream",- "type"- ],- "title": "ExecCommandOutputDeltaEventMsg",- "type": "object"- },- {- "description": "Terminal interaction for an in-progress command (stdin sent and stdout observed).",- "properties": {- "call_id": {- "description": "Identifier for the ExecCommandBegin that produced this chunk.",- "type": "string"- },- "process_id": {- "description": "Process id associated with the running command.",- "type": "string"- },- "stdin": {- "description": "Stdin sent to the running session.",- "type": "string"- },- "type": {- "enum": [- "terminal_interaction"- ],- "title": "TerminalInteractionEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "process_id",- "stdin",- "type"- ],- "title": "TerminalInteractionEventMsg",- "type": "object"- },- {- "properties": {- "aggregated_output": {- "default": "",- "description": "Captured aggregated output",- "type": "string"- },- "call_id": {- "description": "Identifier for the ExecCommandBegin that finished.",- "type": "string"- },- "command": {- "description": "The command that was executed.",- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "description": "The command's working directory if not the default cwd for the agent.",- "type": "string"- },- "duration": {- "allOf": [- {- "$ref": "#/definitions/Duration"- }- ],- "description": "The duration of the command execution."- },- "exit_code": {- "description": "The command's exit code.",- "format": "int32",- "type": "integer"- },- "formatted_output": {- "description": "Formatted output from the command, as seen by the model.",- "type": "string"- },- "interaction_input": {- "description": "Raw input sent to a unified exec session (if this is an interaction event).",- "type": [- "string",- "null"- ]- },- "parsed_cmd": {- "items": {- "$ref": "#/definitions/ParsedCommand"- },- "type": "array"- },- "process_id": {- "description": "Identifier for the underlying PTY process (when available).",- "type": [- "string",- "null"- ]- },- "source": {- "allOf": [- {- "$ref": "#/definitions/ExecCommandSource"- }- ],- "default": "agent",- "description": "Where the command originated. Defaults to Agent for backward compatibility."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/ExecCommandStatus"- }- ],- "description": "Completion status for this command execution."- },- "stderr": {- "description": "Captured stderr",- "type": "string"- },- "stdout": {- "description": "Captured stdout",- "type": "string"- },- "turn_id": {- "description": "Turn ID that this command belongs to.",- "type": "string"- },- "type": {- "enum": [- "exec_command_end"- ],- "title": "ExecCommandEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "command",- "cwd",- "duration",- "exit_code",- "formatted_output",- "parsed_cmd",- "status",- "stderr",- "stdout",- "turn_id",- "type"- ],- "title": "ExecCommandEndEventMsg",- "type": "object"- },- {- "description": "Notification that the agent attached a local image via the view_image tool.",- "properties": {- "call_id": {- "description": "Identifier for the originating tool call.",- "type": "string"- },- "path": {- "description": "Local filesystem path provided to the tool.",- "type": "string"- },- "type": {- "enum": [- "view_image_tool_call"- ],- "title": "ViewImageToolCallEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "path",- "type"- ],- "title": "ViewImageToolCallEventMsg",- "type": "object"- },- {- "properties": {- "approval_id": {- "description": "Identifier for this specific approval callback.\n\nWhen absent, the approval is for the command item itself (`call_id`). This is present for subcommand approvals (via execve intercept).",- "type": [- "string",- "null"- ]- },- "call_id": {- "description": "Identifier for the associated command execution item.",- "type": "string"- },- "command": {- "description": "The command to be executed.",- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "description": "The command's working directory.",- "type": "string"- },- "network_approval_context": {- "anyOf": [- {- "$ref": "#/definitions/NetworkApprovalContext"- },- {- "type": "null"- }- ],- "description": "Optional network context for a blocked request that can be approved."- },- "parsed_cmd": {- "items": {- "$ref": "#/definitions/ParsedCommand"- },- "type": "array"- },- "proposed_execpolicy_amendment": {- "description": "Proposed execpolicy amendment that can be applied to allow future runs.",- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "reason": {- "description": "Optional human-readable reason for the approval (e.g. retry without sandbox).",- "type": [- "string",- "null"- ]- },- "turn_id": {- "default": "",- "description": "Turn ID that this command belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "exec_approval_request"- ],- "title": "ExecApprovalRequestEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "command",- "cwd",- "parsed_cmd",- "type"- ],- "title": "ExecApprovalRequestEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Responses API call id for the associated tool call, if available.",- "type": "string"- },- "questions": {- "items": {- "$ref": "#/definitions/RequestUserInputQuestion"- },- "type": "array"- },- "turn_id": {- "default": "",- "description": "Turn ID that this request belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "request_user_input"- ],- "title": "RequestUserInputEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "questions",- "type"- ],- "title": "RequestUserInputEventMsg",- "type": "object"- },- {- "properties": {- "arguments": true,- "callId": {- "type": "string"- },- "tool": {- "type": "string"- },- "turnId": {- "type": "string"- },- "type": {- "enum": [- "dynamic_tool_call_request"- ],- "title": "DynamicToolCallRequestEventMsgType",- "type": "string"- }- },- "required": [- "arguments",- "callId",- "tool",- "turnId",- "type"- ],- "title": "DynamicToolCallRequestEventMsg",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "message": {- "type": "string"- },- "server_name": {- "type": "string"- },- "type": {- "enum": [- "elicitation_request"- ],- "title": "ElicitationRequestEventMsgType",- "type": "string"- }- },- "required": [- "id",- "message",- "server_name",- "type"- ],- "title": "ElicitationRequestEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Responses API call id for the associated patch apply call, if available.",- "type": "string"- },- "changes": {- "additionalProperties": {- "$ref": "#/definitions/FileChange"- },- "type": "object"- },- "grant_root": {- "description": "When set, the agent is asking the user to allow writes under this root for the remainder of the session.",- "type": [- "string",- "null"- ]- },- "reason": {- "description": "Optional explanatory reason (e.g. request for extra write access).",- "type": [- "string",- "null"- ]- },- "turn_id": {- "default": "",- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility with older senders.",- "type": "string"- },- "type": {- "enum": [- "apply_patch_approval_request"- ],- "title": "ApplyPatchApprovalRequestEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "changes",- "type"- ],- "title": "ApplyPatchApprovalRequestEventMsg",- "type": "object"- },- {- "description": "Notification advising the user that something they are using has been deprecated and should be phased out.",- "properties": {- "details": {- "description": "Optional extra guidance, such as migration steps or rationale.",- "type": [- "string",- "null"- ]- },- "summary": {- "description": "Concise summary of what is deprecated.",- "type": "string"- },- "type": {- "enum": [- "deprecation_notice"- ],- "title": "DeprecationNoticeEventMsgType",- "type": "string"- }- },- "required": [- "summary",- "type"- ],- "title": "DeprecationNoticeEventMsg",- "type": "object"- },- {- "properties": {- "message": {- "type": "string"- },- "type": {- "enum": [- "background_event"- ],- "title": "BackgroundEventEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "BackgroundEventEventMsg",- "type": "object"- },- {- "properties": {- "message": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "undo_started"- ],- "title": "UndoStartedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "UndoStartedEventMsg",- "type": "object"- },- {- "properties": {- "message": {- "type": [- "string",- "null"- ]- },- "success": {- "type": "boolean"- },- "type": {- "enum": [- "undo_completed"- ],- "title": "UndoCompletedEventMsgType",- "type": "string"- }- },- "required": [- "success",- "type"- ],- "title": "UndoCompletedEventMsg",- "type": "object"- },- {- "description": "Notification that a model stream experienced an error or disconnect and the system is handling it (e.g., retrying with backoff).",- "properties": {- "additional_details": {- "default": null,- "description": "Optional details about the underlying stream failure (often the same human-readable message that is surfaced as the terminal error if retries are exhausted).",- "type": [- "string",- "null"- ]- },- "codex_error_info": {- "anyOf": [- {- "$ref": "#/definitions/CodexErrorInfo"- },- {- "type": "null"- }- ],- "default": null- },- "message": {- "type": "string"- },- "type": {- "enum": [- "stream_error"- ],- "title": "StreamErrorEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "StreamErrorEventMsg",- "type": "object"- },- {- "description": "Notification that the agent is about to apply a code patch. Mirrors `ExecCommandBegin` so front‑ends can show progress indicators.",- "properties": {- "auto_approved": {- "description": "If true, there was no ApplyPatchApprovalRequest for this patch.",- "type": "boolean"- },- "call_id": {- "description": "Identifier so this can be paired with the PatchApplyEnd event.",- "type": "string"- },- "changes": {- "additionalProperties": {- "$ref": "#/definitions/FileChange"- },- "description": "The changes to be applied.",- "type": "object"- },- "turn_id": {- "default": "",- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "patch_apply_begin"- ],- "title": "PatchApplyBeginEventMsgType",- "type": "string"- }- },- "required": [- "auto_approved",- "call_id",- "changes",- "type"- ],- "title": "PatchApplyBeginEventMsg",- "type": "object"- },- {- "description": "Notification that a patch application has finished.",- "properties": {- "call_id": {- "description": "Identifier for the PatchApplyBegin that finished.",- "type": "string"- },- "changes": {- "additionalProperties": {- "$ref": "#/definitions/FileChange"- },- "default": {},- "description": "The changes that were applied (mirrors PatchApplyBeginEvent::changes).",- "type": "object"- },- "status": {- "allOf": [- {- "$ref": "#/definitions/PatchApplyStatus"- }- ],- "description": "Completion status for this patch application."- },- "stderr": {- "description": "Captured stderr (parser errors, IO failures, etc.).",- "type": "string"- },- "stdout": {- "description": "Captured stdout (summary printed by apply_patch).",- "type": "string"- },- "success": {- "description": "Whether the patch was applied successfully.",- "type": "boolean"- },- "turn_id": {- "default": "",- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "patch_apply_end"- ],- "title": "PatchApplyEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "status",- "stderr",- "stdout",- "success",- "type"- ],- "title": "PatchApplyEndEventMsg",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "turn_diff"- ],- "title": "TurnDiffEventMsgType",- "type": "string"- },- "unified_diff": {- "type": "string"- }- },- "required": [- "type",- "unified_diff"- ],- "title": "TurnDiffEventMsg",- "type": "object"- },- {- "description": "Response to GetHistoryEntryRequest.",- "properties": {- "entry": {- "anyOf": [- {- "$ref": "#/definitions/HistoryEntry"- },- {- "type": "null"- }- ],- "description": "The entry at the requested offset, if available and parseable."- },- "log_id": {- "format": "uint64",- "minimum": 0.0,- "type": "integer"- },- "offset": {- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "type": {- "enum": [- "get_history_entry_response"- ],- "title": "GetHistoryEntryResponseEventMsgType",- "type": "string"- }- },- "required": [- "log_id",- "offset",- "type"- ],- "title": "GetHistoryEntryResponseEventMsg",- "type": "object"- },- {- "description": "List of MCP tools available to the agent.",- "properties": {- "auth_statuses": {- "additionalProperties": {- "$ref": "#/definitions/McpAuthStatus"- },- "description": "Authentication status for each configured MCP server.",- "type": "object"- },- "resource_templates": {- "additionalProperties": {- "items": {- "$ref": "#/definitions/ResourceTemplate"- },- "type": "array"- },- "description": "Known resource templates grouped by server name.",- "type": "object"- },- "resources": {- "additionalProperties": {- "items": {- "$ref": "#/definitions/Resource"- },- "type": "array"- },- "description": "Known resources grouped by server name.",- "type": "object"- },- "tools": {- "additionalProperties": {- "$ref": "#/definitions/Tool"- },- "description": "Fully qualified tool name -> tool definition.",- "type": "object"- },- "type": {- "enum": [- "mcp_list_tools_response"- ],- "title": "McpListToolsResponseEventMsgType",- "type": "string"- }- },- "required": [- "auth_statuses",- "resource_templates",- "resources",- "tools",- "type"- ],- "title": "McpListToolsResponseEventMsg",- "type": "object"- },- {- "description": "List of custom prompts available to the agent.",- "properties": {- "custom_prompts": {- "items": {- "$ref": "#/definitions/CustomPrompt"- },- "type": "array"- },- "type": {- "enum": [- "list_custom_prompts_response"- ],- "title": "ListCustomPromptsResponseEventMsgType",- "type": "string"- }- },- "required": [- "custom_prompts",- "type"- ],- "title": "ListCustomPromptsResponseEventMsg",- "type": "object"- },- {- "description": "List of skills available to the agent.",- "properties": {- "skills": {- "items": {- "$ref": "#/definitions/SkillsListEntry"- },- "type": "array"- },- "type": {- "enum": [- "list_skills_response"- ],- "title": "ListSkillsResponseEventMsgType",- "type": "string"- }- },- "required": [- "skills",- "type"- ],- "title": "ListSkillsResponseEventMsg",- "type": "object"- },- {- "description": "List of remote skills available to the agent.",- "properties": {- "skills": {- "items": {- "$ref": "#/definitions/RemoteSkillSummary"- },- "type": "array"- },- "type": {- "enum": [- "list_remote_skills_response"- ],- "title": "ListRemoteSkillsResponseEventMsgType",- "type": "string"- }- },- "required": [- "skills",- "type"- ],- "title": "ListRemoteSkillsResponseEventMsg",- "type": "object"- },- {- "description": "Remote skill downloaded to local cache.",- "properties": {- "id": {- "type": "string"- },- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "type": {- "enum": [- "remote_skill_downloaded"- ],- "title": "RemoteSkillDownloadedEventMsgType",- "type": "string"- }- },- "required": [- "id",- "name",- "path",- "type"- ],- "title": "RemoteSkillDownloadedEventMsg",- "type": "object"- },- {- "description": "Notification that skill data may have been updated and clients may want to reload.",- "properties": {- "type": {- "enum": [- "skills_update_available"- ],- "title": "SkillsUpdateAvailableEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "SkillsUpdateAvailableEventMsg",- "type": "object"- },- {- "properties": {- "explanation": {- "default": null,- "description": "Arguments for the `update_plan` todo/checklist tool (not plan mode).",- "type": [- "string",- "null"- ]- },- "plan": {- "items": {- "$ref": "#/definitions/PlanItemArg"- },- "type": "array"- },- "type": {- "enum": [- "plan_update"- ],- "title": "PlanUpdateEventMsgType",- "type": "string"- }- },- "required": [- "plan",- "type"- ],- "title": "PlanUpdateEventMsg",- "type": "object"- },- {- "properties": {- "reason": {- "$ref": "#/definitions/TurnAbortReason"- },- "turn_id": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "turn_aborted"- ],- "title": "TurnAbortedEventMsgType",- "type": "string"- }- },- "required": [- "reason",- "type"- ],- "title": "TurnAbortedEventMsg",- "type": "object"- },- {- "description": "Notification that the agent is shutting down.",- "properties": {- "type": {- "enum": [- "shutdown_complete"- ],- "title": "ShutdownCompleteEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ShutdownCompleteEventMsg",- "type": "object"- },- {- "description": "Entered review mode.",- "properties": {- "target": {- "$ref": "#/definitions/ReviewTarget"- },- "type": {- "enum": [- "entered_review_mode"- ],- "title": "EnteredReviewModeEventMsgType",- "type": "string"- },- "user_facing_hint": {- "type": [- "string",- "null"- ]- }- },- "required": [- "target",- "type"- ],- "title": "EnteredReviewModeEventMsg",- "type": "object"- },- {- "description": "Exited review mode with an optional final result to apply.",- "properties": {- "review_output": {- "anyOf": [- {- "$ref": "#/definitions/ReviewOutputEvent"- },- {- "type": "null"- }- ]- },- "type": {- "enum": [- "exited_review_mode"- ],- "title": "ExitedReviewModeEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ExitedReviewModeEventMsg",- "type": "object"- },- {- "properties": {- "item": {- "$ref": "#/definitions/ResponseItem"- },- "type": {- "enum": [- "raw_response_item"- ],- "title": "RawResponseItemEventMsgType",- "type": "string"- }- },- "required": [- "item",- "type"- ],- "title": "RawResponseItemEventMsg",- "type": "object"- },- {- "properties": {- "item": {- "$ref": "#/definitions/TurnItem"- },- "thread_id": {- "$ref": "#/definitions/ThreadId"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "item_started"- ],- "title": "ItemStartedEventMsgType",- "type": "string"- }- },- "required": [- "item",- "thread_id",- "turn_id",- "type"- ],- "title": "ItemStartedEventMsg",- "type": "object"- },- {- "properties": {- "item": {- "$ref": "#/definitions/TurnItem"- },- "thread_id": {- "$ref": "#/definitions/ThreadId"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "item_completed"- ],- "title": "ItemCompletedEventMsgType",- "type": "string"- }- },- "required": [- "item",- "thread_id",- "turn_id",- "type"- ],- "title": "ItemCompletedEventMsg",- "type": "object"- },- {- "properties": {- "delta": {- "type": "string"- },- "item_id": {- "type": "string"- },- "thread_id": {- "type": "string"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "agent_message_content_delta"- ],- "title": "AgentMessageContentDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "item_id",- "thread_id",- "turn_id",- "type"- ],- "title": "AgentMessageContentDeltaEventMsg",- "type": "object"- },- {- "properties": {- "delta": {- "type": "string"- },- "item_id": {- "type": "string"- },- "thread_id": {- "type": "string"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "plan_delta"- ],- "title": "PlanDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "item_id",- "thread_id",- "turn_id",- "type"- ],- "title": "PlanDeltaEventMsg",- "type": "object"- },- {- "properties": {- "delta": {- "type": "string"- },- "item_id": {- "type": "string"- },- "summary_index": {- "default": 0,- "format": "int64",- "type": "integer"- },- "thread_id": {- "type": "string"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "reasoning_content_delta"- ],- "title": "ReasoningContentDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "item_id",- "thread_id",- "turn_id",- "type"- ],- "title": "ReasoningContentDeltaEventMsg",- "type": "object"- },- {- "properties": {- "content_index": {- "default": 0,- "format": "int64",- "type": "integer"- },- "delta": {- "type": "string"- },- "item_id": {- "type": "string"- },- "thread_id": {- "type": "string"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "reasoning_raw_content_delta"- ],- "title": "ReasoningRawContentDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "item_id",- "thread_id",- "turn_id",- "type"- ],- "title": "ReasoningRawContentDeltaEventMsg",- "type": "object"- },- {- "description": "Collab interaction: agent spawn begin.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "prompt": {- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",- "type": "string"- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_agent_spawn_begin"- ],- "title": "CollabAgentSpawnBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "prompt",- "sender_thread_id",- "type"- ],- "title": "CollabAgentSpawnBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: agent spawn end.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "new_agent_nickname": {- "description": "Optional nickname assigned to the new agent.",- "type": [- "string",- "null"- ]- },- "new_agent_role": {- "description": "Optional role assigned to the new agent.",- "type": [- "string",- "null"- ]- },- "new_thread_id": {- "anyOf": [- {- "$ref": "#/definitions/ThreadId"- },- {- "type": "null"- }- ],- "description": "Thread ID of the newly spawned agent, if it was created."- },- "prompt": {- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",- "type": "string"- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the new agent reported to the sender agent."- },- "type": {- "enum": [- "collab_agent_spawn_end"- ],- "title": "CollabAgentSpawnEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "prompt",- "sender_thread_id",- "status",- "type"- ],- "title": "CollabAgentSpawnEndEventMsg",- "type": "object"- },- {- "description": "Collab interaction: agent interaction begin.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "prompt": {- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",- "type": "string"- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_agent_interaction_begin"- ],- "title": "CollabAgentInteractionBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "prompt",- "receiver_thread_id",- "sender_thread_id",- "type"- ],- "title": "CollabAgentInteractionBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: agent interaction end.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "prompt": {- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the receiver agent reported to the sender agent."- },- "type": {- "enum": [- "collab_agent_interaction_end"- ],- "title": "CollabAgentInteractionEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "prompt",- "receiver_thread_id",- "sender_thread_id",- "status",- "type"- ],- "title": "CollabAgentInteractionEndEventMsg",- "type": "object"- },- {- "description": "Collab interaction: waiting begin.",- "properties": {- "call_id": {- "description": "ID of the waiting call.",- "type": "string"- },- "receiver_agents": {- "description": "Optional nicknames/roles for receivers.",- "items": {- "$ref": "#/definitions/CollabAgentRef"- },- "type": "array"- },- "receiver_thread_ids": {- "description": "Thread ID of the receivers.",- "items": {- "$ref": "#/definitions/ThreadId"- },- "type": "array"- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_waiting_begin"- ],- "title": "CollabWaitingBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_ids",- "sender_thread_id",- "type"- ],- "title": "CollabWaitingBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: waiting end.",- "properties": {- "agent_statuses": {- "description": "Optional receiver metadata paired with final statuses.",- "items": {- "$ref": "#/definitions/CollabAgentStatusEntry"- },- "type": "array"- },- "call_id": {- "description": "ID of the waiting call.",- "type": "string"- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "statuses": {- "additionalProperties": {- "$ref": "#/definitions/AgentStatus"- },- "description": "Last known status of the receiver agents reported to the sender agent.",- "type": "object"- },- "type": {- "enum": [- "collab_waiting_end"- ],- "title": "CollabWaitingEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "sender_thread_id",- "statuses",- "type"- ],- "title": "CollabWaitingEndEventMsg",- "type": "object"- },- {- "description": "Collab interaction: close begin.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_close_begin"- ],- "title": "CollabCloseBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "type"- ],- "title": "CollabCloseBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: close end.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the receiver agent reported to the sender agent before the close."- },- "type": {- "enum": [- "collab_close_end"- ],- "title": "CollabCloseEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "status",- "type"- ],- "title": "CollabCloseEndEventMsg",- "type": "object"- },- {- "description": "Collab interaction: resume begin.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_resume_begin"- ],- "title": "CollabResumeBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "type"- ],- "title": "CollabResumeBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: resume end.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the receiver agent reported to the sender agent after resume."- },- "type": {- "enum": [- "collab_resume_end"- ],- "title": "CollabResumeEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "status",- "type"- ],- "title": "CollabResumeEndEventMsg",- "type": "object"- }- ]- },- "ExecCommandSource": {- "enum": [- "agent",- "user_shell",- "unified_exec_startup",- "unified_exec_interaction"- ],- "type": "string"- },- "ExecCommandStatus": {- "enum": [- "completed",- "failed",- "declined"- ],- "type": "string"- },- "ExecOutputStream": {- "enum": [- "stdout",- "stderr"- ],- "type": "string"- },- "FileChange": {- "oneOf": [- {- "properties": {- "content": {- "type": "string"- },- "type": {- "enum": [- "add"- ],- "title": "AddFileChangeType",- "type": "string"- }- },- "required": [- "content",- "type"- ],- "title": "AddFileChange",- "type": "object"- },- {- "properties": {- "content": {- "type": "string"- },- "type": {- "enum": [- "delete"- ],- "title": "DeleteFileChangeType",- "type": "string"- }- },- "required": [- "content",- "type"- ],- "title": "DeleteFileChange",- "type": "object"- },- {- "properties": {- "move_path": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "update"- ],- "title": "UpdateFileChangeType",- "type": "string"- },- "unified_diff": {- "type": "string"- }- },- "required": [- "type",- "unified_diff"- ],- "title": "UpdateFileChange",- "type": "object"- }- ]- },- "FunctionCallOutputBody": {- "anyOf": [- {- "type": "string"- },- {- "items": {- "$ref": "#/definitions/FunctionCallOutputContentItem"- },- "type": "array"- }- ]- },- "FunctionCallOutputContentItem": {- "description": "Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.",- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "input_text"- ],- "title": "InputTextFunctionCallOutputContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "InputTextFunctionCallOutputContentItem",- "type": "object"- },- {- "properties": {- "image_url": {- "type": "string"- },- "type": {- "enum": [- "input_image"- ],- "title": "InputImageFunctionCallOutputContentItemType",- "type": "string"- }- },- "required": [- "image_url",- "type"- ],- "title": "InputImageFunctionCallOutputContentItem",- "type": "object"- }- ]- },- "FunctionCallOutputPayload": {- "description": "The payload we send back to OpenAI when reporting a tool call result.\n\n`body` serializes directly as the wire value for `function_call_output.output`. `success` remains internal metadata for downstream handling.",- "properties": {- "body": {- "$ref": "#/definitions/FunctionCallOutputBody"- },- "success": {- "type": [- "boolean",- "null"- ]- }- },- "required": [- "body"- ],- "type": "object"- },- "GhostCommit": {- "description": "Details of a ghost commit created from a repository state.",- "properties": {- "id": {- "type": "string"- },- "parent": {- "type": [- "string",- "null"- ]- },- "preexisting_untracked_dirs": {- "items": {- "type": "string"- },- "type": "array"- },- "preexisting_untracked_files": {- "items": {- "type": "string"- },- "type": "array"- }- },- "required": [- "id",- "preexisting_untracked_dirs",- "preexisting_untracked_files"- ],- "type": "object"- },- "HistoryEntry": {- "properties": {- "conversation_id": {- "type": "string"- },- "text": {- "type": "string"- },- "ts": {- "format": "uint64",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "conversation_id",- "text",- "ts"- ],- "type": "object"- },- "LocalShellAction": {- "oneOf": [- {- "properties": {- "command": {- "items": {- "type": "string"- },- "type": "array"- },- "env": {- "additionalProperties": {- "type": "string"- },- "type": [- "object",- "null"- ]- },- "timeout_ms": {- "format": "uint64",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- },- "type": {- "enum": [- "exec"- ],- "title": "ExecLocalShellActionType",- "type": "string"- },- "user": {- "type": [- "string",- "null"- ]- },- "working_directory": {- "type": [- "string",- "null"- ]- }- },- "required": [- "command",- "type"- ],- "title": "ExecLocalShellAction",- "type": "object"- }- ]- },- "LocalShellStatus": {- "enum": [- "completed",- "in_progress",- "incomplete"- ],- "type": "string"- },- "McpAuthStatus": {- "enum": [- "unsupported",- "not_logged_in",- "bearer_token",- "o_auth"- ],- "type": "string"- },- "McpInvocation": {- "properties": {- "arguments": {- "description": "Arguments to the tool call."- },- "server": {- "description": "Name of the MCP server as defined in the config.",- "type": "string"- },- "tool": {- "description": "Name of the tool as given by the MCP server.",- "type": "string"- }- },- "required": [- "server",- "tool"- ],- "type": "object"- },- "McpStartupFailure": {- "properties": {- "error": {- "type": "string"- },- "server": {- "type": "string"- }- },- "required": [- "error",- "server"- ],- "type": "object"- },- "McpStartupStatus": {- "oneOf": [- {- "properties": {- "state": {- "enum": [- "starting"- ],- "type": "string"- }- },- "required": [- "state"- ],- "title": "StateMcpStartupStatus",- "type": "object"- },- {- "properties": {- "state": {- "enum": [- "ready"- ],- "type": "string"- }- },- "required": [- "state"- ],- "title": "StateMcpStartupStatus2",- "type": "object"- },- {- "properties": {- "error": {- "type": "string"- },- "state": {- "enum": [- "failed"- ],- "type": "string"- }- },- "required": [- "error",- "state"- ],- "type": "object"- },- {- "properties": {- "state": {- "enum": [- "cancelled"- ],- "type": "string"- }- },- "required": [- "state"- ],- "title": "StateMcpStartupStatus3",- "type": "object"- }- ]- },- "MessagePhase": {- "description": "Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as \"phase unknown\" and keep compatibility behavior for legacy models.",- "oneOf": [- {- "description": "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.",- "enum": [- "commentary"- ],- "type": "string"- },- {- "description": "The assistant's terminal answer text for the current turn.",- "enum": [- "final_answer"- ],- "type": "string"- }- ]- },- "ModeKind": {- "description": "Initial collaboration mode to use when the TUI starts.",- "enum": [- "plan",- "default"- ],- "type": "string"- },- "ModelRerouteReason": {- "enum": [- "high_risk_cyber_activity"- ],- "type": "string"- },- "NetworkAccess": {- "description": "Represents whether outbound network access is available to the agent.",- "enum": [- "restricted",- "enabled"- ],- "type": "string"- },- "NetworkApprovalContext": {- "properties": {- "host": {- "type": "string"- },- "protocol": {- "$ref": "#/definitions/NetworkApprovalProtocol"- }- },- "required": [- "host",- "protocol"- ],- "type": "object"- },- "NetworkApprovalProtocol": {- "enum": [- "http",- "https",- "socks5_tcp",- "socks5_udp"- ],- "type": "string"- },- "ParsedCommand": {- "oneOf": [- {- "properties": {- "cmd": {- "type": "string"- },- "name": {- "type": "string"- },- "path": {- "description": "(Best effort) Path to the file being read by the command. When possible, this is an absolute path, though when relative, it should be resolved against the `cwd`` that will be used to run the command to derive the absolute path.",- "type": "string"- },- "type": {- "enum": [- "read"- ],- "title": "ReadParsedCommandType",- "type": "string"- }- },- "required": [- "cmd",- "name",- "path",- "type"- ],- "title": "ReadParsedCommand",- "type": "object"- },- {- "properties": {- "cmd": {- "type": "string"- },- "path": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "list_files"- ],- "title": "ListFilesParsedCommandType",- "type": "string"- }- },- "required": [- "cmd",- "type"- ],- "title": "ListFilesParsedCommand",- "type": "object"- },- {- "properties": {- "cmd": {- "type": "string"- },- "path": {- "type": [- "string",- "null"- ]- },- "query": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "search"- ],- "title": "SearchParsedCommandType",- "type": "string"- }- },- "required": [- "cmd",- "type"- ],- "title": "SearchParsedCommand",- "type": "object"- },- {- "properties": {- "cmd": {- "type": "string"- },- "type": {- "enum": [- "unknown"- ],- "title": "UnknownParsedCommandType",- "type": "string"- }- },- "required": [- "cmd",- "type"- ],- "title": "UnknownParsedCommand",- "type": "object"- }- ]- },- "PatchApplyStatus": {- "enum": [- "completed",- "failed",- "declined"- ],- "type": "string"- },- "PlanItemArg": {- "additionalProperties": false,- "properties": {- "status": {- "$ref": "#/definitions/StepStatus"- },- "step": {- "type": "string"- }- },- "required": [- "status",- "step"- ],- "type": "object"- },- "PlanType": {- "enum": [- "free",- "go",- "plus",- "pro",- "team",- "business",- "enterprise",- "edu",- "unknown"- ],- "type": "string"- },- "RateLimitSnapshot": {- "properties": {- "credits": {- "anyOf": [- {- "$ref": "#/definitions/CreditsSnapshot"- },- {- "type": "null"- }- ]- },- "limit_id": {- "type": [- "string",- "null"- ]- },- "limit_name": {- "type": [- "string",- "null"- ]- },- "plan_type": {- "anyOf": [- {- "$ref": "#/definitions/PlanType"- },- {- "type": "null"- }- ]- },- "primary": {- "anyOf": [- {- "$ref": "#/definitions/RateLimitWindow"- },- {- "type": "null"- }- ]- },- "secondary": {- "anyOf": [- {- "$ref": "#/definitions/RateLimitWindow"- },- {- "type": "null"- }- ]- }- },- "type": "object"- },- "RateLimitWindow": {- "properties": {- "resets_at": {- "description": "Unix timestamp (seconds since epoch) when the window resets.",- "format": "int64",- "type": [- "integer",- "null"- ]- },- "used_percent": {- "description": "Percentage (0-100) of the window that has been consumed.",- "format": "double",- "type": "number"- },- "window_minutes": {- "description": "Rolling window duration, in minutes.",- "format": "int64",- "type": [- "integer",- "null"- ]- }- },- "required": [- "used_percent"- ],- "type": "object"- },- "ReadOnlyAccess": {- "description": "Determines how read-only file access is granted inside a restricted sandbox.",- "oneOf": [- {- "description": "Restrict reads to an explicit set of roots.\n\nWhen `include_platform_defaults` is `true`, platform defaults required for basic execution are included in addition to `readable_roots`.",- "properties": {- "include_platform_defaults": {- "default": true,- "description": "Include built-in platform read roots required for basic process execution.",- "type": "boolean"- },- "readable_roots": {- "description": "Additional absolute roots that should be readable.",- "items": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": "array"- },- "type": {- "enum": [- "restricted"- ],- "title": "RestrictedReadOnlyAccessType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "RestrictedReadOnlyAccess",- "type": "object"- },- {- "description": "Allow unrestricted file reads.",- "properties": {- "type": {- "enum": [- "full-access"- ],- "title": "FullAccessReadOnlyAccessType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "FullAccessReadOnlyAccess",- "type": "object"- }- ]- },- "RealtimeAudioFrame": {- "properties": {- "data": {- "type": "string"- },- "num_channels": {- "format": "uint16",- "minimum": 0.0,- "type": "integer"- },- "sample_rate": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "samples_per_channel": {- "format": "uint32",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "required": [- "data",- "num_channels",- "sample_rate"- ],- "type": "object"- },- "RealtimeEvent": {- "oneOf": [- {- "additionalProperties": false,- "properties": {- "SessionCreated": {- "properties": {- "session_id": {- "type": "string"- }- },- "required": [- "session_id"- ],- "type": "object"- }- },- "required": [- "SessionCreated"- ],- "title": "SessionCreatedRealtimeEvent",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "SessionUpdated": {- "properties": {- "backend_prompt": {- "type": [- "string",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "SessionUpdated"- ],- "title": "SessionUpdatedRealtimeEvent",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "AudioOut": {- "$ref": "#/definitions/RealtimeAudioFrame"- }- },- "required": [- "AudioOut"- ],- "title": "AudioOutRealtimeEvent",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "ConversationItemAdded": true- },- "required": [- "ConversationItemAdded"- ],- "title": "ConversationItemAddedRealtimeEvent",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "Error": {- "type": "string"- }- },- "required": [- "Error"- ],- "title": "ErrorRealtimeEvent",- "type": "object"- }- ]- },- "ReasoningEffort": {- "description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",- "enum": [- "none",- "minimal",- "low",- "medium",- "high",- "xhigh"- ],- "type": "string"- },- "ReasoningItemContent": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "reasoning_text"- ],- "title": "ReasoningTextReasoningItemContentType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "ReasoningTextReasoningItemContent",- "type": "object"- },- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "text"- ],- "title": "TextReasoningItemContentType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "TextReasoningItemContent",- "type": "object"- }- ]- },- "ReasoningItemReasoningSummary": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "summary_text"- ],- "title": "SummaryTextReasoningItemReasoningSummaryType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "SummaryTextReasoningItemReasoningSummary",- "type": "object"- }- ]- },- "RejectConfig": {- "properties": {- "mcp_elicitations": {- "description": "Reject MCP elicitation prompts.",- "type": "boolean"- },- "rules": {- "description": "Reject prompts triggered by execpolicy `prompt` rules.",- "type": "boolean"- },- "sandbox_approval": {- "description": "Reject approval prompts related to sandbox escalation.",- "type": "boolean"- }- },- "required": [- "mcp_elicitations",- "rules",- "sandbox_approval"- ],- "type": "object"- },- "RemoteSkillSummary": {- "properties": {- "description": {- "type": "string"- },- "id": {- "type": "string"- },- "name": {- "type": "string"- }- },- "required": [- "description",- "id",- "name"- ],- "type": "object"- },- "RequestId": {- "anyOf": [- {- "type": "string"- },- {- "format": "int64",- "type": "integer"- }- ],- "description": "ID of a request, which can be either a string or an integer."- },- "RequestUserInputQuestion": {- "properties": {- "header": {- "type": "string"- },- "id": {- "type": "string"- },- "isOther": {- "default": false,- "type": "boolean"- },- "isSecret": {- "default": false,- "type": "boolean"- },- "options": {- "items": {- "$ref": "#/definitions/RequestUserInputQuestionOption"- },- "type": [- "array",- "null"- ]- },- "question": {- "type": "string"- }- },- "required": [- "header",- "id",- "question"- ],- "type": "object"- },- "RequestUserInputQuestionOption": {- "properties": {- "description": {- "type": "string"- },- "label": {- "type": "string"- }- },- "required": [- "description",- "label"- ],- "type": "object"- },- "Resource": {- "description": "A known resource that the server is capable of reading.",- "properties": {- "_meta": true,- "annotations": true,- "description": {- "type": [- "string",- "null"- ]- },- "icons": {- "items": true,- "type": [- "array",- "null"- ]- },- "mimeType": {- "type": [- "string",- "null"- ]- },- "name": {- "type": "string"- },- "size": {- "format": "int64",- "type": [- "integer",- "null"- ]- },- "title": {- "type": [- "string",- "null"- ]- },- "uri": {- "type": "string"- }- },- "required": [- "name",- "uri"- ],- "type": "object"- },- "ResourceTemplate": {- "description": "A template description for resources available on the server.",- "properties": {- "annotations": true,- "description": {- "type": [- "string",- "null"- ]- },- "mimeType": {- "type": [- "string",- "null"- ]- },- "name": {- "type": "string"- },- "title": {- "type": [- "string",- "null"- ]- },- "uriTemplate": {- "type": "string"- }- },- "required": [- "name",- "uriTemplate"- ],- "type": "object"- },- "ResponseItem": {- "oneOf": [- {- "properties": {- "content": {- "items": {- "$ref": "#/definitions/ContentItem"- },- "type": "array"- },- "end_turn": {- "type": [- "boolean",- "null"- ]- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "phase": {- "anyOf": [- {- "$ref": "#/definitions/MessagePhase"- },- {- "type": "null"- }- ]- },- "role": {- "type": "string"- },- "type": {- "enum": [- "message"- ],- "title": "MessageResponseItemType",- "type": "string"- }- },- "required": [- "content",- "role",- "type"- ],- "title": "MessageResponseItem",- "type": "object"- },- {- "properties": {- "content": {- "default": null,- "items": {- "$ref": "#/definitions/ReasoningItemContent"- },- "type": [- "array",- "null"- ]- },- "encrypted_content": {- "type": [- "string",- "null"- ]- },- "id": {- "type": "string",- "writeOnly": true- },- "summary": {- "items": {- "$ref": "#/definitions/ReasoningItemReasoningSummary"- },- "type": "array"- },- "type": {- "enum": [- "reasoning"- ],- "title": "ReasoningResponseItemType",- "type": "string"- }- },- "required": [- "id",- "summary",- "type"- ],- "title": "ReasoningResponseItem",- "type": "object"- },- {- "properties": {- "action": {- "$ref": "#/definitions/LocalShellAction"- },- "call_id": {- "description": "Set when using the Responses API.",- "type": [- "string",- "null"- ]- },- "id": {- "description": "Legacy id field retained for compatibility with older payloads.",- "type": [- "string",- "null"- ],- "writeOnly": true- },- "status": {- "$ref": "#/definitions/LocalShellStatus"- },- "type": {- "enum": [- "local_shell_call"- ],- "title": "LocalShellCallResponseItemType",- "type": "string"- }- },- "required": [- "action",- "status",- "type"- ],- "title": "LocalShellCallResponseItem",- "type": "object"- },- {- "properties": {- "arguments": {- "type": "string"- },- "call_id": {- "type": "string"- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "name": {- "type": "string"- },- "type": {- "enum": [- "function_call"- ],- "title": "FunctionCallResponseItemType",- "type": "string"- }- },- "required": [- "arguments",- "call_id",- "name",- "type"- ],- "title": "FunctionCallResponseItem",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "output": {- "$ref": "#/definitions/FunctionCallOutputPayload"- },- "type": {- "enum": [- "function_call_output"- ],- "title": "FunctionCallOutputResponseItemType",- "type": "string"- }- },- "required": [- "call_id",- "output",- "type"- ],- "title": "FunctionCallOutputResponseItem",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "input": {- "type": "string"- },- "name": {- "type": "string"- },- "status": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "custom_tool_call"- ],- "title": "CustomToolCallResponseItemType",- "type": "string"- }- },- "required": [- "call_id",- "input",- "name",- "type"- ],- "title": "CustomToolCallResponseItem",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "output": {- "type": "string"- },- "type": {- "enum": [- "custom_tool_call_output"- ],- "title": "CustomToolCallOutputResponseItemType",- "type": "string"- }- },- "required": [- "call_id",- "output",- "type"- ],- "title": "CustomToolCallOutputResponseItem",- "type": "object"- },- {- "properties": {- "action": {- "anyOf": [- {- "$ref": "#/definitions/WebSearchAction"- },- {- "type": "null"- }- ]- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "status": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "web_search_call"- ],- "title": "WebSearchCallResponseItemType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "WebSearchCallResponseItem",- "type": "object"- },- {- "properties": {- "ghost_commit": {- "$ref": "#/definitions/GhostCommit"- },- "type": {- "enum": [- "ghost_snapshot"- ],- "title": "GhostSnapshotResponseItemType",- "type": "string"- }- },- "required": [- "ghost_commit",- "type"- ],- "title": "GhostSnapshotResponseItem",- "type": "object"- },- {- "properties": {- "encrypted_content": {- "type": "string"- },- "type": {- "enum": [- "compaction"- ],- "title": "CompactionResponseItemType",- "type": "string"- }- },- "required": [- "encrypted_content",- "type"- ],- "title": "CompactionResponseItem",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "other"- ],- "title": "OtherResponseItemType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "OtherResponseItem",- "type": "object"- }- ]- },- "Result_of_CallToolResult_or_String": {- "oneOf": [- {- "properties": {- "Ok": {- "$ref": "#/definitions/CallToolResult"- }- },- "required": [- "Ok"- ],- "title": "OkResult_of_CallToolResult_or_String",- "type": "object"- },- {- "properties": {- "Err": {- "type": "string"- }- },- "required": [- "Err"- ],- "title": "ErrResult_of_CallToolResult_or_String",- "type": "object"- }- ]- },- "ReviewCodeLocation": {- "description": "Location of the code related to a review finding.",- "properties": {- "absolute_file_path": {- "type": "string"- },- "line_range": {- "$ref": "#/definitions/ReviewLineRange"- }- },- "required": [- "absolute_file_path",- "line_range"- ],- "type": "object"- },- "ReviewFinding": {- "description": "A single review finding describing an observed issue or recommendation.",- "properties": {- "body": {- "type": "string"- },- "code_location": {- "$ref": "#/definitions/ReviewCodeLocation"- },- "confidence_score": {- "format": "float",- "type": "number"- },- "priority": {- "format": "int32",- "type": "integer"- },- "title": {- "type": "string"- }- },- "required": [- "body",- "code_location",- "confidence_score",- "priority",- "title"- ],- "type": "object"- },- "ReviewLineRange": {- "description": "Inclusive line range in a file associated with the finding.",- "properties": {- "end": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "start": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "end",- "start"- ],- "type": "object"- },- "ReviewOutputEvent": {- "description": "Structured review result produced by a child review session.",- "properties": {- "findings": {- "items": {- "$ref": "#/definitions/ReviewFinding"- },- "type": "array"- },- "overall_confidence_score": {- "format": "float",- "type": "number"- },- "overall_correctness": {- "type": "string"- },- "overall_explanation": {- "type": "string"- }- },- "required": [- "findings",- "overall_confidence_score",- "overall_correctness",- "overall_explanation"- ],- "type": "object"- },- "ReviewTarget": {- "oneOf": [- {- "description": "Review the working tree: staged, unstaged, and untracked files.",- "properties": {- "type": {- "enum": [- "uncommittedChanges"- ],- "title": "UncommittedChangesReviewTargetType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "UncommittedChangesReviewTarget",- "type": "object"- },- {- "description": "Review changes between the current branch and the given base branch.",- "properties": {- "branch": {- "type": "string"- },- "type": {- "enum": [- "baseBranch"- ],- "title": "BaseBranchReviewTargetType",- "type": "string"- }- },- "required": [- "branch",- "type"- ],- "title": "BaseBranchReviewTarget",- "type": "object"- },- {- "description": "Review the changes introduced by a specific commit.",- "properties": {- "sha": {- "type": "string"- },- "title": {- "description": "Optional human-readable label (e.g., commit subject) for UIs.",- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "commit"- ],- "title": "CommitReviewTargetType",- "type": "string"- }- },- "required": [- "sha",- "type"- ],- "title": "CommitReviewTarget",- "type": "object"- },- {- "description": "Arbitrary instructions provided by the user.",- "properties": {- "instructions": {- "type": "string"- },- "type": {- "enum": [- "custom"- ],- "title": "CustomReviewTargetType",- "type": "string"- }- },- "required": [- "instructions",- "type"- ],- "title": "CustomReviewTarget",- "type": "object"- }- ]- },- "SandboxPolicy": {- "description": "Determines execution restrictions for model shell commands.",- "oneOf": [- {- "description": "No restrictions whatsoever. Use with caution.",- "properties": {- "type": {- "enum": [- "danger-full-access"- ],- "title": "DangerFullAccessSandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "DangerFullAccessSandboxPolicy",- "type": "object"- },- {- "description": "Read-only access configuration.",- "properties": {- "access": {- "allOf": [- {- "$ref": "#/definitions/ReadOnlyAccess"- }- ],- "description": "Read access granted while running under this policy."- },- "type": {- "enum": [- "read-only"- ],- "title": "ReadOnlySandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ReadOnlySandboxPolicy",- "type": "object"- },- {- "description": "Indicates the process is already in an external sandbox. Allows full disk access while honoring the provided network setting.",- "properties": {- "network_access": {- "allOf": [- {- "$ref": "#/definitions/NetworkAccess"- }- ],- "default": "restricted",- "description": "Whether the external sandbox permits outbound network traffic."- },- "type": {- "enum": [- "external-sandbox"- ],- "title": "ExternalSandboxSandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ExternalSandboxSandboxPolicy",- "type": "object"- },- {- "description": "Same as `ReadOnly` but additionally grants write access to the current working directory (\"workspace\").",- "properties": {- "exclude_slash_tmp": {- "default": false,- "description": "When set to `true`, will NOT include the `/tmp` among the default writable roots on UNIX. Defaults to `false`.",- "type": "boolean"- },- "exclude_tmpdir_env_var": {- "default": false,- "description": "When set to `true`, will NOT include the per-user `TMPDIR` environment variable among the default writable roots. Defaults to `false`.",- "type": "boolean"- },- "network_access": {- "default": false,- "description": "When set to `true`, outbound network access is allowed. `false` by default.",- "type": "boolean"- },- "read_only_access": {- "allOf": [- {- "$ref": "#/definitions/ReadOnlyAccess"- }- ],- "description": "Read access granted while running under this policy."- },- "type": {- "enum": [- "workspace-write"- ],- "title": "WorkspaceWriteSandboxPolicyType",- "type": "string"- },- "writable_roots": {- "description": "Additional folders (beyond cwd and possibly TMPDIR) that should be writable from within the sandbox.",- "items": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": "array"- }- },- "required": [- "type"- ],- "title": "WorkspaceWriteSandboxPolicy",- "type": "object"- }- ]- },- "SessionNetworkProxyRuntime": {- "properties": {- "admin_addr": {- "type": "string"- },- "http_addr": {- "type": "string"- },- "socks_addr": {- "type": "string"- }- },- "required": [- "admin_addr",- "http_addr",- "socks_addr"- ],- "type": "object"- },- "SkillDependencies": {- "properties": {- "tools": {- "items": {- "$ref": "#/definitions/SkillToolDependency"- },- "type": "array"- }- },- "required": [- "tools"- ],- "type": "object"- },- "SkillErrorInfo": {- "properties": {- "message": {- "type": "string"- },- "path": {- "type": "string"- }- },- "required": [- "message",- "path"- ],- "type": "object"- },- "SkillInterface": {- "properties": {- "brand_color": {- "type": [- "string",- "null"- ]- },- "default_prompt": {- "type": [- "string",- "null"- ]- },- "display_name": {- "type": [- "string",- "null"- ]- },- "icon_large": {- "type": [- "string",- "null"- ]- },- "icon_small": {- "type": [- "string",- "null"- ]- },- "short_description": {- "type": [- "string",- "null"- ]- }- },- "type": "object"- },- "SkillMetadata": {- "properties": {- "dependencies": {- "anyOf": [- {- "$ref": "#/definitions/SkillDependencies"- },- {- "type": "null"- }- ]- },- "description": {- "type": "string"- },- "enabled": {- "type": "boolean"- },- "interface": {- "anyOf": [- {- "$ref": "#/definitions/SkillInterface"- },- {- "type": "null"- }- ]- },- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "scope": {- "$ref": "#/definitions/SkillScope"- },- "short_description": {- "description": "Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description.",- "type": [- "string",- "null"- ]- }- },- "required": [- "description",- "enabled",- "name",- "path",- "scope"- ],- "type": "object"- },- "SkillScope": {- "enum": [- "user",- "repo",- "system",- "admin"- ],- "type": "string"- },- "SkillToolDependency": {- "properties": {- "command": {- "type": [- "string",- "null"- ]- },- "description": {- "type": [- "string",- "null"- ]- },- "transport": {- "type": [- "string",- "null"- ]- },- "type": {- "type": "string"- },- "url": {- "type": [- "string",- "null"- ]- },- "value": {- "type": "string"- }- },- "required": [- "type",- "value"- ],- "type": "object"- },- "SkillsListEntry": {- "properties": {- "cwd": {- "type": "string"- },- "errors": {- "items": {- "$ref": "#/definitions/SkillErrorInfo"- },- "type": "array"- },- "skills": {- "items": {- "$ref": "#/definitions/SkillMetadata"- },- "type": "array"- }- },- "required": [- "cwd",- "errors",- "skills"- ],- "type": "object"- },- "StepStatus": {- "enum": [- "pending",- "in_progress",- "completed"- ],- "type": "string"- },- "TextElement": {- "properties": {- "byte_range": {- "allOf": [- {- "$ref": "#/definitions/ByteRange"- }- ],- "description": "Byte range in the parent `text` buffer that this element occupies."- },- "placeholder": {- "description": "Optional human-readable placeholder for the element, displayed in the UI.",- "type": [- "string",- "null"- ]- }- },- "required": [- "byte_range"- ],- "type": "object"- },- "ThreadId": {- "type": "string"- },- "TokenUsage": {- "properties": {- "cached_input_tokens": {- "format": "int64",- "type": "integer"- },- "input_tokens": {- "format": "int64",- "type": "integer"- },- "output_tokens": {- "format": "int64",- "type": "integer"- },- "reasoning_output_tokens": {- "format": "int64",- "type": "integer"- },- "total_tokens": {- "format": "int64",- "type": "integer"- }- },- "required": [- "cached_input_tokens",- "input_tokens",- "output_tokens",- "reasoning_output_tokens",- "total_tokens"- ],- "type": "object"- },- "TokenUsageInfo": {- "properties": {- "last_token_usage": {- "$ref": "#/definitions/TokenUsage"- },- "model_context_window": {- "format": "int64",- "type": [- "integer",- "null"- ]- },- "total_token_usage": {- "$ref": "#/definitions/TokenUsage"- }- },- "required": [- "last_token_usage",- "total_token_usage"- ],- "type": "object"- },- "Tool": {- "description": "Definition for a tool the client can call.",- "properties": {- "_meta": true,- "annotations": true,- "description": {- "type": [- "string",- "null"- ]- },- "icons": {- "items": true,- "type": [- "array",- "null"- ]- },- "inputSchema": true,- "name": {- "type": "string"- },- "outputSchema": true,- "title": {- "type": [- "string",- "null"- ]- }- },- "required": [- "inputSchema",- "name"- ],- "type": "object"- },- "TurnAbortReason": {- "enum": [- "interrupted",- "replaced",- "review_ended"- ],- "type": "string"- },- "TurnItem": {- "oneOf": [- {- "properties": {- "content": {- "items": {- "$ref": "#/definitions/UserInput"- },- "type": "array"- },- "id": {- "type": "string"- },- "type": {- "enum": [- "UserMessage"- ],- "title": "UserMessageTurnItemType",- "type": "string"- }- },- "required": [- "content",- "id",- "type"- ],- "title": "UserMessageTurnItem",- "type": "object"- },- {- "description": "Assistant-authored message payload used in turn-item streams.\n\n`phase` is optional because not all providers/models emit it. Consumers should use it when present, but retain legacy completion semantics when it is `None`.",- "properties": {- "content": {- "items": {- "$ref": "#/definitions/AgentMessageContent"- },- "type": "array"- },- "id": {- "type": "string"- },- "phase": {- "anyOf": [- {- "$ref": "#/definitions/MessagePhase"- },- {- "type": "null"- }- ],- "description": "Optional phase metadata carried through from `ResponseItem::Message`.\n\nThis is currently used by TUI rendering to distinguish mid-turn commentary from a final answer and avoid status-indicator jitter."- },- "type": {- "enum": [- "AgentMessage"- ],- "title": "AgentMessageTurnItemType",- "type": "string"- }- },- "required": [- "content",- "id",- "type"- ],- "title": "AgentMessageTurnItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "text": {- "type": "string"- },- "type": {- "enum": [- "Plan"- ],- "title": "PlanTurnItemType",- "type": "string"- }- },- "required": [- "id",- "text",- "type"- ],- "title": "PlanTurnItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "raw_content": {- "default": [],- "items": {- "type": "string"- },- "type": "array"- },- "summary_text": {- "items": {- "type": "string"- },- "type": "array"- },- "type": {- "enum": [- "Reasoning"- ],- "title": "ReasoningTurnItemType",- "type": "string"- }- },- "required": [- "id",- "summary_text",- "type"- ],- "title": "ReasoningTurnItem",- "type": "object"- },- {- "properties": {- "action": {- "$ref": "#/definitions/WebSearchAction"- },- "id": {- "type": "string"- },- "query": {- "type": "string"- },- "type": {- "enum": [- "WebSearch"- ],- "title": "WebSearchTurnItemType",- "type": "string"- }- },- "required": [- "action",- "id",- "query",- "type"- ],- "title": "WebSearchTurnItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "type": {- "enum": [- "ContextCompaction"- ],- "title": "ContextCompactionTurnItemType",- "type": "string"- }- },- "required": [- "id",- "type"- ],- "title": "ContextCompactionTurnItem",- "type": "object"- }- ]- },- "UserInput": {- "description": "User input",- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "text_elements": {- "default": [],- "description": "UI-defined spans within `text` that should be treated as special elements. These are byte ranges into the UTF-8 `text` buffer and are used to render or persist rich input markers (e.g., image placeholders) across history and resume without mutating the literal text.",- "items": {- "$ref": "#/definitions/TextElement"- },- "type": "array"- },- "type": {- "enum": [- "text"- ],- "title": "TextUserInputType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "TextUserInput",- "type": "object"- },- {- "description": "Pre‑encoded data: URI image.",- "properties": {- "image_url": {- "type": "string"- },- "type": {- "enum": [- "image"- ],- "title": "ImageUserInputType",- "type": "string"- }- },- "required": [- "image_url",- "type"- ],- "title": "ImageUserInput",- "type": "object"- },- {- "description": "Local image path provided by the user. This will be converted to an `Image` variant (base64 data URL) during request serialization.",- "properties": {- "path": {- "type": "string"- },- "type": {- "enum": [- "local_image"- ],- "title": "LocalImageUserInputType",- "type": "string"- }- },- "required": [- "path",- "type"- ],- "title": "LocalImageUserInput",- "type": "object"- },- {- "description": "Skill selected by the user (name + path to SKILL.md).",- "properties": {- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "type": {- "enum": [- "skill"- ],- "title": "SkillUserInputType",- "type": "string"- }- },- "required": [- "name",- "path",- "type"- ],- "title": "SkillUserInput",- "type": "object"- },- {- "description": "Explicit mention selected by the user (name + app://connector id).",- "properties": {- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "type": {- "enum": [- "mention"- ],- "title": "MentionUserInputType",- "type": "string"- }- },- "required": [- "name",- "path",- "type"- ],- "title": "MentionUserInput",- "type": "object"- }- ]- },- "WebSearchAction": {- "oneOf": [- {- "properties": {- "queries": {- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "query": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "search"- ],- "title": "SearchWebSearchActionType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "SearchWebSearchAction",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "open_page"- ],- "title": "OpenPageWebSearchActionType",- "type": "string"- },- "url": {- "type": [- "string",- "null"- ]- }- },- "required": [- "type"- ],- "title": "OpenPageWebSearchAction",- "type": "object"- },- {- "properties": {- "pattern": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "find_in_page"- ],- "title": "FindInPageWebSearchActionType",- "type": "string"- },- "url": {- "type": [- "string",- "null"- ]- }- },- "required": [- "type"- ],- "title": "FindInPageWebSearchAction",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "other"- ],- "title": "OtherWebSearchActionType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "OtherWebSearchAction",- "type": "object"- }- ]- }- },- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "initialMessages": {- "items": {- "$ref": "#/definitions/EventMsg"- },- "type": [- "array",- "null"- ]- },- "model": {- "type": "string"- },- "rolloutPath": {- "type": "string"- }- },- "required": [- "conversationId",- "model",- "rolloutPath"- ],- "title": "ResumeConversationResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/SendUserMessageParams.json b/codex-rs/app-server-protocol/schema/json/v1/SendUserMessageParams.jsondeleted file mode 100644index 1f53acc006..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/SendUserMessageParams.json+++ /dev/null@@ -1,165 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "InputItem": {- "oneOf": [- {- "properties": {- "data": {- "properties": {- "text": {- "type": "string"- },- "text_elements": {- "default": [],- "description": "UI-defined spans within `text` used to render or persist special elements.",- "items": {- "$ref": "#/definitions/V1TextElement"- },- "type": "array"- }- },- "required": [- "text"- ],- "type": "object"- },- "type": {- "enum": [- "text"- ],- "title": "TextInputItemType",- "type": "string"- }- },- "required": [- "data",- "type"- ],- "title": "TextInputItem",- "type": "object"- },- {- "properties": {- "data": {- "properties": {- "image_url": {- "type": "string"- }- },- "required": [- "image_url"- ],- "type": "object"- },- "type": {- "enum": [- "image"- ],- "title": "ImageInputItemType",- "type": "string"- }- },- "required": [- "data",- "type"- ],- "title": "ImageInputItem",- "type": "object"- },- {- "properties": {- "data": {- "properties": {- "path": {- "type": "string"- }- },- "required": [- "path"- ],- "type": "object"- },- "type": {- "enum": [- "localImage"- ],- "title": "LocalImageInputItemType",- "type": "string"- }- },- "required": [- "data",- "type"- ],- "title": "LocalImageInputItem",- "type": "object"- }- ]- },- "ThreadId": {- "type": "string"- },- "V1ByteRange": {- "properties": {- "end": {- "description": "End byte offset (exclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "start": {- "description": "Start byte offset (inclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "end",- "start"- ],- "type": "object"- },- "V1TextElement": {- "properties": {- "byteRange": {- "allOf": [- {- "$ref": "#/definitions/V1ByteRange"- }- ],- "description": "Byte range in the parent `text` buffer that this element occupies."- },- "placeholder": {- "description": "Optional human-readable placeholder for the element, displayed in the UI.",- "type": [- "string",- "null"- ]- }- },- "required": [- "byteRange"- ],- "type": "object"- }- },- "properties": {- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "items": {- "items": {- "$ref": "#/definitions/InputItem"- },- "type": "array"- }- },- "required": [- "conversationId",- "items"- ],- "title": "SendUserMessageParams",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/SendUserMessageResponse.json b/codex-rs/app-server-protocol/schema/json/v1/SendUserMessageResponse.jsondeleted file mode 100644index df3df37c83..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/SendUserMessageResponse.json+++ /dev/null@@ -1,5 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "title": "SendUserMessageResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/SendUserTurnParams.json b/codex-rs/app-server-protocol/schema/json/v1/SendUserTurnParams.jsondeleted file mode 100644index a213f6077e..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/SendUserTurnParams.json+++ /dev/null@@ -1,482 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "AbsolutePathBuf": {- "description": "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",- "type": "string"- },- "AskForApproval": {- "description": "Determines the conditions under which the user is consulted to approve running the command proposed by Codex.",- "oneOf": [- {- "description": "Under this policy, only \"known safe\" commands—as determined by `is_safe_command()`—that **only read files** are auto‑approved. Everything else will ask the user to approve.",- "enum": [- "untrusted"- ],- "type": "string"- },- {- "description": "DEPRECATED: *All* commands are auto‑approved, but they are expected to run inside a sandbox where network access is disabled and writes are confined to a specific set of paths. If the command fails, it will be escalated to the user to approve execution without a sandbox. Prefer `OnRequest` for interactive runs or `Never` for non-interactive runs.",- "enum": [- "on-failure"- ],- "type": "string"- },- {- "description": "The model decides when to ask the user for approval.",- "enum": [- "on-request"- ],- "type": "string"- },- {- "additionalProperties": false,- "description": "Fine-grained rejection controls for approval prompts.\n\nWhen a field is `true`, prompts of that category are automatically rejected instead of shown to the user.",- "properties": {- "reject": {- "$ref": "#/definitions/RejectConfig"- }- },- "required": [- "reject"- ],- "title": "RejectAskForApproval",- "type": "object"- },- {- "description": "Never ask the user to approve commands. Failures are immediately returned to the model, and never escalated to the user for approval.",- "enum": [- "never"- ],- "type": "string"- }- ]- },- "InputItem": {- "oneOf": [- {- "properties": {- "data": {- "properties": {- "text": {- "type": "string"- },- "text_elements": {- "default": [],- "description": "UI-defined spans within `text` used to render or persist special elements.",- "items": {- "$ref": "#/definitions/V1TextElement"- },- "type": "array"- }- },- "required": [- "text"- ],- "type": "object"- },- "type": {- "enum": [- "text"- ],- "title": "TextInputItemType",- "type": "string"- }- },- "required": [- "data",- "type"- ],- "title": "TextInputItem",- "type": "object"- },- {- "properties": {- "data": {- "properties": {- "image_url": {- "type": "string"- }- },- "required": [- "image_url"- ],- "type": "object"- },- "type": {- "enum": [- "image"- ],- "title": "ImageInputItemType",- "type": "string"- }- },- "required": [- "data",- "type"- ],- "title": "ImageInputItem",- "type": "object"- },- {- "properties": {- "data": {- "properties": {- "path": {- "type": "string"- }- },- "required": [- "path"- ],- "type": "object"- },- "type": {- "enum": [- "localImage"- ],- "title": "LocalImageInputItemType",- "type": "string"- }- },- "required": [- "data",- "type"- ],- "title": "LocalImageInputItem",- "type": "object"- }- ]- },- "NetworkAccess": {- "description": "Represents whether outbound network access is available to the agent.",- "enum": [- "restricted",- "enabled"- ],- "type": "string"- },- "ReadOnlyAccess": {- "description": "Determines how read-only file access is granted inside a restricted sandbox.",- "oneOf": [- {- "description": "Restrict reads to an explicit set of roots.\n\nWhen `include_platform_defaults` is `true`, platform defaults required for basic execution are included in addition to `readable_roots`.",- "properties": {- "include_platform_defaults": {- "default": true,- "description": "Include built-in platform read roots required for basic process execution.",- "type": "boolean"- },- "readable_roots": {- "description": "Additional absolute roots that should be readable.",- "items": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": "array"- },- "type": {- "enum": [- "restricted"- ],- "title": "RestrictedReadOnlyAccessType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "RestrictedReadOnlyAccess",- "type": "object"- },- {- "description": "Allow unrestricted file reads.",- "properties": {- "type": {- "enum": [- "full-access"- ],- "title": "FullAccessReadOnlyAccessType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "FullAccessReadOnlyAccess",- "type": "object"- }- ]- },- "ReasoningEffort": {- "description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",- "enum": [- "none",- "minimal",- "low",- "medium",- "high",- "xhigh"- ],- "type": "string"- },- "ReasoningSummary": {- "description": "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries",- "oneOf": [- {- "enum": [- "auto",- "concise",- "detailed"- ],- "type": "string"- },- {- "description": "Option to disable reasoning summaries.",- "enum": [- "none"- ],- "type": "string"- }- ]- },- "RejectConfig": {- "properties": {- "mcp_elicitations": {- "description": "Reject MCP elicitation prompts.",- "type": "boolean"- },- "rules": {- "description": "Reject prompts triggered by execpolicy `prompt` rules.",- "type": "boolean"- },- "sandbox_approval": {- "description": "Reject approval prompts related to sandbox escalation.",- "type": "boolean"- }- },- "required": [- "mcp_elicitations",- "rules",- "sandbox_approval"- ],- "type": "object"- },- "SandboxPolicy": {- "description": "Determines execution restrictions for model shell commands.",- "oneOf": [- {- "description": "No restrictions whatsoever. Use with caution.",- "properties": {- "type": {- "enum": [- "danger-full-access"- ],- "title": "DangerFullAccessSandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "DangerFullAccessSandboxPolicy",- "type": "object"- },- {- "description": "Read-only access configuration.",- "properties": {- "access": {- "allOf": [- {- "$ref": "#/definitions/ReadOnlyAccess"- }- ],- "description": "Read access granted while running under this policy."- },- "type": {- "enum": [- "read-only"- ],- "title": "ReadOnlySandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ReadOnlySandboxPolicy",- "type": "object"- },- {- "description": "Indicates the process is already in an external sandbox. Allows full disk access while honoring the provided network setting.",- "properties": {- "network_access": {- "allOf": [- {- "$ref": "#/definitions/NetworkAccess"- }- ],- "default": "restricted",- "description": "Whether the external sandbox permits outbound network traffic."- },- "type": {- "enum": [- "external-sandbox"- ],- "title": "ExternalSandboxSandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ExternalSandboxSandboxPolicy",- "type": "object"- },- {- "description": "Same as `ReadOnly` but additionally grants write access to the current working directory (\"workspace\").",- "properties": {- "exclude_slash_tmp": {- "default": false,- "description": "When set to `true`, will NOT include the `/tmp` among the default writable roots on UNIX. Defaults to `false`.",- "type": "boolean"- },- "exclude_tmpdir_env_var": {- "default": false,- "description": "When set to `true`, will NOT include the per-user `TMPDIR` environment variable among the default writable roots. Defaults to `false`.",- "type": "boolean"- },- "network_access": {- "default": false,- "description": "When set to `true`, outbound network access is allowed. `false` by default.",- "type": "boolean"- },- "read_only_access": {- "allOf": [- {- "$ref": "#/definitions/ReadOnlyAccess"- }- ],- "description": "Read access granted while running under this policy."- },- "type": {- "enum": [- "workspace-write"- ],- "title": "WorkspaceWriteSandboxPolicyType",- "type": "string"- },- "writable_roots": {- "description": "Additional folders (beyond cwd and possibly TMPDIR) that should be writable from within the sandbox.",- "items": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": "array"- }- },- "required": [- "type"- ],- "title": "WorkspaceWriteSandboxPolicy",- "type": "object"- }- ]- },- "ThreadId": {- "type": "string"- },- "V1ByteRange": {- "properties": {- "end": {- "description": "End byte offset (exclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "start": {- "description": "Start byte offset (inclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "end",- "start"- ],- "type": "object"- },- "V1TextElement": {- "properties": {- "byteRange": {- "allOf": [- {- "$ref": "#/definitions/V1ByteRange"- }- ],- "description": "Byte range in the parent `text` buffer that this element occupies."- },- "placeholder": {- "description": "Optional human-readable placeholder for the element, displayed in the UI.",- "type": [- "string",- "null"- ]- }- },- "required": [- "byteRange"- ],- "type": "object"- }- },- "properties": {- "approvalPolicy": {- "$ref": "#/definitions/AskForApproval"- },- "conversationId": {- "$ref": "#/definitions/ThreadId"- },- "cwd": {- "type": "string"- },- "effort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ]- },- "items": {- "items": {- "$ref": "#/definitions/InputItem"- },- "type": "array"- },- "model": {- "type": "string"- },- "outputSchema": {- "description": "Optional JSON Schema used to constrain the final assistant message for this turn."- },- "sandboxPolicy": {- "$ref": "#/definitions/SandboxPolicy"- },- "summary": {- "$ref": "#/definitions/ReasoningSummary"- }- },- "required": [- "approvalPolicy",- "conversationId",- "cwd",- "items",- "model",- "sandboxPolicy",- "summary"- ],- "title": "SendUserTurnParams",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/SendUserTurnResponse.json b/codex-rs/app-server-protocol/schema/json/v1/SendUserTurnResponse.jsondeleted file mode 100644index 5dc36098ff..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/SendUserTurnResponse.json+++ /dev/null@@ -1,5 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "title": "SendUserTurnResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/SessionConfiguredNotification.json b/codex-rs/app-server-protocol/schema/json/v1/SessionConfiguredNotification.jsondeleted file mode 100644index a3010337bb..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/SessionConfiguredNotification.json+++ /dev/null@@ -1,5798 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "AbsolutePathBuf": {- "description": "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",- "type": "string"- },- "AgentMessageContent": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "Text"- ],- "title": "TextAgentMessageContentType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "TextAgentMessageContent",- "type": "object"- }- ]- },- "AgentStatus": {- "description": "Agent lifecycle status, derived from emitted events.",- "oneOf": [- {- "description": "Agent is waiting for initialization.",- "enum": [- "pending_init"- ],- "type": "string"- },- {- "description": "Agent is currently running.",- "enum": [- "running"- ],- "type": "string"- },- {- "additionalProperties": false,- "description": "Agent is done. Contains the final assistant message.",- "properties": {- "completed": {- "type": [- "string",- "null"- ]- }- },- "required": [- "completed"- ],- "title": "CompletedAgentStatus",- "type": "object"- },- {- "additionalProperties": false,- "description": "Agent encountered an error.",- "properties": {- "errored": {- "type": "string"- }- },- "required": [- "errored"- ],- "title": "ErroredAgentStatus",- "type": "object"- },- {- "description": "Agent has been shutdown.",- "enum": [- "shutdown"- ],- "type": "string"- },- {- "description": "Agent is not found.",- "enum": [- "not_found"- ],- "type": "string"- }- ]- },- "AskForApproval": {- "description": "Determines the conditions under which the user is consulted to approve running the command proposed by Codex.",- "oneOf": [- {- "description": "Under this policy, only \"known safe\" commands—as determined by `is_safe_command()`—that **only read files** are auto‑approved. Everything else will ask the user to approve.",- "enum": [- "untrusted"- ],- "type": "string"- },- {- "description": "DEPRECATED: *All* commands are auto‑approved, but they are expected to run inside a sandbox where network access is disabled and writes are confined to a specific set of paths. If the command fails, it will be escalated to the user to approve execution without a sandbox. Prefer `OnRequest` for interactive runs or `Never` for non-interactive runs.",- "enum": [- "on-failure"- ],- "type": "string"- },- {- "description": "The model decides when to ask the user for approval.",- "enum": [- "on-request"- ],- "type": "string"- },- {- "additionalProperties": false,- "description": "Fine-grained rejection controls for approval prompts.\n\nWhen a field is `true`, prompts of that category are automatically rejected instead of shown to the user.",- "properties": {- "reject": {- "$ref": "#/definitions/RejectConfig"- }- },- "required": [- "reject"- ],- "title": "RejectAskForApproval",- "type": "object"- },- {- "description": "Never ask the user to approve commands. Failures are immediately returned to the model, and never escalated to the user for approval.",- "enum": [- "never"- ],- "type": "string"- }- ]- },- "ByteRange": {- "properties": {- "end": {- "description": "End byte offset (exclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "start": {- "description": "Start byte offset (inclusive) within the UTF-8 text buffer.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "end",- "start"- ],- "type": "object"- },- "CallToolResult": {- "description": "The server's response to a tool call.",- "properties": {- "_meta": true,- "content": {- "items": true,- "type": "array"- },- "isError": {- "type": [- "boolean",- "null"- ]- },- "structuredContent": true- },- "required": [- "content"- ],- "type": "object"- },- "CodexErrorInfo": {- "description": "Codex errors that we expose to clients.",- "oneOf": [- {- "enum": [- "context_window_exceeded",- "usage_limit_exceeded",- "server_overloaded",- "internal_server_error",- "unauthorized",- "bad_request",- "sandbox_error",- "thread_rollback_failed",- "other"- ],- "type": "string"- },- {- "additionalProperties": false,- "properties": {- "http_connection_failed": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "http_connection_failed"- ],- "title": "HttpConnectionFailedCodexErrorInfo",- "type": "object"- },- {- "additionalProperties": false,- "description": "Failed to connect to the response SSE stream.",- "properties": {- "response_stream_connection_failed": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "response_stream_connection_failed"- ],- "title": "ResponseStreamConnectionFailedCodexErrorInfo",- "type": "object"- },- {- "additionalProperties": false,- "description": "The response SSE stream disconnected in the middle of a turnbefore completion.",- "properties": {- "response_stream_disconnected": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "response_stream_disconnected"- ],- "title": "ResponseStreamDisconnectedCodexErrorInfo",- "type": "object"- },- {- "additionalProperties": false,- "description": "Reached the retry limit for responses.",- "properties": {- "response_too_many_failed_attempts": {- "properties": {- "http_status_code": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "response_too_many_failed_attempts"- ],- "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",- "type": "object"- }- ]- },- "CollabAgentRef": {- "properties": {- "agent_nickname": {- "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "agent_role": {- "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver/new agent."- }- },- "required": [- "thread_id"- ],- "type": "object"- },- "CollabAgentStatusEntry": {- "properties": {- "agent_nickname": {- "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "agent_role": {- "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",- "type": [- "string",- "null"- ]- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the agent."- },- "thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver/new agent."- }- },- "required": [- "status",- "thread_id"- ],- "type": "object"- },- "ContentItem": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "input_text"- ],- "title": "InputTextContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "InputTextContentItem",- "type": "object"- },- {- "properties": {- "image_url": {- "type": "string"- },- "type": {- "enum": [- "input_image"- ],- "title": "InputImageContentItemType",- "type": "string"- }- },- "required": [- "image_url",- "type"- ],- "title": "InputImageContentItem",- "type": "object"- },- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "output_text"- ],- "title": "OutputTextContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "OutputTextContentItem",- "type": "object"- }- ]- },- "CreditsSnapshot": {- "properties": {- "balance": {- "type": [- "string",- "null"- ]- },- "has_credits": {- "type": "boolean"- },- "unlimited": {- "type": "boolean"- }- },- "required": [- "has_credits",- "unlimited"- ],- "type": "object"- },- "CustomPrompt": {- "properties": {- "argument_hint": {- "type": [- "string",- "null"- ]- },- "content": {- "type": "string"- },- "description": {- "type": [- "string",- "null"- ]- },- "name": {- "type": "string"- },- "path": {- "type": "string"- }- },- "required": [- "content",- "name",- "path"- ],- "type": "object"- },- "Duration": {- "properties": {- "nanos": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "secs": {- "format": "uint64",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "nanos",- "secs"- ],- "type": "object"- },- "EventMsg": {- "description": "Response event from the agent NOTE: Make sure none of these values have optional types, as it will mess up the extension code-gen.",- "oneOf": [- {- "description": "Error while executing a submission",- "properties": {- "codex_error_info": {- "anyOf": [- {- "$ref": "#/definitions/CodexErrorInfo"- },- {- "type": "null"- }- ],- "default": null- },- "message": {- "type": "string"- },- "type": {- "enum": [- "error"- ],- "title": "ErrorEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "ErrorEventMsg",- "type": "object"- },- {- "description": "Warning issued while processing a submission. Unlike `Error`, this indicates the turn continued but the user should still be notified.",- "properties": {- "message": {- "type": "string"- },- "type": {- "enum": [- "warning"- ],- "title": "WarningEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "WarningEventMsg",- "type": "object"- },- {- "description": "Realtime conversation lifecycle start event.",- "properties": {- "session_id": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "realtime_conversation_started"- ],- "title": "RealtimeConversationStartedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "RealtimeConversationStartedEventMsg",- "type": "object"- },- {- "description": "Realtime conversation streaming payload event.",- "properties": {- "payload": {- "$ref": "#/definitions/RealtimeEvent"- },- "type": {- "enum": [- "realtime_conversation_realtime"- ],- "title": "RealtimeConversationRealtimeEventMsgType",- "type": "string"- }- },- "required": [- "payload",- "type"- ],- "title": "RealtimeConversationRealtimeEventMsg",- "type": "object"- },- {- "description": "Realtime conversation lifecycle close event.",- "properties": {- "reason": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "realtime_conversation_closed"- ],- "title": "RealtimeConversationClosedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "RealtimeConversationClosedEventMsg",- "type": "object"- },- {- "description": "Model routing changed from the requested model to a different model.",- "properties": {- "from_model": {- "type": "string"- },- "reason": {- "$ref": "#/definitions/ModelRerouteReason"- },- "to_model": {- "type": "string"- },- "type": {- "enum": [- "model_reroute"- ],- "title": "ModelRerouteEventMsgType",- "type": "string"- }- },- "required": [- "from_model",- "reason",- "to_model",- "type"- ],- "title": "ModelRerouteEventMsg",- "type": "object"- },- {- "description": "Conversation history was compacted (either automatically or manually).",- "properties": {- "type": {- "enum": [- "context_compacted"- ],- "title": "ContextCompactedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ContextCompactedEventMsg",- "type": "object"- },- {- "description": "Conversation history was rolled back by dropping the last N user turns.",- "properties": {- "num_turns": {- "description": "Number of user turns that were removed from context.",- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "type": {- "enum": [- "thread_rolled_back"- ],- "title": "ThreadRolledBackEventMsgType",- "type": "string"- }- },- "required": [- "num_turns",- "type"- ],- "title": "ThreadRolledBackEventMsg",- "type": "object"- },- {- "description": "Agent has started a turn. v1 wire format uses `task_started`; accept `turn_started` for v2 interop.",- "properties": {- "collaboration_mode_kind": {- "allOf": [- {- "$ref": "#/definitions/ModeKind"- }- ],- "default": "default"- },- "model_context_window": {- "format": "int64",- "type": [- "integer",- "null"- ]- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "task_started"- ],- "title": "TaskStartedEventMsgType",- "type": "string"- }- },- "required": [- "turn_id",- "type"- ],- "title": "TaskStartedEventMsg",- "type": "object"- },- {- "description": "Agent has completed all actions. v1 wire format uses `task_complete`; accept `turn_complete` for v2 interop.",- "properties": {- "last_agent_message": {- "type": [- "string",- "null"- ]- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "task_complete"- ],- "title": "TaskCompleteEventMsgType",- "type": "string"- }- },- "required": [- "turn_id",- "type"- ],- "title": "TaskCompleteEventMsg",- "type": "object"- },- {- "description": "Usage update for the current session, including totals and last turn. Optional means unknown — UIs should not display when `None`.",- "properties": {- "info": {- "anyOf": [- {- "$ref": "#/definitions/TokenUsageInfo"- },- {- "type": "null"- }- ]- },- "rate_limits": {- "anyOf": [- {- "$ref": "#/definitions/RateLimitSnapshot"- },- {- "type": "null"- }- ]- },- "type": {- "enum": [- "token_count"- ],- "title": "TokenCountEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "TokenCountEventMsg",- "type": "object"- },- {- "description": "Agent text output message",- "properties": {- "message": {- "type": "string"- },- "phase": {- "anyOf": [- {- "$ref": "#/definitions/MessagePhase"- },- {- "type": "null"- }- ],- "default": null- },- "type": {- "enum": [- "agent_message"- ],- "title": "AgentMessageEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "AgentMessageEventMsg",- "type": "object"- },- {- "description": "User/system input message (what was sent to the model)",- "properties": {- "images": {- "description": "Image URLs sourced from `UserInput::Image`. These are safe to replay in legacy UI history events and correspond to images sent to the model.",- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "local_images": {- "default": [],- "description": "Local file paths sourced from `UserInput::LocalImage`. These are kept so the UI can reattach images when editing history, and should not be sent to the model or treated as API-ready URLs.",- "items": {- "type": "string"- },- "type": "array"- },- "message": {- "type": "string"- },- "text_elements": {- "default": [],- "description": "UI-defined spans within `message` used to render or persist special elements.",- "items": {- "$ref": "#/definitions/TextElement"- },- "type": "array"- },- "type": {- "enum": [- "user_message"- ],- "title": "UserMessageEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "UserMessageEventMsg",- "type": "object"- },- {- "description": "Agent text output delta message",- "properties": {- "delta": {- "type": "string"- },- "type": {- "enum": [- "agent_message_delta"- ],- "title": "AgentMessageDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "type"- ],- "title": "AgentMessageDeltaEventMsg",- "type": "object"- },- {- "description": "Reasoning event from agent.",- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "agent_reasoning"- ],- "title": "AgentReasoningEventMsgType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "AgentReasoningEventMsg",- "type": "object"- },- {- "description": "Agent reasoning delta event from agent.",- "properties": {- "delta": {- "type": "string"- },- "type": {- "enum": [- "agent_reasoning_delta"- ],- "title": "AgentReasoningDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "type"- ],- "title": "AgentReasoningDeltaEventMsg",- "type": "object"- },- {- "description": "Raw chain-of-thought from agent.",- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "agent_reasoning_raw_content"- ],- "title": "AgentReasoningRawContentEventMsgType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "AgentReasoningRawContentEventMsg",- "type": "object"- },- {- "description": "Agent reasoning content delta event from agent.",- "properties": {- "delta": {- "type": "string"- },- "type": {- "enum": [- "agent_reasoning_raw_content_delta"- ],- "title": "AgentReasoningRawContentDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "type"- ],- "title": "AgentReasoningRawContentDeltaEventMsg",- "type": "object"- },- {- "description": "Signaled when the model begins a new reasoning summary section (e.g., a new titled block).",- "properties": {- "item_id": {- "default": "",- "type": "string"- },- "summary_index": {- "default": 0,- "format": "int64",- "type": "integer"- },- "type": {- "enum": [- "agent_reasoning_section_break"- ],- "title": "AgentReasoningSectionBreakEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "AgentReasoningSectionBreakEventMsg",- "type": "object"- },- {- "description": "Ack the client's configure message.",- "properties": {- "approval_policy": {- "allOf": [- {- "$ref": "#/definitions/AskForApproval"- }- ],- "description": "When to escalate for approval for execution"- },- "cwd": {- "description": "Working directory that should be treated as the *root* of the session.",- "type": "string"- },- "forked_from_id": {- "anyOf": [- {- "$ref": "#/definitions/ThreadId"- },- {- "type": "null"- }- ]- },- "history_entry_count": {- "description": "Current number of entries in the history log.",- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "history_log_id": {- "description": "Identifier of the history log file (inode on Unix, 0 otherwise).",- "format": "uint64",- "minimum": 0.0,- "type": "integer"- },- "initial_messages": {- "description": "Optional initial messages (as events) for resumed sessions. When present, UIs can use these to seed the history.",- "items": {- "$ref": "#/definitions/EventMsg"- },- "type": [- "array",- "null"- ]- },- "model": {- "description": "Tell the client what model is being queried.",- "type": "string"- },- "model_provider_id": {- "type": "string"- },- "network_proxy": {- "anyOf": [- {- "$ref": "#/definitions/SessionNetworkProxyRuntime"- },- {- "type": "null"- }- ],- "description": "Runtime proxy bind addresses, when the managed proxy was started for this session."- },- "reasoning_effort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ],- "description": "The effort the model is putting into reasoning about the user's request."- },- "rollout_path": {- "description": "Path in which the rollout is stored. Can be `None` for ephemeral threads",- "type": [- "string",- "null"- ]- },- "sandbox_policy": {- "allOf": [- {- "$ref": "#/definitions/SandboxPolicy"- }- ],- "description": "How to sandbox commands executed in the system"- },- "session_id": {- "$ref": "#/definitions/ThreadId"- },- "thread_name": {- "description": "Optional user-facing thread name (may be unset).",- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "session_configured"- ],- "title": "SessionConfiguredEventMsgType",- "type": "string"- }- },- "required": [- "approval_policy",- "cwd",- "history_entry_count",- "history_log_id",- "model",- "model_provider_id",- "sandbox_policy",- "session_id",- "type"- ],- "title": "SessionConfiguredEventMsg",- "type": "object"- },- {- "description": "Updated session metadata (e.g., thread name changes).",- "properties": {- "thread_id": {- "$ref": "#/definitions/ThreadId"- },- "thread_name": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "thread_name_updated"- ],- "title": "ThreadNameUpdatedEventMsgType",- "type": "string"- }- },- "required": [- "thread_id",- "type"- ],- "title": "ThreadNameUpdatedEventMsg",- "type": "object"- },- {- "description": "Incremental MCP startup progress updates.",- "properties": {- "server": {- "description": "Server name being started.",- "type": "string"- },- "status": {- "allOf": [- {- "$ref": "#/definitions/McpStartupStatus"- }- ],- "description": "Current startup status."- },- "type": {- "enum": [- "mcp_startup_update"- ],- "title": "McpStartupUpdateEventMsgType",- "type": "string"- }- },- "required": [- "server",- "status",- "type"- ],- "title": "McpStartupUpdateEventMsg",- "type": "object"- },- {- "description": "Aggregate MCP startup completion summary.",- "properties": {- "cancelled": {- "items": {- "type": "string"- },- "type": "array"- },- "failed": {- "items": {- "$ref": "#/definitions/McpStartupFailure"- },- "type": "array"- },- "ready": {- "items": {- "type": "string"- },- "type": "array"- },- "type": {- "enum": [- "mcp_startup_complete"- ],- "title": "McpStartupCompleteEventMsgType",- "type": "string"- }- },- "required": [- "cancelled",- "failed",- "ready",- "type"- ],- "title": "McpStartupCompleteEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Identifier so this can be paired with the McpToolCallEnd event.",- "type": "string"- },- "invocation": {- "$ref": "#/definitions/McpInvocation"- },- "type": {- "enum": [- "mcp_tool_call_begin"- ],- "title": "McpToolCallBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "invocation",- "type"- ],- "title": "McpToolCallBeginEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Identifier for the corresponding McpToolCallBegin that finished.",- "type": "string"- },- "duration": {- "$ref": "#/definitions/Duration"- },- "invocation": {- "$ref": "#/definitions/McpInvocation"- },- "result": {- "allOf": [- {- "$ref": "#/definitions/Result_of_CallToolResult_or_String"- }- ],- "description": "Result of the tool call. Note this could be an error."- },- "type": {- "enum": [- "mcp_tool_call_end"- ],- "title": "McpToolCallEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "duration",- "invocation",- "result",- "type"- ],- "title": "McpToolCallEndEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "type": {- "enum": [- "web_search_begin"- ],- "title": "WebSearchBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "type"- ],- "title": "WebSearchBeginEventMsg",- "type": "object"- },- {- "properties": {- "action": {- "$ref": "#/definitions/WebSearchAction"- },- "call_id": {- "type": "string"- },- "query": {- "type": "string"- },- "type": {- "enum": [- "web_search_end"- ],- "title": "WebSearchEndEventMsgType",- "type": "string"- }- },- "required": [- "action",- "call_id",- "query",- "type"- ],- "title": "WebSearchEndEventMsg",- "type": "object"- },- {- "description": "Notification that the server is about to execute a command.",- "properties": {- "call_id": {- "description": "Identifier so this can be paired with the ExecCommandEnd event.",- "type": "string"- },- "command": {- "description": "The command to be executed.",- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "description": "The command's working directory if not the default cwd for the agent.",- "type": "string"- },- "interaction_input": {- "description": "Raw input sent to a unified exec session (if this is an interaction event).",- "type": [- "string",- "null"- ]- },- "parsed_cmd": {- "items": {- "$ref": "#/definitions/ParsedCommand"- },- "type": "array"- },- "process_id": {- "description": "Identifier for the underlying PTY process (when available).",- "type": [- "string",- "null"- ]- },- "source": {- "allOf": [- {- "$ref": "#/definitions/ExecCommandSource"- }- ],- "default": "agent",- "description": "Where the command originated. Defaults to Agent for backward compatibility."- },- "turn_id": {- "description": "Turn ID that this command belongs to.",- "type": "string"- },- "type": {- "enum": [- "exec_command_begin"- ],- "title": "ExecCommandBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "command",- "cwd",- "parsed_cmd",- "turn_id",- "type"- ],- "title": "ExecCommandBeginEventMsg",- "type": "object"- },- {- "description": "Incremental chunk of output from a running command.",- "properties": {- "call_id": {- "description": "Identifier for the ExecCommandBegin that produced this chunk.",- "type": "string"- },- "chunk": {- "description": "Raw bytes from the stream (may not be valid UTF-8).",- "type": "string"- },- "stream": {- "allOf": [- {- "$ref": "#/definitions/ExecOutputStream"- }- ],- "description": "Which stream produced this chunk."- },- "type": {- "enum": [- "exec_command_output_delta"- ],- "title": "ExecCommandOutputDeltaEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "chunk",- "stream",- "type"- ],- "title": "ExecCommandOutputDeltaEventMsg",- "type": "object"- },- {- "description": "Terminal interaction for an in-progress command (stdin sent and stdout observed).",- "properties": {- "call_id": {- "description": "Identifier for the ExecCommandBegin that produced this chunk.",- "type": "string"- },- "process_id": {- "description": "Process id associated with the running command.",- "type": "string"- },- "stdin": {- "description": "Stdin sent to the running session.",- "type": "string"- },- "type": {- "enum": [- "terminal_interaction"- ],- "title": "TerminalInteractionEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "process_id",- "stdin",- "type"- ],- "title": "TerminalInteractionEventMsg",- "type": "object"- },- {- "properties": {- "aggregated_output": {- "default": "",- "description": "Captured aggregated output",- "type": "string"- },- "call_id": {- "description": "Identifier for the ExecCommandBegin that finished.",- "type": "string"- },- "command": {- "description": "The command that was executed.",- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "description": "The command's working directory if not the default cwd for the agent.",- "type": "string"- },- "duration": {- "allOf": [- {- "$ref": "#/definitions/Duration"- }- ],- "description": "The duration of the command execution."- },- "exit_code": {- "description": "The command's exit code.",- "format": "int32",- "type": "integer"- },- "formatted_output": {- "description": "Formatted output from the command, as seen by the model.",- "type": "string"- },- "interaction_input": {- "description": "Raw input sent to a unified exec session (if this is an interaction event).",- "type": [- "string",- "null"- ]- },- "parsed_cmd": {- "items": {- "$ref": "#/definitions/ParsedCommand"- },- "type": "array"- },- "process_id": {- "description": "Identifier for the underlying PTY process (when available).",- "type": [- "string",- "null"- ]- },- "source": {- "allOf": [- {- "$ref": "#/definitions/ExecCommandSource"- }- ],- "default": "agent",- "description": "Where the command originated. Defaults to Agent for backward compatibility."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/ExecCommandStatus"- }- ],- "description": "Completion status for this command execution."- },- "stderr": {- "description": "Captured stderr",- "type": "string"- },- "stdout": {- "description": "Captured stdout",- "type": "string"- },- "turn_id": {- "description": "Turn ID that this command belongs to.",- "type": "string"- },- "type": {- "enum": [- "exec_command_end"- ],- "title": "ExecCommandEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "command",- "cwd",- "duration",- "exit_code",- "formatted_output",- "parsed_cmd",- "status",- "stderr",- "stdout",- "turn_id",- "type"- ],- "title": "ExecCommandEndEventMsg",- "type": "object"- },- {- "description": "Notification that the agent attached a local image via the view_image tool.",- "properties": {- "call_id": {- "description": "Identifier for the originating tool call.",- "type": "string"- },- "path": {- "description": "Local filesystem path provided to the tool.",- "type": "string"- },- "type": {- "enum": [- "view_image_tool_call"- ],- "title": "ViewImageToolCallEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "path",- "type"- ],- "title": "ViewImageToolCallEventMsg",- "type": "object"- },- {- "properties": {- "approval_id": {- "description": "Identifier for this specific approval callback.\n\nWhen absent, the approval is for the command item itself (`call_id`). This is present for subcommand approvals (via execve intercept).",- "type": [- "string",- "null"- ]- },- "call_id": {- "description": "Identifier for the associated command execution item.",- "type": "string"- },- "command": {- "description": "The command to be executed.",- "items": {- "type": "string"- },- "type": "array"- },- "cwd": {- "description": "The command's working directory.",- "type": "string"- },- "network_approval_context": {- "anyOf": [- {- "$ref": "#/definitions/NetworkApprovalContext"- },- {- "type": "null"- }- ],- "description": "Optional network context for a blocked request that can be approved."- },- "parsed_cmd": {- "items": {- "$ref": "#/definitions/ParsedCommand"- },- "type": "array"- },- "proposed_execpolicy_amendment": {- "description": "Proposed execpolicy amendment that can be applied to allow future runs.",- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "reason": {- "description": "Optional human-readable reason for the approval (e.g. retry without sandbox).",- "type": [- "string",- "null"- ]- },- "turn_id": {- "default": "",- "description": "Turn ID that this command belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "exec_approval_request"- ],- "title": "ExecApprovalRequestEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "command",- "cwd",- "parsed_cmd",- "type"- ],- "title": "ExecApprovalRequestEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Responses API call id for the associated tool call, if available.",- "type": "string"- },- "questions": {- "items": {- "$ref": "#/definitions/RequestUserInputQuestion"- },- "type": "array"- },- "turn_id": {- "default": "",- "description": "Turn ID that this request belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "request_user_input"- ],- "title": "RequestUserInputEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "questions",- "type"- ],- "title": "RequestUserInputEventMsg",- "type": "object"- },- {- "properties": {- "arguments": true,- "callId": {- "type": "string"- },- "tool": {- "type": "string"- },- "turnId": {- "type": "string"- },- "type": {- "enum": [- "dynamic_tool_call_request"- ],- "title": "DynamicToolCallRequestEventMsgType",- "type": "string"- }- },- "required": [- "arguments",- "callId",- "tool",- "turnId",- "type"- ],- "title": "DynamicToolCallRequestEventMsg",- "type": "object"- },- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "message": {- "type": "string"- },- "server_name": {- "type": "string"- },- "type": {- "enum": [- "elicitation_request"- ],- "title": "ElicitationRequestEventMsgType",- "type": "string"- }- },- "required": [- "id",- "message",- "server_name",- "type"- ],- "title": "ElicitationRequestEventMsg",- "type": "object"- },- {- "properties": {- "call_id": {- "description": "Responses API call id for the associated patch apply call, if available.",- "type": "string"- },- "changes": {- "additionalProperties": {- "$ref": "#/definitions/FileChange"- },- "type": "object"- },- "grant_root": {- "description": "When set, the agent is asking the user to allow writes under this root for the remainder of the session.",- "type": [- "string",- "null"- ]- },- "reason": {- "description": "Optional explanatory reason (e.g. request for extra write access).",- "type": [- "string",- "null"- ]- },- "turn_id": {- "default": "",- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility with older senders.",- "type": "string"- },- "type": {- "enum": [- "apply_patch_approval_request"- ],- "title": "ApplyPatchApprovalRequestEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "changes",- "type"- ],- "title": "ApplyPatchApprovalRequestEventMsg",- "type": "object"- },- {- "description": "Notification advising the user that something they are using has been deprecated and should be phased out.",- "properties": {- "details": {- "description": "Optional extra guidance, such as migration steps or rationale.",- "type": [- "string",- "null"- ]- },- "summary": {- "description": "Concise summary of what is deprecated.",- "type": "string"- },- "type": {- "enum": [- "deprecation_notice"- ],- "title": "DeprecationNoticeEventMsgType",- "type": "string"- }- },- "required": [- "summary",- "type"- ],- "title": "DeprecationNoticeEventMsg",- "type": "object"- },- {- "properties": {- "message": {- "type": "string"- },- "type": {- "enum": [- "background_event"- ],- "title": "BackgroundEventEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "BackgroundEventEventMsg",- "type": "object"- },- {- "properties": {- "message": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "undo_started"- ],- "title": "UndoStartedEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "UndoStartedEventMsg",- "type": "object"- },- {- "properties": {- "message": {- "type": [- "string",- "null"- ]- },- "success": {- "type": "boolean"- },- "type": {- "enum": [- "undo_completed"- ],- "title": "UndoCompletedEventMsgType",- "type": "string"- }- },- "required": [- "success",- "type"- ],- "title": "UndoCompletedEventMsg",- "type": "object"- },- {- "description": "Notification that a model stream experienced an error or disconnect and the system is handling it (e.g., retrying with backoff).",- "properties": {- "additional_details": {- "default": null,- "description": "Optional details about the underlying stream failure (often the same human-readable message that is surfaced as the terminal error if retries are exhausted).",- "type": [- "string",- "null"- ]- },- "codex_error_info": {- "anyOf": [- {- "$ref": "#/definitions/CodexErrorInfo"- },- {- "type": "null"- }- ],- "default": null- },- "message": {- "type": "string"- },- "type": {- "enum": [- "stream_error"- ],- "title": "StreamErrorEventMsgType",- "type": "string"- }- },- "required": [- "message",- "type"- ],- "title": "StreamErrorEventMsg",- "type": "object"- },- {- "description": "Notification that the agent is about to apply a code patch. Mirrors `ExecCommandBegin` so front‑ends can show progress indicators.",- "properties": {- "auto_approved": {- "description": "If true, there was no ApplyPatchApprovalRequest for this patch.",- "type": "boolean"- },- "call_id": {- "description": "Identifier so this can be paired with the PatchApplyEnd event.",- "type": "string"- },- "changes": {- "additionalProperties": {- "$ref": "#/definitions/FileChange"- },- "description": "The changes to be applied.",- "type": "object"- },- "turn_id": {- "default": "",- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "patch_apply_begin"- ],- "title": "PatchApplyBeginEventMsgType",- "type": "string"- }- },- "required": [- "auto_approved",- "call_id",- "changes",- "type"- ],- "title": "PatchApplyBeginEventMsg",- "type": "object"- },- {- "description": "Notification that a patch application has finished.",- "properties": {- "call_id": {- "description": "Identifier for the PatchApplyBegin that finished.",- "type": "string"- },- "changes": {- "additionalProperties": {- "$ref": "#/definitions/FileChange"- },- "default": {},- "description": "The changes that were applied (mirrors PatchApplyBeginEvent::changes).",- "type": "object"- },- "status": {- "allOf": [- {- "$ref": "#/definitions/PatchApplyStatus"- }- ],- "description": "Completion status for this patch application."- },- "stderr": {- "description": "Captured stderr (parser errors, IO failures, etc.).",- "type": "string"- },- "stdout": {- "description": "Captured stdout (summary printed by apply_patch).",- "type": "string"- },- "success": {- "description": "Whether the patch was applied successfully.",- "type": "boolean"- },- "turn_id": {- "default": "",- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",- "type": "string"- },- "type": {- "enum": [- "patch_apply_end"- ],- "title": "PatchApplyEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "status",- "stderr",- "stdout",- "success",- "type"- ],- "title": "PatchApplyEndEventMsg",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "turn_diff"- ],- "title": "TurnDiffEventMsgType",- "type": "string"- },- "unified_diff": {- "type": "string"- }- },- "required": [- "type",- "unified_diff"- ],- "title": "TurnDiffEventMsg",- "type": "object"- },- {- "description": "Response to GetHistoryEntryRequest.",- "properties": {- "entry": {- "anyOf": [- {- "$ref": "#/definitions/HistoryEntry"- },- {- "type": "null"- }- ],- "description": "The entry at the requested offset, if available and parseable."- },- "log_id": {- "format": "uint64",- "minimum": 0.0,- "type": "integer"- },- "offset": {- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "type": {- "enum": [- "get_history_entry_response"- ],- "title": "GetHistoryEntryResponseEventMsgType",- "type": "string"- }- },- "required": [- "log_id",- "offset",- "type"- ],- "title": "GetHistoryEntryResponseEventMsg",- "type": "object"- },- {- "description": "List of MCP tools available to the agent.",- "properties": {- "auth_statuses": {- "additionalProperties": {- "$ref": "#/definitions/McpAuthStatus"- },- "description": "Authentication status for each configured MCP server.",- "type": "object"- },- "resource_templates": {- "additionalProperties": {- "items": {- "$ref": "#/definitions/ResourceTemplate"- },- "type": "array"- },- "description": "Known resource templates grouped by server name.",- "type": "object"- },- "resources": {- "additionalProperties": {- "items": {- "$ref": "#/definitions/Resource"- },- "type": "array"- },- "description": "Known resources grouped by server name.",- "type": "object"- },- "tools": {- "additionalProperties": {- "$ref": "#/definitions/Tool"- },- "description": "Fully qualified tool name -> tool definition.",- "type": "object"- },- "type": {- "enum": [- "mcp_list_tools_response"- ],- "title": "McpListToolsResponseEventMsgType",- "type": "string"- }- },- "required": [- "auth_statuses",- "resource_templates",- "resources",- "tools",- "type"- ],- "title": "McpListToolsResponseEventMsg",- "type": "object"- },- {- "description": "List of custom prompts available to the agent.",- "properties": {- "custom_prompts": {- "items": {- "$ref": "#/definitions/CustomPrompt"- },- "type": "array"- },- "type": {- "enum": [- "list_custom_prompts_response"- ],- "title": "ListCustomPromptsResponseEventMsgType",- "type": "string"- }- },- "required": [- "custom_prompts",- "type"- ],- "title": "ListCustomPromptsResponseEventMsg",- "type": "object"- },- {- "description": "List of skills available to the agent.",- "properties": {- "skills": {- "items": {- "$ref": "#/definitions/SkillsListEntry"- },- "type": "array"- },- "type": {- "enum": [- "list_skills_response"- ],- "title": "ListSkillsResponseEventMsgType",- "type": "string"- }- },- "required": [- "skills",- "type"- ],- "title": "ListSkillsResponseEventMsg",- "type": "object"- },- {- "description": "List of remote skills available to the agent.",- "properties": {- "skills": {- "items": {- "$ref": "#/definitions/RemoteSkillSummary"- },- "type": "array"- },- "type": {- "enum": [- "list_remote_skills_response"- ],- "title": "ListRemoteSkillsResponseEventMsgType",- "type": "string"- }- },- "required": [- "skills",- "type"- ],- "title": "ListRemoteSkillsResponseEventMsg",- "type": "object"- },- {- "description": "Remote skill downloaded to local cache.",- "properties": {- "id": {- "type": "string"- },- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "type": {- "enum": [- "remote_skill_downloaded"- ],- "title": "RemoteSkillDownloadedEventMsgType",- "type": "string"- }- },- "required": [- "id",- "name",- "path",- "type"- ],- "title": "RemoteSkillDownloadedEventMsg",- "type": "object"- },- {- "description": "Notification that skill data may have been updated and clients may want to reload.",- "properties": {- "type": {- "enum": [- "skills_update_available"- ],- "title": "SkillsUpdateAvailableEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "SkillsUpdateAvailableEventMsg",- "type": "object"- },- {- "properties": {- "explanation": {- "default": null,- "description": "Arguments for the `update_plan` todo/checklist tool (not plan mode).",- "type": [- "string",- "null"- ]- },- "plan": {- "items": {- "$ref": "#/definitions/PlanItemArg"- },- "type": "array"- },- "type": {- "enum": [- "plan_update"- ],- "title": "PlanUpdateEventMsgType",- "type": "string"- }- },- "required": [- "plan",- "type"- ],- "title": "PlanUpdateEventMsg",- "type": "object"- },- {- "properties": {- "reason": {- "$ref": "#/definitions/TurnAbortReason"- },- "turn_id": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "turn_aborted"- ],- "title": "TurnAbortedEventMsgType",- "type": "string"- }- },- "required": [- "reason",- "type"- ],- "title": "TurnAbortedEventMsg",- "type": "object"- },- {- "description": "Notification that the agent is shutting down.",- "properties": {- "type": {- "enum": [- "shutdown_complete"- ],- "title": "ShutdownCompleteEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ShutdownCompleteEventMsg",- "type": "object"- },- {- "description": "Entered review mode.",- "properties": {- "target": {- "$ref": "#/definitions/ReviewTarget"- },- "type": {- "enum": [- "entered_review_mode"- ],- "title": "EnteredReviewModeEventMsgType",- "type": "string"- },- "user_facing_hint": {- "type": [- "string",- "null"- ]- }- },- "required": [- "target",- "type"- ],- "title": "EnteredReviewModeEventMsg",- "type": "object"- },- {- "description": "Exited review mode with an optional final result to apply.",- "properties": {- "review_output": {- "anyOf": [- {- "$ref": "#/definitions/ReviewOutputEvent"- },- {- "type": "null"- }- ]- },- "type": {- "enum": [- "exited_review_mode"- ],- "title": "ExitedReviewModeEventMsgType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ExitedReviewModeEventMsg",- "type": "object"- },- {- "properties": {- "item": {- "$ref": "#/definitions/ResponseItem"- },- "type": {- "enum": [- "raw_response_item"- ],- "title": "RawResponseItemEventMsgType",- "type": "string"- }- },- "required": [- "item",- "type"- ],- "title": "RawResponseItemEventMsg",- "type": "object"- },- {- "properties": {- "item": {- "$ref": "#/definitions/TurnItem"- },- "thread_id": {- "$ref": "#/definitions/ThreadId"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "item_started"- ],- "title": "ItemStartedEventMsgType",- "type": "string"- }- },- "required": [- "item",- "thread_id",- "turn_id",- "type"- ],- "title": "ItemStartedEventMsg",- "type": "object"- },- {- "properties": {- "item": {- "$ref": "#/definitions/TurnItem"- },- "thread_id": {- "$ref": "#/definitions/ThreadId"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "item_completed"- ],- "title": "ItemCompletedEventMsgType",- "type": "string"- }- },- "required": [- "item",- "thread_id",- "turn_id",- "type"- ],- "title": "ItemCompletedEventMsg",- "type": "object"- },- {- "properties": {- "delta": {- "type": "string"- },- "item_id": {- "type": "string"- },- "thread_id": {- "type": "string"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "agent_message_content_delta"- ],- "title": "AgentMessageContentDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "item_id",- "thread_id",- "turn_id",- "type"- ],- "title": "AgentMessageContentDeltaEventMsg",- "type": "object"- },- {- "properties": {- "delta": {- "type": "string"- },- "item_id": {- "type": "string"- },- "thread_id": {- "type": "string"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "plan_delta"- ],- "title": "PlanDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "item_id",- "thread_id",- "turn_id",- "type"- ],- "title": "PlanDeltaEventMsg",- "type": "object"- },- {- "properties": {- "delta": {- "type": "string"- },- "item_id": {- "type": "string"- },- "summary_index": {- "default": 0,- "format": "int64",- "type": "integer"- },- "thread_id": {- "type": "string"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "reasoning_content_delta"- ],- "title": "ReasoningContentDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "item_id",- "thread_id",- "turn_id",- "type"- ],- "title": "ReasoningContentDeltaEventMsg",- "type": "object"- },- {- "properties": {- "content_index": {- "default": 0,- "format": "int64",- "type": "integer"- },- "delta": {- "type": "string"- },- "item_id": {- "type": "string"- },- "thread_id": {- "type": "string"- },- "turn_id": {- "type": "string"- },- "type": {- "enum": [- "reasoning_raw_content_delta"- ],- "title": "ReasoningRawContentDeltaEventMsgType",- "type": "string"- }- },- "required": [- "delta",- "item_id",- "thread_id",- "turn_id",- "type"- ],- "title": "ReasoningRawContentDeltaEventMsg",- "type": "object"- },- {- "description": "Collab interaction: agent spawn begin.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "prompt": {- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",- "type": "string"- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_agent_spawn_begin"- ],- "title": "CollabAgentSpawnBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "prompt",- "sender_thread_id",- "type"- ],- "title": "CollabAgentSpawnBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: agent spawn end.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "new_agent_nickname": {- "description": "Optional nickname assigned to the new agent.",- "type": [- "string",- "null"- ]- },- "new_agent_role": {- "description": "Optional role assigned to the new agent.",- "type": [- "string",- "null"- ]- },- "new_thread_id": {- "anyOf": [- {- "$ref": "#/definitions/ThreadId"- },- {- "type": "null"- }- ],- "description": "Thread ID of the newly spawned agent, if it was created."- },- "prompt": {- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",- "type": "string"- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the new agent reported to the sender agent."- },- "type": {- "enum": [- "collab_agent_spawn_end"- ],- "title": "CollabAgentSpawnEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "prompt",- "sender_thread_id",- "status",- "type"- ],- "title": "CollabAgentSpawnEndEventMsg",- "type": "object"- },- {- "description": "Collab interaction: agent interaction begin.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "prompt": {- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",- "type": "string"- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_agent_interaction_begin"- ],- "title": "CollabAgentInteractionBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "prompt",- "receiver_thread_id",- "sender_thread_id",- "type"- ],- "title": "CollabAgentInteractionBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: agent interaction end.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "prompt": {- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the receiver agent reported to the sender agent."- },- "type": {- "enum": [- "collab_agent_interaction_end"- ],- "title": "CollabAgentInteractionEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "prompt",- "receiver_thread_id",- "sender_thread_id",- "status",- "type"- ],- "title": "CollabAgentInteractionEndEventMsg",- "type": "object"- },- {- "description": "Collab interaction: waiting begin.",- "properties": {- "call_id": {- "description": "ID of the waiting call.",- "type": "string"- },- "receiver_agents": {- "description": "Optional nicknames/roles for receivers.",- "items": {- "$ref": "#/definitions/CollabAgentRef"- },- "type": "array"- },- "receiver_thread_ids": {- "description": "Thread ID of the receivers.",- "items": {- "$ref": "#/definitions/ThreadId"- },- "type": "array"- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_waiting_begin"- ],- "title": "CollabWaitingBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_ids",- "sender_thread_id",- "type"- ],- "title": "CollabWaitingBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: waiting end.",- "properties": {- "agent_statuses": {- "description": "Optional receiver metadata paired with final statuses.",- "items": {- "$ref": "#/definitions/CollabAgentStatusEntry"- },- "type": "array"- },- "call_id": {- "description": "ID of the waiting call.",- "type": "string"- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "statuses": {- "additionalProperties": {- "$ref": "#/definitions/AgentStatus"- },- "description": "Last known status of the receiver agents reported to the sender agent.",- "type": "object"- },- "type": {- "enum": [- "collab_waiting_end"- ],- "title": "CollabWaitingEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "sender_thread_id",- "statuses",- "type"- ],- "title": "CollabWaitingEndEventMsg",- "type": "object"- },- {- "description": "Collab interaction: close begin.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_close_begin"- ],- "title": "CollabCloseBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "type"- ],- "title": "CollabCloseBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: close end.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the receiver agent reported to the sender agent before the close."- },- "type": {- "enum": [- "collab_close_end"- ],- "title": "CollabCloseEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "status",- "type"- ],- "title": "CollabCloseEndEventMsg",- "type": "object"- },- {- "description": "Collab interaction: resume begin.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "type": {- "enum": [- "collab_resume_begin"- ],- "title": "CollabResumeBeginEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "type"- ],- "title": "CollabResumeBeginEventMsg",- "type": "object"- },- {- "description": "Collab interaction: resume end.",- "properties": {- "call_id": {- "description": "Identifier for the collab tool call.",- "type": "string"- },- "receiver_agent_nickname": {- "description": "Optional nickname assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_agent_role": {- "description": "Optional role assigned to the receiver agent.",- "type": [- "string",- "null"- ]- },- "receiver_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the receiver."- },- "sender_thread_id": {- "allOf": [- {- "$ref": "#/definitions/ThreadId"- }- ],- "description": "Thread ID of the sender."- },- "status": {- "allOf": [- {- "$ref": "#/definitions/AgentStatus"- }- ],- "description": "Last known status of the receiver agent reported to the sender agent after resume."- },- "type": {- "enum": [- "collab_resume_end"- ],- "title": "CollabResumeEndEventMsgType",- "type": "string"- }- },- "required": [- "call_id",- "receiver_thread_id",- "sender_thread_id",- "status",- "type"- ],- "title": "CollabResumeEndEventMsg",- "type": "object"- }- ]- },- "ExecCommandSource": {- "enum": [- "agent",- "user_shell",- "unified_exec_startup",- "unified_exec_interaction"- ],- "type": "string"- },- "ExecCommandStatus": {- "enum": [- "completed",- "failed",- "declined"- ],- "type": "string"- },- "ExecOutputStream": {- "enum": [- "stdout",- "stderr"- ],- "type": "string"- },- "FileChange": {- "oneOf": [- {- "properties": {- "content": {- "type": "string"- },- "type": {- "enum": [- "add"- ],- "title": "AddFileChangeType",- "type": "string"- }- },- "required": [- "content",- "type"- ],- "title": "AddFileChange",- "type": "object"- },- {- "properties": {- "content": {- "type": "string"- },- "type": {- "enum": [- "delete"- ],- "title": "DeleteFileChangeType",- "type": "string"- }- },- "required": [- "content",- "type"- ],- "title": "DeleteFileChange",- "type": "object"- },- {- "properties": {- "move_path": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "update"- ],- "title": "UpdateFileChangeType",- "type": "string"- },- "unified_diff": {- "type": "string"- }- },- "required": [- "type",- "unified_diff"- ],- "title": "UpdateFileChange",- "type": "object"- }- ]- },- "FunctionCallOutputBody": {- "anyOf": [- {- "type": "string"- },- {- "items": {- "$ref": "#/definitions/FunctionCallOutputContentItem"- },- "type": "array"- }- ]- },- "FunctionCallOutputContentItem": {- "description": "Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.",- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "input_text"- ],- "title": "InputTextFunctionCallOutputContentItemType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "InputTextFunctionCallOutputContentItem",- "type": "object"- },- {- "properties": {- "image_url": {- "type": "string"- },- "type": {- "enum": [- "input_image"- ],- "title": "InputImageFunctionCallOutputContentItemType",- "type": "string"- }- },- "required": [- "image_url",- "type"- ],- "title": "InputImageFunctionCallOutputContentItem",- "type": "object"- }- ]- },- "FunctionCallOutputPayload": {- "description": "The payload we send back to OpenAI when reporting a tool call result.\n\n`body` serializes directly as the wire value for `function_call_output.output`. `success` remains internal metadata for downstream handling.",- "properties": {- "body": {- "$ref": "#/definitions/FunctionCallOutputBody"- },- "success": {- "type": [- "boolean",- "null"- ]- }- },- "required": [- "body"- ],- "type": "object"- },- "GhostCommit": {- "description": "Details of a ghost commit created from a repository state.",- "properties": {- "id": {- "type": "string"- },- "parent": {- "type": [- "string",- "null"- ]- },- "preexisting_untracked_dirs": {- "items": {- "type": "string"- },- "type": "array"- },- "preexisting_untracked_files": {- "items": {- "type": "string"- },- "type": "array"- }- },- "required": [- "id",- "preexisting_untracked_dirs",- "preexisting_untracked_files"- ],- "type": "object"- },- "HistoryEntry": {- "properties": {- "conversation_id": {- "type": "string"- },- "text": {- "type": "string"- },- "ts": {- "format": "uint64",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "conversation_id",- "text",- "ts"- ],- "type": "object"- },- "LocalShellAction": {- "oneOf": [- {- "properties": {- "command": {- "items": {- "type": "string"- },- "type": "array"- },- "env": {- "additionalProperties": {- "type": "string"- },- "type": [- "object",- "null"- ]- },- "timeout_ms": {- "format": "uint64",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- },- "type": {- "enum": [- "exec"- ],- "title": "ExecLocalShellActionType",- "type": "string"- },- "user": {- "type": [- "string",- "null"- ]- },- "working_directory": {- "type": [- "string",- "null"- ]- }- },- "required": [- "command",- "type"- ],- "title": "ExecLocalShellAction",- "type": "object"- }- ]- },- "LocalShellStatus": {- "enum": [- "completed",- "in_progress",- "incomplete"- ],- "type": "string"- },- "McpAuthStatus": {- "enum": [- "unsupported",- "not_logged_in",- "bearer_token",- "o_auth"- ],- "type": "string"- },- "McpInvocation": {- "properties": {- "arguments": {- "description": "Arguments to the tool call."- },- "server": {- "description": "Name of the MCP server as defined in the config.",- "type": "string"- },- "tool": {- "description": "Name of the tool as given by the MCP server.",- "type": "string"- }- },- "required": [- "server",- "tool"- ],- "type": "object"- },- "McpStartupFailure": {- "properties": {- "error": {- "type": "string"- },- "server": {- "type": "string"- }- },- "required": [- "error",- "server"- ],- "type": "object"- },- "McpStartupStatus": {- "oneOf": [- {- "properties": {- "state": {- "enum": [- "starting"- ],- "type": "string"- }- },- "required": [- "state"- ],- "title": "StateMcpStartupStatus",- "type": "object"- },- {- "properties": {- "state": {- "enum": [- "ready"- ],- "type": "string"- }- },- "required": [- "state"- ],- "title": "StateMcpStartupStatus2",- "type": "object"- },- {- "properties": {- "error": {- "type": "string"- },- "state": {- "enum": [- "failed"- ],- "type": "string"- }- },- "required": [- "error",- "state"- ],- "type": "object"- },- {- "properties": {- "state": {- "enum": [- "cancelled"- ],- "type": "string"- }- },- "required": [- "state"- ],- "title": "StateMcpStartupStatus3",- "type": "object"- }- ]- },- "MessagePhase": {- "description": "Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as \"phase unknown\" and keep compatibility behavior for legacy models.",- "oneOf": [- {- "description": "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.",- "enum": [- "commentary"- ],- "type": "string"- },- {- "description": "The assistant's terminal answer text for the current turn.",- "enum": [- "final_answer"- ],- "type": "string"- }- ]- },- "ModeKind": {- "description": "Initial collaboration mode to use when the TUI starts.",- "enum": [- "plan",- "default"- ],- "type": "string"- },- "ModelRerouteReason": {- "enum": [- "high_risk_cyber_activity"- ],- "type": "string"- },- "NetworkAccess": {- "description": "Represents whether outbound network access is available to the agent.",- "enum": [- "restricted",- "enabled"- ],- "type": "string"- },- "NetworkApprovalContext": {- "properties": {- "host": {- "type": "string"- },- "protocol": {- "$ref": "#/definitions/NetworkApprovalProtocol"- }- },- "required": [- "host",- "protocol"- ],- "type": "object"- },- "NetworkApprovalProtocol": {- "enum": [- "http",- "https",- "socks5_tcp",- "socks5_udp"- ],- "type": "string"- },- "ParsedCommand": {- "oneOf": [- {- "properties": {- "cmd": {- "type": "string"- },- "name": {- "type": "string"- },- "path": {- "description": "(Best effort) Path to the file being read by the command. When possible, this is an absolute path, though when relative, it should be resolved against the `cwd`` that will be used to run the command to derive the absolute path.",- "type": "string"- },- "type": {- "enum": [- "read"- ],- "title": "ReadParsedCommandType",- "type": "string"- }- },- "required": [- "cmd",- "name",- "path",- "type"- ],- "title": "ReadParsedCommand",- "type": "object"- },- {- "properties": {- "cmd": {- "type": "string"- },- "path": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "list_files"- ],- "title": "ListFilesParsedCommandType",- "type": "string"- }- },- "required": [- "cmd",- "type"- ],- "title": "ListFilesParsedCommand",- "type": "object"- },- {- "properties": {- "cmd": {- "type": "string"- },- "path": {- "type": [- "string",- "null"- ]- },- "query": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "search"- ],- "title": "SearchParsedCommandType",- "type": "string"- }- },- "required": [- "cmd",- "type"- ],- "title": "SearchParsedCommand",- "type": "object"- },- {- "properties": {- "cmd": {- "type": "string"- },- "type": {- "enum": [- "unknown"- ],- "title": "UnknownParsedCommandType",- "type": "string"- }- },- "required": [- "cmd",- "type"- ],- "title": "UnknownParsedCommand",- "type": "object"- }- ]- },- "PatchApplyStatus": {- "enum": [- "completed",- "failed",- "declined"- ],- "type": "string"- },- "PlanItemArg": {- "additionalProperties": false,- "properties": {- "status": {- "$ref": "#/definitions/StepStatus"- },- "step": {- "type": "string"- }- },- "required": [- "status",- "step"- ],- "type": "object"- },- "PlanType": {- "enum": [- "free",- "go",- "plus",- "pro",- "team",- "business",- "enterprise",- "edu",- "unknown"- ],- "type": "string"- },- "RateLimitSnapshot": {- "properties": {- "credits": {- "anyOf": [- {- "$ref": "#/definitions/CreditsSnapshot"- },- {- "type": "null"- }- ]- },- "limit_id": {- "type": [- "string",- "null"- ]- },- "limit_name": {- "type": [- "string",- "null"- ]- },- "plan_type": {- "anyOf": [- {- "$ref": "#/definitions/PlanType"- },- {- "type": "null"- }- ]- },- "primary": {- "anyOf": [- {- "$ref": "#/definitions/RateLimitWindow"- },- {- "type": "null"- }- ]- },- "secondary": {- "anyOf": [- {- "$ref": "#/definitions/RateLimitWindow"- },- {- "type": "null"- }- ]- }- },- "type": "object"- },- "RateLimitWindow": {- "properties": {- "resets_at": {- "description": "Unix timestamp (seconds since epoch) when the window resets.",- "format": "int64",- "type": [- "integer",- "null"- ]- },- "used_percent": {- "description": "Percentage (0-100) of the window that has been consumed.",- "format": "double",- "type": "number"- },- "window_minutes": {- "description": "Rolling window duration, in minutes.",- "format": "int64",- "type": [- "integer",- "null"- ]- }- },- "required": [- "used_percent"- ],- "type": "object"- },- "ReadOnlyAccess": {- "description": "Determines how read-only file access is granted inside a restricted sandbox.",- "oneOf": [- {- "description": "Restrict reads to an explicit set of roots.\n\nWhen `include_platform_defaults` is `true`, platform defaults required for basic execution are included in addition to `readable_roots`.",- "properties": {- "include_platform_defaults": {- "default": true,- "description": "Include built-in platform read roots required for basic process execution.",- "type": "boolean"- },- "readable_roots": {- "description": "Additional absolute roots that should be readable.",- "items": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": "array"- },- "type": {- "enum": [- "restricted"- ],- "title": "RestrictedReadOnlyAccessType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "RestrictedReadOnlyAccess",- "type": "object"- },- {- "description": "Allow unrestricted file reads.",- "properties": {- "type": {- "enum": [- "full-access"- ],- "title": "FullAccessReadOnlyAccessType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "FullAccessReadOnlyAccess",- "type": "object"- }- ]- },- "RealtimeAudioFrame": {- "properties": {- "data": {- "type": "string"- },- "num_channels": {- "format": "uint16",- "minimum": 0.0,- "type": "integer"- },- "sample_rate": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "samples_per_channel": {- "format": "uint32",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "required": [- "data",- "num_channels",- "sample_rate"- ],- "type": "object"- },- "RealtimeEvent": {- "oneOf": [- {- "additionalProperties": false,- "properties": {- "SessionCreated": {- "properties": {- "session_id": {- "type": "string"- }- },- "required": [- "session_id"- ],- "type": "object"- }- },- "required": [- "SessionCreated"- ],- "title": "SessionCreatedRealtimeEvent",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "SessionUpdated": {- "properties": {- "backend_prompt": {- "type": [- "string",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "SessionUpdated"- ],- "title": "SessionUpdatedRealtimeEvent",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "AudioOut": {- "$ref": "#/definitions/RealtimeAudioFrame"- }- },- "required": [- "AudioOut"- ],- "title": "AudioOutRealtimeEvent",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "ConversationItemAdded": true- },- "required": [- "ConversationItemAdded"- ],- "title": "ConversationItemAddedRealtimeEvent",- "type": "object"- },- {- "additionalProperties": false,- "properties": {- "Error": {- "type": "string"- }- },- "required": [- "Error"- ],- "title": "ErrorRealtimeEvent",- "type": "object"- }- ]- },- "ReasoningEffort": {- "description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",- "enum": [- "none",- "minimal",- "low",- "medium",- "high",- "xhigh"- ],- "type": "string"- },- "ReasoningItemContent": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "reasoning_text"- ],- "title": "ReasoningTextReasoningItemContentType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "ReasoningTextReasoningItemContent",- "type": "object"- },- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "text"- ],- "title": "TextReasoningItemContentType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "TextReasoningItemContent",- "type": "object"- }- ]- },- "ReasoningItemReasoningSummary": {- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "type": {- "enum": [- "summary_text"- ],- "title": "SummaryTextReasoningItemReasoningSummaryType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "SummaryTextReasoningItemReasoningSummary",- "type": "object"- }- ]- },- "RejectConfig": {- "properties": {- "mcp_elicitations": {- "description": "Reject MCP elicitation prompts.",- "type": "boolean"- },- "rules": {- "description": "Reject prompts triggered by execpolicy `prompt` rules.",- "type": "boolean"- },- "sandbox_approval": {- "description": "Reject approval prompts related to sandbox escalation.",- "type": "boolean"- }- },- "required": [- "mcp_elicitations",- "rules",- "sandbox_approval"- ],- "type": "object"- },- "RemoteSkillSummary": {- "properties": {- "description": {- "type": "string"- },- "id": {- "type": "string"- },- "name": {- "type": "string"- }- },- "required": [- "description",- "id",- "name"- ],- "type": "object"- },- "RequestId": {- "anyOf": [- {- "type": "string"- },- {- "format": "int64",- "type": "integer"- }- ],- "description": "ID of a request, which can be either a string or an integer."- },- "RequestUserInputQuestion": {- "properties": {- "header": {- "type": "string"- },- "id": {- "type": "string"- },- "isOther": {- "default": false,- "type": "boolean"- },- "isSecret": {- "default": false,- "type": "boolean"- },- "options": {- "items": {- "$ref": "#/definitions/RequestUserInputQuestionOption"- },- "type": [- "array",- "null"- ]- },- "question": {- "type": "string"- }- },- "required": [- "header",- "id",- "question"- ],- "type": "object"- },- "RequestUserInputQuestionOption": {- "properties": {- "description": {- "type": "string"- },- "label": {- "type": "string"- }- },- "required": [- "description",- "label"- ],- "type": "object"- },- "Resource": {- "description": "A known resource that the server is capable of reading.",- "properties": {- "_meta": true,- "annotations": true,- "description": {- "type": [- "string",- "null"- ]- },- "icons": {- "items": true,- "type": [- "array",- "null"- ]- },- "mimeType": {- "type": [- "string",- "null"- ]- },- "name": {- "type": "string"- },- "size": {- "format": "int64",- "type": [- "integer",- "null"- ]- },- "title": {- "type": [- "string",- "null"- ]- },- "uri": {- "type": "string"- }- },- "required": [- "name",- "uri"- ],- "type": "object"- },- "ResourceTemplate": {- "description": "A template description for resources available on the server.",- "properties": {- "annotations": true,- "description": {- "type": [- "string",- "null"- ]- },- "mimeType": {- "type": [- "string",- "null"- ]- },- "name": {- "type": "string"- },- "title": {- "type": [- "string",- "null"- ]- },- "uriTemplate": {- "type": "string"- }- },- "required": [- "name",- "uriTemplate"- ],- "type": "object"- },- "ResponseItem": {- "oneOf": [- {- "properties": {- "content": {- "items": {- "$ref": "#/definitions/ContentItem"- },- "type": "array"- },- "end_turn": {- "type": [- "boolean",- "null"- ]- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "phase": {- "anyOf": [- {- "$ref": "#/definitions/MessagePhase"- },- {- "type": "null"- }- ]- },- "role": {- "type": "string"- },- "type": {- "enum": [- "message"- ],- "title": "MessageResponseItemType",- "type": "string"- }- },- "required": [- "content",- "role",- "type"- ],- "title": "MessageResponseItem",- "type": "object"- },- {- "properties": {- "content": {- "default": null,- "items": {- "$ref": "#/definitions/ReasoningItemContent"- },- "type": [- "array",- "null"- ]- },- "encrypted_content": {- "type": [- "string",- "null"- ]- },- "id": {- "type": "string",- "writeOnly": true- },- "summary": {- "items": {- "$ref": "#/definitions/ReasoningItemReasoningSummary"- },- "type": "array"- },- "type": {- "enum": [- "reasoning"- ],- "title": "ReasoningResponseItemType",- "type": "string"- }- },- "required": [- "id",- "summary",- "type"- ],- "title": "ReasoningResponseItem",- "type": "object"- },- {- "properties": {- "action": {- "$ref": "#/definitions/LocalShellAction"- },- "call_id": {- "description": "Set when using the Responses API.",- "type": [- "string",- "null"- ]- },- "id": {- "description": "Legacy id field retained for compatibility with older payloads.",- "type": [- "string",- "null"- ],- "writeOnly": true- },- "status": {- "$ref": "#/definitions/LocalShellStatus"- },- "type": {- "enum": [- "local_shell_call"- ],- "title": "LocalShellCallResponseItemType",- "type": "string"- }- },- "required": [- "action",- "status",- "type"- ],- "title": "LocalShellCallResponseItem",- "type": "object"- },- {- "properties": {- "arguments": {- "type": "string"- },- "call_id": {- "type": "string"- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "name": {- "type": "string"- },- "type": {- "enum": [- "function_call"- ],- "title": "FunctionCallResponseItemType",- "type": "string"- }- },- "required": [- "arguments",- "call_id",- "name",- "type"- ],- "title": "FunctionCallResponseItem",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "output": {- "$ref": "#/definitions/FunctionCallOutputPayload"- },- "type": {- "enum": [- "function_call_output"- ],- "title": "FunctionCallOutputResponseItemType",- "type": "string"- }- },- "required": [- "call_id",- "output",- "type"- ],- "title": "FunctionCallOutputResponseItem",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "input": {- "type": "string"- },- "name": {- "type": "string"- },- "status": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "custom_tool_call"- ],- "title": "CustomToolCallResponseItemType",- "type": "string"- }- },- "required": [- "call_id",- "input",- "name",- "type"- ],- "title": "CustomToolCallResponseItem",- "type": "object"- },- {- "properties": {- "call_id": {- "type": "string"- },- "output": {- "type": "string"- },- "type": {- "enum": [- "custom_tool_call_output"- ],- "title": "CustomToolCallOutputResponseItemType",- "type": "string"- }- },- "required": [- "call_id",- "output",- "type"- ],- "title": "CustomToolCallOutputResponseItem",- "type": "object"- },- {- "properties": {- "action": {- "anyOf": [- {- "$ref": "#/definitions/WebSearchAction"- },- {- "type": "null"- }- ]- },- "id": {- "type": [- "string",- "null"- ],- "writeOnly": true- },- "status": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "web_search_call"- ],- "title": "WebSearchCallResponseItemType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "WebSearchCallResponseItem",- "type": "object"- },- {- "properties": {- "ghost_commit": {- "$ref": "#/definitions/GhostCommit"- },- "type": {- "enum": [- "ghost_snapshot"- ],- "title": "GhostSnapshotResponseItemType",- "type": "string"- }- },- "required": [- "ghost_commit",- "type"- ],- "title": "GhostSnapshotResponseItem",- "type": "object"- },- {- "properties": {- "encrypted_content": {- "type": "string"- },- "type": {- "enum": [- "compaction"- ],- "title": "CompactionResponseItemType",- "type": "string"- }- },- "required": [- "encrypted_content",- "type"- ],- "title": "CompactionResponseItem",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "other"- ],- "title": "OtherResponseItemType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "OtherResponseItem",- "type": "object"- }- ]- },- "Result_of_CallToolResult_or_String": {- "oneOf": [- {- "properties": {- "Ok": {- "$ref": "#/definitions/CallToolResult"- }- },- "required": [- "Ok"- ],- "title": "OkResult_of_CallToolResult_or_String",- "type": "object"- },- {- "properties": {- "Err": {- "type": "string"- }- },- "required": [- "Err"- ],- "title": "ErrResult_of_CallToolResult_or_String",- "type": "object"- }- ]- },- "ReviewCodeLocation": {- "description": "Location of the code related to a review finding.",- "properties": {- "absolute_file_path": {- "type": "string"- },- "line_range": {- "$ref": "#/definitions/ReviewLineRange"- }- },- "required": [- "absolute_file_path",- "line_range"- ],- "type": "object"- },- "ReviewFinding": {- "description": "A single review finding describing an observed issue or recommendation.",- "properties": {- "body": {- "type": "string"- },- "code_location": {- "$ref": "#/definitions/ReviewCodeLocation"- },- "confidence_score": {- "format": "float",- "type": "number"- },- "priority": {- "format": "int32",- "type": "integer"- },- "title": {- "type": "string"- }- },- "required": [- "body",- "code_location",- "confidence_score",- "priority",- "title"- ],- "type": "object"- },- "ReviewLineRange": {- "description": "Inclusive line range in a file associated with the finding.",- "properties": {- "end": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "start": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "end",- "start"- ],- "type": "object"- },- "ReviewOutputEvent": {- "description": "Structured review result produced by a child review session.",- "properties": {- "findings": {- "items": {- "$ref": "#/definitions/ReviewFinding"- },- "type": "array"- },- "overall_confidence_score": {- "format": "float",- "type": "number"- },- "overall_correctness": {- "type": "string"- },- "overall_explanation": {- "type": "string"- }- },- "required": [- "findings",- "overall_confidence_score",- "overall_correctness",- "overall_explanation"- ],- "type": "object"- },- "ReviewTarget": {- "oneOf": [- {- "description": "Review the working tree: staged, unstaged, and untracked files.",- "properties": {- "type": {- "enum": [- "uncommittedChanges"- ],- "title": "UncommittedChangesReviewTargetType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "UncommittedChangesReviewTarget",- "type": "object"- },- {- "description": "Review changes between the current branch and the given base branch.",- "properties": {- "branch": {- "type": "string"- },- "type": {- "enum": [- "baseBranch"- ],- "title": "BaseBranchReviewTargetType",- "type": "string"- }- },- "required": [- "branch",- "type"- ],- "title": "BaseBranchReviewTarget",- "type": "object"- },- {- "description": "Review the changes introduced by a specific commit.",- "properties": {- "sha": {- "type": "string"- },- "title": {- "description": "Optional human-readable label (e.g., commit subject) for UIs.",- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "commit"- ],- "title": "CommitReviewTargetType",- "type": "string"- }- },- "required": [- "sha",- "type"- ],- "title": "CommitReviewTarget",- "type": "object"- },- {- "description": "Arbitrary instructions provided by the user.",- "properties": {- "instructions": {- "type": "string"- },- "type": {- "enum": [- "custom"- ],- "title": "CustomReviewTargetType",- "type": "string"- }- },- "required": [- "instructions",- "type"- ],- "title": "CustomReviewTarget",- "type": "object"- }- ]- },- "SandboxPolicy": {- "description": "Determines execution restrictions for model shell commands.",- "oneOf": [- {- "description": "No restrictions whatsoever. Use with caution.",- "properties": {- "type": {- "enum": [- "danger-full-access"- ],- "title": "DangerFullAccessSandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "DangerFullAccessSandboxPolicy",- "type": "object"- },- {- "description": "Read-only access configuration.",- "properties": {- "access": {- "allOf": [- {- "$ref": "#/definitions/ReadOnlyAccess"- }- ],- "description": "Read access granted while running under this policy."- },- "type": {- "enum": [- "read-only"- ],- "title": "ReadOnlySandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ReadOnlySandboxPolicy",- "type": "object"- },- {- "description": "Indicates the process is already in an external sandbox. Allows full disk access while honoring the provided network setting.",- "properties": {- "network_access": {- "allOf": [- {- "$ref": "#/definitions/NetworkAccess"- }- ],- "default": "restricted",- "description": "Whether the external sandbox permits outbound network traffic."- },- "type": {- "enum": [- "external-sandbox"- ],- "title": "ExternalSandboxSandboxPolicyType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "ExternalSandboxSandboxPolicy",- "type": "object"- },- {- "description": "Same as `ReadOnly` but additionally grants write access to the current working directory (\"workspace\").",- "properties": {- "exclude_slash_tmp": {- "default": false,- "description": "When set to `true`, will NOT include the `/tmp` among the default writable roots on UNIX. Defaults to `false`.",- "type": "boolean"- },- "exclude_tmpdir_env_var": {- "default": false,- "description": "When set to `true`, will NOT include the per-user `TMPDIR` environment variable among the default writable roots. Defaults to `false`.",- "type": "boolean"- },- "network_access": {- "default": false,- "description": "When set to `true`, outbound network access is allowed. `false` by default.",- "type": "boolean"- },- "read_only_access": {- "allOf": [- {- "$ref": "#/definitions/ReadOnlyAccess"- }- ],- "description": "Read access granted while running under this policy."- },- "type": {- "enum": [- "workspace-write"- ],- "title": "WorkspaceWriteSandboxPolicyType",- "type": "string"- },- "writable_roots": {- "description": "Additional folders (beyond cwd and possibly TMPDIR) that should be writable from within the sandbox.",- "items": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": "array"- }- },- "required": [- "type"- ],- "title": "WorkspaceWriteSandboxPolicy",- "type": "object"- }- ]- },- "SessionNetworkProxyRuntime": {- "properties": {- "admin_addr": {- "type": "string"- },- "http_addr": {- "type": "string"- },- "socks_addr": {- "type": "string"- }- },- "required": [- "admin_addr",- "http_addr",- "socks_addr"- ],- "type": "object"- },- "SkillDependencies": {- "properties": {- "tools": {- "items": {- "$ref": "#/definitions/SkillToolDependency"- },- "type": "array"- }- },- "required": [- "tools"- ],- "type": "object"- },- "SkillErrorInfo": {- "properties": {- "message": {- "type": "string"- },- "path": {- "type": "string"- }- },- "required": [- "message",- "path"- ],- "type": "object"- },- "SkillInterface": {- "properties": {- "brand_color": {- "type": [- "string",- "null"- ]- },- "default_prompt": {- "type": [- "string",- "null"- ]- },- "display_name": {- "type": [- "string",- "null"- ]- },- "icon_large": {- "type": [- "string",- "null"- ]- },- "icon_small": {- "type": [- "string",- "null"- ]- },- "short_description": {- "type": [- "string",- "null"- ]- }- },- "type": "object"- },- "SkillMetadata": {- "properties": {- "dependencies": {- "anyOf": [- {- "$ref": "#/definitions/SkillDependencies"- },- {- "type": "null"- }- ]- },- "description": {- "type": "string"- },- "enabled": {- "type": "boolean"- },- "interface": {- "anyOf": [- {- "$ref": "#/definitions/SkillInterface"- },- {- "type": "null"- }- ]- },- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "scope": {- "$ref": "#/definitions/SkillScope"- },- "short_description": {- "description": "Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description.",- "type": [- "string",- "null"- ]- }- },- "required": [- "description",- "enabled",- "name",- "path",- "scope"- ],- "type": "object"- },- "SkillScope": {- "enum": [- "user",- "repo",- "system",- "admin"- ],- "type": "string"- },- "SkillToolDependency": {- "properties": {- "command": {- "type": [- "string",- "null"- ]- },- "description": {- "type": [- "string",- "null"- ]- },- "transport": {- "type": [- "string",- "null"- ]- },- "type": {- "type": "string"- },- "url": {- "type": [- "string",- "null"- ]- },- "value": {- "type": "string"- }- },- "required": [- "type",- "value"- ],- "type": "object"- },- "SkillsListEntry": {- "properties": {- "cwd": {- "type": "string"- },- "errors": {- "items": {- "$ref": "#/definitions/SkillErrorInfo"- },- "type": "array"- },- "skills": {- "items": {- "$ref": "#/definitions/SkillMetadata"- },- "type": "array"- }- },- "required": [- "cwd",- "errors",- "skills"- ],- "type": "object"- },- "StepStatus": {- "enum": [- "pending",- "in_progress",- "completed"- ],- "type": "string"- },- "TextElement": {- "properties": {- "byte_range": {- "allOf": [- {- "$ref": "#/definitions/ByteRange"- }- ],- "description": "Byte range in the parent `text` buffer that this element occupies."- },- "placeholder": {- "description": "Optional human-readable placeholder for the element, displayed in the UI.",- "type": [- "string",- "null"- ]- }- },- "required": [- "byte_range"- ],- "type": "object"- },- "ThreadId": {- "type": "string"- },- "TokenUsage": {- "properties": {- "cached_input_tokens": {- "format": "int64",- "type": "integer"- },- "input_tokens": {- "format": "int64",- "type": "integer"- },- "output_tokens": {- "format": "int64",- "type": "integer"- },- "reasoning_output_tokens": {- "format": "int64",- "type": "integer"- },- "total_tokens": {- "format": "int64",- "type": "integer"- }- },- "required": [- "cached_input_tokens",- "input_tokens",- "output_tokens",- "reasoning_output_tokens",- "total_tokens"- ],- "type": "object"- },- "TokenUsageInfo": {- "properties": {- "last_token_usage": {- "$ref": "#/definitions/TokenUsage"- },- "model_context_window": {- "format": "int64",- "type": [- "integer",- "null"- ]- },- "total_token_usage": {- "$ref": "#/definitions/TokenUsage"- }- },- "required": [- "last_token_usage",- "total_token_usage"- ],- "type": "object"- },- "Tool": {- "description": "Definition for a tool the client can call.",- "properties": {- "_meta": true,- "annotations": true,- "description": {- "type": [- "string",- "null"- ]- },- "icons": {- "items": true,- "type": [- "array",- "null"- ]- },- "inputSchema": true,- "name": {- "type": "string"- },- "outputSchema": true,- "title": {- "type": [- "string",- "null"- ]- }- },- "required": [- "inputSchema",- "name"- ],- "type": "object"- },- "TurnAbortReason": {- "enum": [- "interrupted",- "replaced",- "review_ended"- ],- "type": "string"- },- "TurnItem": {- "oneOf": [- {- "properties": {- "content": {- "items": {- "$ref": "#/definitions/UserInput"- },- "type": "array"- },- "id": {- "type": "string"- },- "type": {- "enum": [- "UserMessage"- ],- "title": "UserMessageTurnItemType",- "type": "string"- }- },- "required": [- "content",- "id",- "type"- ],- "title": "UserMessageTurnItem",- "type": "object"- },- {- "description": "Assistant-authored message payload used in turn-item streams.\n\n`phase` is optional because not all providers/models emit it. Consumers should use it when present, but retain legacy completion semantics when it is `None`.",- "properties": {- "content": {- "items": {- "$ref": "#/definitions/AgentMessageContent"- },- "type": "array"- },- "id": {- "type": "string"- },- "phase": {- "anyOf": [- {- "$ref": "#/definitions/MessagePhase"- },- {- "type": "null"- }- ],- "description": "Optional phase metadata carried through from `ResponseItem::Message`.\n\nThis is currently used by TUI rendering to distinguish mid-turn commentary from a final answer and avoid status-indicator jitter."- },- "type": {- "enum": [- "AgentMessage"- ],- "title": "AgentMessageTurnItemType",- "type": "string"- }- },- "required": [- "content",- "id",- "type"- ],- "title": "AgentMessageTurnItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "text": {- "type": "string"- },- "type": {- "enum": [- "Plan"- ],- "title": "PlanTurnItemType",- "type": "string"- }- },- "required": [- "id",- "text",- "type"- ],- "title": "PlanTurnItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "raw_content": {- "default": [],- "items": {- "type": "string"- },- "type": "array"- },- "summary_text": {- "items": {- "type": "string"- },- "type": "array"- },- "type": {- "enum": [- "Reasoning"- ],- "title": "ReasoningTurnItemType",- "type": "string"- }- },- "required": [- "id",- "summary_text",- "type"- ],- "title": "ReasoningTurnItem",- "type": "object"- },- {- "properties": {- "action": {- "$ref": "#/definitions/WebSearchAction"- },- "id": {- "type": "string"- },- "query": {- "type": "string"- },- "type": {- "enum": [- "WebSearch"- ],- "title": "WebSearchTurnItemType",- "type": "string"- }- },- "required": [- "action",- "id",- "query",- "type"- ],- "title": "WebSearchTurnItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "type": {- "enum": [- "ContextCompaction"- ],- "title": "ContextCompactionTurnItemType",- "type": "string"- }- },- "required": [- "id",- "type"- ],- "title": "ContextCompactionTurnItem",- "type": "object"- }- ]- },- "UserInput": {- "description": "User input",- "oneOf": [- {- "properties": {- "text": {- "type": "string"- },- "text_elements": {- "default": [],- "description": "UI-defined spans within `text` that should be treated as special elements. These are byte ranges into the UTF-8 `text` buffer and are used to render or persist rich input markers (e.g., image placeholders) across history and resume without mutating the literal text.",- "items": {- "$ref": "#/definitions/TextElement"- },- "type": "array"- },- "type": {- "enum": [- "text"- ],- "title": "TextUserInputType",- "type": "string"- }- },- "required": [- "text",- "type"- ],- "title": "TextUserInput",- "type": "object"- },- {- "description": "Pre‑encoded data: URI image.",- "properties": {- "image_url": {- "type": "string"- },- "type": {- "enum": [- "image"- ],- "title": "ImageUserInputType",- "type": "string"- }- },- "required": [- "image_url",- "type"- ],- "title": "ImageUserInput",- "type": "object"- },- {- "description": "Local image path provided by the user. This will be converted to an `Image` variant (base64 data URL) during request serialization.",- "properties": {- "path": {- "type": "string"- },- "type": {- "enum": [- "local_image"- ],- "title": "LocalImageUserInputType",- "type": "string"- }- },- "required": [- "path",- "type"- ],- "title": "LocalImageUserInput",- "type": "object"- },- {- "description": "Skill selected by the user (name + path to SKILL.md).",- "properties": {- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "type": {- "enum": [- "skill"- ],- "title": "SkillUserInputType",- "type": "string"- }- },- "required": [- "name",- "path",- "type"- ],- "title": "SkillUserInput",- "type": "object"- },- {- "description": "Explicit mention selected by the user (name + app://connector id).",- "properties": {- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "type": {- "enum": [- "mention"- ],- "title": "MentionUserInputType",- "type": "string"- }- },- "required": [- "name",- "path",- "type"- ],- "title": "MentionUserInput",- "type": "object"- }- ]- },- "WebSearchAction": {- "oneOf": [- {- "properties": {- "queries": {- "items": {- "type": "string"- },- "type": [- "array",- "null"- ]- },- "query": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "search"- ],- "title": "SearchWebSearchActionType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "SearchWebSearchAction",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "open_page"- ],- "title": "OpenPageWebSearchActionType",- "type": "string"- },- "url": {- "type": [- "string",- "null"- ]- }- },- "required": [- "type"- ],- "title": "OpenPageWebSearchAction",- "type": "object"- },- {- "properties": {- "pattern": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "find_in_page"- ],- "title": "FindInPageWebSearchActionType",- "type": "string"- },- "url": {- "type": [- "string",- "null"- ]- }- },- "required": [- "type"- ],- "title": "FindInPageWebSearchAction",- "type": "object"- },- {- "properties": {- "type": {- "enum": [- "other"- ],- "title": "OtherWebSearchActionType",- "type": "string"- }- },- "required": [- "type"- ],- "title": "OtherWebSearchAction",- "type": "object"- }- ]- }- },- "properties": {- "historyEntryCount": {- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "historyLogId": {- "format": "uint64",- "minimum": 0.0,- "type": "integer"- },- "initialMessages": {- "items": {- "$ref": "#/definitions/EventMsg"- },- "type": [- "array",- "null"- ]- },- "model": {- "type": "string"- },- "reasoningEffort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ]- },- "rolloutPath": {- "type": "string"- },- "sessionId": {- "$ref": "#/definitions/ThreadId"- }- },- "required": [- "historyEntryCount",- "historyLogId",- "model",- "rolloutPath",- "sessionId"- ],- "title": "SessionConfiguredNotification",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/SetDefaultModelParams.json b/codex-rs/app-server-protocol/schema/json/v1/SetDefaultModelParams.jsondeleted file mode 100644index 3027420212..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/SetDefaultModelParams.json+++ /dev/null@@ -1,37 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "ReasoningEffort": {- "description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",- "enum": [- "none",- "minimal",- "low",- "medium",- "high",- "xhigh"- ],- "type": "string"- }- },- "properties": {- "model": {- "type": [- "string",- "null"- ]- },- "reasoningEffort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ]- }- },- "title": "SetDefaultModelParams",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/SetDefaultModelResponse.json b/codex-rs/app-server-protocol/schema/json/v1/SetDefaultModelResponse.jsondeleted file mode 100644index bb61dada65..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/SetDefaultModelResponse.json+++ /dev/null@@ -1,5 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "title": "SetDefaultModelResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/UserInfoResponse.json b/codex-rs/app-server-protocol/schema/json/v1/UserInfoResponse.jsondeleted file mode 100644index 617f6b6706..0000000000--- a/codex-rs/app-server-protocol/schema/json/v1/UserInfoResponse.json+++ /dev/null@@ -1,13 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "allegedUserEmail": {- "type": [- "string",- "null"- ]- }- },- "title": "UserInfoResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/src/export.rs b/codex-rs/app-server-protocol/src/export.rsindex 1a4edfdf57..b6c8da90ea 100644--- a/codex-rs/app-server-protocol/src/export.rs+++ b/codex-rs/app-server-protocol/src/export.rs@@ -32,93 +32,41 @@ use std::io::Write;use std::path::Path;use std::path::PathBuf;use std::process::Command;-use std::sync::LazyLock;use ts_rs::TS;const HEADER: &str = "// GENERATED CODE! DO NOT MODIFY BY HAND!\n\n";const IGNORED_DEFINITIONS: &[&str] = &["Option<()>"];-static VARIANT_TITLE_COLLISION_OVERRIDES: LazyLock<HashMap<&'static str, &'static str>> =- LazyLock::new(|| {- HashMap::from([- (- "base=McpStartupStatus|generated=StateMcpStartupStatus|literal:state=ready|only_property=state|required_only=state",- "StateMcpStartupStatus2",- ),- (- "base=McpStartupStatus|generated=StateMcpStartupStatus|literal:state=cancelled|only_property=state|required_only=state",- "StateMcpStartupStatus3",- ),- ])- });-static NUMBERED_DEFINITION_COLLISION_OVERRIDES: LazyLock<HashMap<&'static str, &'static str>> =- LazyLock::new(|| {- HashMap::from([- (- "schema=ClientRequest|container=definitions|generated=AskForApproval2|base=AskForApproval",- "AskForApproval2",- ),- (- "schema=ClientRequest|container=definitions|generated=NetworkAccess2|base=NetworkAccess",- "NetworkAccess2",- ),- (- "schema=ClientRequest|container=definitions|generated=ReadOnlyAccess2|base=ReadOnlyAccess",- "ReadOnlyAccess2",- ),- (- "schema=ClientRequest|container=definitions|generated=SandboxMode2|base=SandboxMode",- "SandboxMode2",- ),- (- "schema=ClientRequest|container=definitions|generated=SandboxPolicy2|base=SandboxPolicy",- "SandboxPolicy2",- ),- (- "schema=ServerNotification|container=definitions|generated=ByteRange2|base=ByteRange",- "ByteRange2",- ),- (- "schema=ServerNotification|container=definitions|generated=CodexErrorInfo2|base=CodexErrorInfo",- "CodexErrorInfo2",- ),- (- "schema=ServerNotification|container=definitions|generated=CreditsSnapshot2|base=CreditsSnapshot",- "CreditsSnapshot2",- ),- (- "schema=ServerNotification|container=definitions|generated=MessagePhase2|base=MessagePhase",- "MessagePhase2",- ),- (- "schema=ServerNotification|container=definitions|generated=ModelRerouteReason2|base=ModelRerouteReason",- "ModelRerouteReason2",- ),- (- "schema=ServerNotification|container=definitions|generated=PatchApplyStatus2|base=PatchApplyStatus",- "PatchApplyStatus2",- ),- (- "schema=ServerNotification|container=definitions|generated=RateLimitSnapshot2|base=RateLimitSnapshot",- "RateLimitSnapshot2",- ),- (- "schema=ServerNotification|container=definitions|generated=RateLimitWindow2|base=RateLimitWindow",- "RateLimitWindow2",- ),- (- "schema=ServerNotification|container=definitions|generated=TextElement2|base=TextElement",- "TextElement2",- ),- (- "schema=ServerNotification|container=definitions|generated=UserInput2|base=UserInput",- "UserInput2",- ),- (- "schema=ServerNotification|container=definitions|generated=WebSearchAction2|base=WebSearchAction",- "WebSearchAction2",- ),- ])- });+const JSON_V1_ALLOWLIST: &[&str] = &["InitializeParams", "InitializeResponse"];+const V1_CLIENT_REQUEST_METHODS: &[&str] = &[+ "newConversation",+ "getConversationSummary",+ "listConversations",+ "resumeConversation",+ "forkConversation",+ "archiveConversation",+ "sendUserMessage",+ "sendUserTurn",+ "interruptConversation",+ "addConversationListener",+ "removeConversationListener",+ "gitDiffToRemote",+ "loginApiKey",+ "loginChatGpt",+ "cancelLoginChatGpt",+ "logoutChatGpt",+ "getAuthStatus",+ "getUserSavedConfig",+ "setDefaultModel",+ "getUserAgent",+ "userInfo",+ "execOneOffCommand",+];+const EXCLUDED_SERVER_NOTIFICATION_METHODS_FOR_JSON: &[&str] = &[+ "authStatusChange",+ "loginChatGptComplete",+ "sessionConfigured",+ "rawResponseItem/completed",+];#[derive(Clone)]pub struct GeneratedSchema {@@ -264,6 +212,8 @@ pub fn generate_json_with_experimental(out_dir: &Path, experimental_api: bool) -schemas.extend(export_server_response_schemas(out_dir)?);schemas.extend(export_client_notification_schemas(out_dir)?);schemas.extend(export_server_notification_schemas(out_dir)?);+ schemas+ .retain(|schema| !schema.in_v1_dir || JSON_V1_ALLOWLIST.contains(&schema.logical_name()));let mut bundle = build_schema_bundle(schemas)?;if !experimental_api {@@ -1031,14 +981,23 @@ whereT: JsonSchema,{let file_stem = name.trim();+ let (raw_namespace, logical_name) = split_namespace(file_stem);+ let include_in_json_codegen =+ raw_namespace != Some("v1") || JSON_V1_ALLOWLIST.contains(&logical_name);let schema = schema_for!(T);let mut schema_value = serde_json::to_value(schema)?;- enforce_numbered_definition_collision_overrides(file_stem, &mut schema_value);- annotate_schema(&mut schema_value, Some(file_stem));+ if include_in_json_codegen {+ if file_stem == "ClientRequest" {+ strip_v1_client_request_variants_from_json_schema(&mut schema_value);+ } else if file_stem == "ServerNotification" {+ strip_v1_server_notification_variants_from_json_schema(&mut schema_value);+ }+ enforce_numbered_definition_collision_overrides(file_stem, &mut schema_value);+ annotate_schema(&mut schema_value, Some(file_stem));+ }// If the name looks like a namespaced path (e.g., "v2::Type"), mirror// the TypeScript layout and write to out_dir/v2/Type.json. Otherwise// write alongside the legacy files.- let (raw_namespace, logical_name) = split_namespace(file_stem);let out_path = if let Some(ns) = raw_namespace {let dir = out_dir.join(ns);ensure_dir(&dir)?;@@ -1047,7 +1006,7 @@ whereout_dir.join(format!("{file_stem}.json"))};- if !IGNORED_DEFINITIONS.contains(&logical_name) {+ if include_in_json_codegen && !IGNORED_DEFINITIONS.contains(&logical_name) {write_pretty_json(out_path, &schema_value).with_context(|| format!("Failed to write JSON schema for {file_stem}"))?;}@@ -1066,99 +1025,165 @@ wherefn enforce_numbered_definition_collision_overrides(schema_name: &str, schema: &mut Value) {for defs_key in ["definitions", "$defs"] {- let renames = {- let Some(defs) = schema.get(defs_key).and_then(Value::as_object) else {- continue;- };- collect_numbered_definition_collision_renames(schema_name, defs_key, defs)+ let Some(defs) = schema.get(defs_key).and_then(Value::as_object) else {+ continue;};+ detect_numbered_definition_collisions(schema_name, defs_key, defs);+ }+}- if renames.is_empty() {- continue;- }+fn strip_v1_client_request_variants_from_json_schema(schema: &mut Value) {+ let v1_methods: HashSet<&str> = V1_CLIENT_REQUEST_METHODS.iter().copied().collect();+ strip_method_variants_from_json_schema(schema, &v1_methods);+}- #[expect(clippy::expect_used)]- let defs = schema- .get_mut(defs_key)- .and_then(Value::as_object_mut)- .expect("definition map should still be present");- for (old_name, new_name, collision_key) in &renames {- if old_name == new_name {- continue;- }- assert!(- !defs.contains_key(new_name),- "Numbered definition collision override produced duplicate definition {new_name} for {collision_key}",- );- let schema_value = defs.remove(old_name).unwrap_or_else(|| {- panic!("Missing generated numbered definition {old_name} for {collision_key}")- });- defs.insert(new_name.clone(), schema_value);- }+fn strip_v1_server_notification_variants_from_json_schema(schema: &mut Value) {+ let methods: HashSet<&str> = EXCLUDED_SERVER_NOTIFICATION_METHODS_FOR_JSON+ .iter()+ .copied()+ .collect();+ strip_method_variants_from_json_schema(schema, &methods);+}- for (old_name, new_name, _) in renames {- if old_name != new_name {- rewrite_named_local_ref(schema, defs_key, &old_name, &new_name);- }- }+fn strip_method_variants_from_json_schema(schema: &mut Value, methods_to_remove: &HashSet<&str>) {+ {+ let Some(root) = schema.as_object_mut() else {+ return;+ };+ let Some(Value::Array(variants)) = root.get_mut("oneOf") else {+ return;+ };+ variants.retain(|variant| !is_method_variant_in_set(variant, methods_to_remove));+ }++ let reachable = reachable_local_definitions(schema, "definitions");+ let Some(root) = schema.as_object_mut() else {+ return;+ };+ if let Some(definitions) = root.get_mut("definitions").and_then(Value::as_object_mut) {+ definitions.retain(|name, _| reachable.contains(name));}}-fn collect_numbered_definition_collision_renames(- schema_name: &str,- defs_key: &str,- defs: &Map<String, Value>,-) -> Vec<(String, String, String)> {- let mut renames = Vec::new();+fn is_method_variant_in_set(value: &Value, methods: &HashSet<&str>) -> bool {+ let Value::Object(map) = value else {+ return false;+ };+ let Some(properties) = map.get("properties").and_then(Value::as_object) else {+ return false;+ };+ let Some(method_schema) = properties.get("method") else {+ return false;+ };+ let Some(method) = string_literal(method_schema) else {+ return false;+ };+ methods.contains(method)+}- for generated_name in defs.keys() {- let base_name = generated_name.trim_end_matches(|c: char| c.is_ascii_digit());- if base_name == generated_name || !defs.contains_key(base_name) {- continue;- }+fn reachable_local_definitions(schema: &Value, defs_key: &str) -> HashSet<String> {+ let Some(definitions) = schema.get(defs_key).and_then(Value::as_object) else {+ return HashSet::new();+ };+ let mut queue: Vec<String> = Vec::new();+ let mut reachable: HashSet<String> = HashSet::new();- let collision_key = format!(- "schema={schema_name}|container={defs_key}|generated={generated_name}|base={base_name}"- );- let replacement = NUMBERED_DEFINITION_COLLISION_OVERRIDES- .get(collision_key.as_str())- .map(|value| (*value).to_string())- .unwrap_or_else(|| {- panic!("Missing numbered definition collision override for {collision_key}")- });- renames.push((generated_name.clone(), replacement, collision_key));- }+ collect_local_definition_refs_excluding_maps(schema, defs_key, &mut queue, &mut reachable);- renames+ while let Some(name) = queue.pop() {+ if let Some(def_schema) = definitions.get(&name) {+ collect_local_definition_refs(def_schema, defs_key, &mut queue, &mut reachable);+ }+ }+ reachable}-fn rewrite_named_local_ref(value: &mut Value, defs_key: &str, old_name: &str, new_name: &str) {- let direct = format!("#/{defs_key}/{old_name}");- let prefixed = format!("{direct}/");- let replacement = format!("#/{defs_key}/{new_name}");- let replacement_prefixed = format!("{replacement}/");+fn collect_local_definition_refs_excluding_maps(+ value: &Value,+ defs_key: &str,+ queue: &mut Vec<String>,+ reachable: &mut HashSet<String>,+) {match value {- Value::Object(obj) => {- if let Some(Value::String(reference)) = obj.get_mut("$ref") {- if reference == &direct {- *reference = replacement;- } else if let Some(rest) = reference.strip_prefix(&prefixed) {- *reference = format!("{replacement_prefixed}{rest}");+ Value::Object(map) => {+ for (key, child) in map {+ if key == defs_key || key == "$defs" || key == "definitions" {+ continue;}+ collect_local_definition_refs_excluding_maps(child, defs_key, queue, reachable);}- for child in obj.values_mut() {- rewrite_named_local_ref(child, defs_key, old_name, new_name);+ }+ Value::Array(items) => {+ for child in items {+ collect_local_definition_refs_excluding_maps(child, defs_key, queue, reachable);+ }+ }+ _ => {}+ }+ collect_local_definition_ref_here(value, defs_key, queue, reachable);+}++fn collect_local_definition_refs(+ value: &Value,+ defs_key: &str,+ queue: &mut Vec<String>,+ reachable: &mut HashSet<String>,+) {+ collect_local_definition_ref_here(value, defs_key, queue, reachable);+ match value {+ Value::Object(map) => {+ for child in map.values() {+ collect_local_definition_refs(child, defs_key, queue, reachable);}}Value::Array(items) => {for child in items {- rewrite_named_local_ref(child, defs_key, old_name, new_name);+ collect_local_definition_refs(child, defs_key, queue, reachable);}}_ => {}}}+fn collect_local_definition_ref_here(+ value: &Value,+ defs_key: &str,+ queue: &mut Vec<String>,+ reachable: &mut HashSet<String>,+) {+ let Some(reference) = value+ .as_object()+ .and_then(|obj| obj.get("$ref"))+ .and_then(Value::as_str)+ else {+ return;+ };+ let Some(name) = reference.strip_prefix(&format!("#/{defs_key}/")) else {+ return;+ };+ let name = name.split('/').next().unwrap_or(name);+ if reachable.insert(name.to_string()) {+ queue.push(name.to_string());+ }+}++fn detect_numbered_definition_collisions(+ schema_name: &str,+ defs_key: &str,+ defs: &Map<String, Value>,+) {+ for generated_name in defs.keys() {+ let base_name = generated_name.trim_end_matches(|c: char| c.is_ascii_digit());+ if base_name == generated_name || !defs.contains_key(base_name) {+ continue;+ }++ panic!(+ "Numbered definition naming collision detected: schema={schema_name}|container={defs_key}|generated={generated_name}|base={base_name}"+ );+ }+}+pub(crate) fn write_json_schema<T>(out_dir: &Path, name: &str) -> Result<GeneratedSchema>whereT: JsonSchema,@@ -1263,7 +1288,11 @@ fn variant_definition_name(base: &str, variant: &Value) -> Option<String> {if props.len() == 1&& let Some(key) = props.keys().next(){- let pascal = to_pascal_case(key);+ let pascal = props+ .get(key)+ .and_then(string_literal)+ .map(to_pascal_case)+ .unwrap_or_else(|| to_pascal_case(key));return Some(format!("{pascal}{base}"));}}@@ -1376,20 +1405,11 @@ fn annotate_variant_list(variants: &mut [Value], base: Option<&str>) {&& let Some(base_name) = base&& let Some(name) = variant_definition_name(base_name, variant){- let mut candidate = name.clone();+ let candidate = name.clone();if seen.contains(&candidate) {let collision_key = variant_title_collision_key(base_name, &name, variant);- candidate = VARIANT_TITLE_COLLISION_OVERRIDES- .get(collision_key.as_str())- .map(|value| (*value).to_string())- .unwrap_or_else(|| {- panic!(- "Missing variant title collision override for {collision_key} (generated name: {name})"- )- });- assert!(- !seen.contains(&candidate),- "Variant title collision override produced duplicate title {candidate} for {collision_key}",+ panic!(+ "Variant title naming collision detected: {collision_key} (generated name: {name})");}if let Some(obj) = variant.as_object_mut() {