Lightweight coding agent that runs in your terminal
Rust
fix(app-server): mark thread/turns/list and exclude_turns as experime… (#20499)
Owen Lin5affb7f9d57e
diff --git a/codex-rs/app-server-protocol/schema/json/ClientRequest.json b/codex-rs/app-server-protocol/schema/json/ClientRequest.jsonindex 4baab4081c..e6c5fbbbc9 100644--- a/codex-rs/app-server-protocol/schema/json/ClientRequest.json+++ b/codex-rs/app-server-protocol/schema/json/ClientRequest.json@@ -3453,10 +3453,6 @@"ephemeral": {"type": "boolean"},- "excludeTurns": {- "description": "When true, return only thread metadata and live fork state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after forking.",- "type": "boolean"- },"model": {"description": "Configuration overrides for the forked thread, if any.","type": [@@ -3858,10 +3854,6 @@"null"]},- "excludeTurns": {- "description": "When true, return only thread metadata and live-resume state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after resuming.",- "type": "boolean"- },"model": {"description": "Configuration overrides for the resumed thread, if any.","type": [@@ -4121,44 +4113,6 @@],"type": "string"},- "ThreadTurnsListParams": {- "properties": {- "cursor": {- "description": "Opaque cursor to pass to the next call to continue after the last turn.",- "type": [- "string",- "null"- ]- },- "limit": {- "description": "Optional turn page size.",- "format": "uint32",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- },- "sortDirection": {- "anyOf": [- {- "$ref": "#/definitions/SortDirection"- },- {- "type": "null"- }- ],- "description": "Optional turn pagination direction; defaults to descending."- },- "threadId": {- "type": "string"- }- },- "required": [- "threadId"- ],- "type": "object"- },"ThreadUnarchiveParams": {"properties": {"threadId": {@@ -4889,30 +4843,6 @@"title": "Thread/readRequest","type": "object"},- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "thread/turns/list"- ],- "title": "Thread/turns/listRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ThreadTurnsListParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Thread/turns/listRequest",- "type": "object"- },{"description": "Append raw Responses API items to the thread history without starting a user turn.","properties": {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 b0687e7089..fdd975c4e5 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@@ -569,30 +569,6 @@"title": "Thread/readRequest","type": "object"},- {- "properties": {- "id": {- "$ref": "#/definitions/v2/RequestId"- },- "method": {- "enum": [- "thread/turns/list"- ],- "title": "Thread/turns/listRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/v2/ThreadTurnsListParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Thread/turns/listRequest",- "type": "object"- },{"description": "Append raw Responses API items to the thread history without starting a user turn.","properties": {@@ -15053,10 +15029,6 @@"ephemeral": {"type": "boolean"},- "excludeTurns": {- "description": "When true, return only thread metadata and live fork state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after forking.",- "type": "boolean"- },"model": {"description": "Configuration overrides for the forked thread, if any.","type": [@@ -16554,10 +16526,6 @@"null"]},- "excludeTurns": {- "description": "When true, return only thread metadata and live-resume state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after resuming.",- "type": "boolean"- },"model": {"description": "Configuration overrides for the resumed thread, if any.","type": [@@ -17152,76 +17120,6 @@"title": "ThreadTokenUsageUpdatedNotification","type": "object"},- "ThreadTurnsListParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "cursor": {- "description": "Opaque cursor to pass to the next call to continue after the last turn.",- "type": [- "string",- "null"- ]- },- "limit": {- "description": "Optional turn page size.",- "format": "uint32",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- },- "sortDirection": {- "anyOf": [- {- "$ref": "#/definitions/v2/SortDirection"- },- {- "type": "null"- }- ],- "description": "Optional turn pagination direction; defaults to descending."- },- "threadId": {- "type": "string"- }- },- "required": [- "threadId"- ],- "title": "ThreadTurnsListParams",- "type": "object"- },- "ThreadTurnsListResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "backwardsCursor": {- "description": "Opaque cursor to pass as `cursor` when reversing `sortDirection`. This is only populated when the page contains at least one turn. Use it with the opposite `sortDirection` to include the anchor turn again and catch updates to that turn.",- "type": [- "string",- "null"- ]- },- "data": {- "items": {- "$ref": "#/definitions/v2/Turn"- },- "type": "array"- },- "nextCursor": {- "description": "Opaque cursor to pass to the next call to continue after the last turn. if None, there are no more turns to return.",- "type": [- "string",- "null"- ]- }- },- "required": [- "data"- ],- "title": "ThreadTurnsListResponse",- "type": "object"- },"ThreadUnarchiveParams": {"$schema": "http://json-schema.org/draft-07/schema#","properties": {diff --git a/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json b/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.jsonindex c00abca266..ab4b8bf653 100644--- a/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json+++ b/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json@@ -1328,30 +1328,6 @@"title": "Thread/readRequest","type": "object"},- {- "properties": {- "id": {- "$ref": "#/definitions/RequestId"- },- "method": {- "enum": [- "thread/turns/list"- ],- "title": "Thread/turns/listRequestMethod",- "type": "string"- },- "params": {- "$ref": "#/definitions/ThreadTurnsListParams"- }- },- "required": [- "id",- "method",- "params"- ],- "title": "Thread/turns/listRequest",- "type": "object"- },{"description": "Append raw Responses API items to the thread history without starting a user turn.","properties": {@@ -12939,10 +12915,6 @@"ephemeral": {"type": "boolean"},- "excludeTurns": {- "description": "When true, return only thread metadata and live fork state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after forking.",- "type": "boolean"- },"model": {"description": "Configuration overrides for the forked thread, if any.","type": [@@ -14440,10 +14412,6 @@"null"]},- "excludeTurns": {- "description": "When true, return only thread metadata and live-resume state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after resuming.",- "type": "boolean"- },"model": {"description": "Configuration overrides for the resumed thread, if any.","type": [@@ -15038,76 +15006,6 @@"title": "ThreadTokenUsageUpdatedNotification","type": "object"},- "ThreadTurnsListParams": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "cursor": {- "description": "Opaque cursor to pass to the next call to continue after the last turn.",- "type": [- "string",- "null"- ]- },- "limit": {- "description": "Optional turn page size.",- "format": "uint32",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- },- "sortDirection": {- "anyOf": [- {- "$ref": "#/definitions/SortDirection"- },- {- "type": "null"- }- ],- "description": "Optional turn pagination direction; defaults to descending."- },- "threadId": {- "type": "string"- }- },- "required": [- "threadId"- ],- "title": "ThreadTurnsListParams",- "type": "object"- },- "ThreadTurnsListResponse": {- "$schema": "http://json-schema.org/draft-07/schema#",- "properties": {- "backwardsCursor": {- "description": "Opaque cursor to pass as `cursor` when reversing `sortDirection`. This is only populated when the page contains at least one turn. Use it with the opposite `sortDirection` to include the anchor turn again and catch updates to that turn.",- "type": [- "string",- "null"- ]- },- "data": {- "items": {- "$ref": "#/definitions/Turn"- },- "type": "array"- },- "nextCursor": {- "description": "Opaque cursor to pass to the next call to continue after the last turn. if None, there are no more turns to return.",- "type": [- "string",- "null"- ]- }- },- "required": [- "data"- ],- "title": "ThreadTurnsListResponse",- "type": "object"- },"ThreadUnarchiveParams": {"$schema": "http://json-schema.org/draft-07/schema#","properties": {diff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadForkParams.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadForkParams.jsonindex ed81297d5f..970e2fe9ca 100644--- a/codex-rs/app-server-protocol/schema/json/v2/ThreadForkParams.json+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadForkParams.json@@ -190,10 +190,6 @@"ephemeral": {"type": "boolean"},- "excludeTurns": {- "description": "When true, return only thread metadata and live fork state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after forking.",- "type": "boolean"- },"model": {"description": "Configuration overrides for the forked thread, if any.","type": [diff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeParams.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeParams.jsonindex 94ecf2c26f..cfe6509195 100644--- a/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeParams.json+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeParams.json@@ -1045,10 +1045,6 @@"null"]},- "excludeTurns": {- "description": "When true, return only thread metadata and live-resume state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after resuming.",- "type": "boolean"- },"model": {"description": "Configuration overrides for the resumed thread, if any.","type": [diff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadTurnsListParams.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadTurnsListParams.jsondeleted file mode 100644index ed58a45469..0000000000--- a/codex-rs/app-server-protocol/schema/json/v2/ThreadTurnsListParams.json+++ /dev/null@@ -1,49 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "SortDirection": {- "enum": [- "asc",- "desc"- ],- "type": "string"- }- },- "properties": {- "cursor": {- "description": "Opaque cursor to pass to the next call to continue after the last turn.",- "type": [- "string",- "null"- ]- },- "limit": {- "description": "Optional turn page size.",- "format": "uint32",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- },- "sortDirection": {- "anyOf": [- {- "$ref": "#/definitions/SortDirection"- },- {- "type": "null"- }- ],- "description": "Optional turn pagination direction; defaults to descending."- },- "threadId": {- "type": "string"- }- },- "required": [- "threadId"- ],- "title": "ThreadTurnsListParams",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadTurnsListResponse.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadTurnsListResponse.jsondeleted file mode 100644index eaa3becdea..0000000000--- a/codex-rs/app-server-protocol/schema/json/v2/ThreadTurnsListResponse.json+++ /dev/null@@ -1,1638 +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"- },- "ByteRange": {- "properties": {- "end": {- "format": "uint",- "minimum": 0.0,- "type": "integer"- },- "start": {- "format": "uint",- "minimum": 0.0,- "type": "integer"- }- },- "required": [- "end",- "start"- ],- "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": [- {- "enum": [- "contextWindowExceeded",- "usageLimitExceeded",- "serverOverloaded",- "cyberPolicy",- "internalServerError",- "unauthorized",- "badRequest",- "threadRollbackFailed",- "sandboxError",- "other"- ],- "type": "string"- },- {- "additionalProperties": false,- "properties": {- "httpConnectionFailed": {- "properties": {- "httpStatusCode": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "httpConnectionFailed"- ],- "title": "HttpConnectionFailedCodexErrorInfo",- "type": "object"- },- {- "additionalProperties": false,- "description": "Failed to connect to the response SSE stream.",- "properties": {- "responseStreamConnectionFailed": {- "properties": {- "httpStatusCode": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "responseStreamConnectionFailed"- ],- "title": "ResponseStreamConnectionFailedCodexErrorInfo",- "type": "object"- },- {- "additionalProperties": false,- "description": "The response SSE stream disconnected in the middle of a turn before completion.",- "properties": {- "responseStreamDisconnected": {- "properties": {- "httpStatusCode": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "responseStreamDisconnected"- ],- "title": "ResponseStreamDisconnectedCodexErrorInfo",- "type": "object"- },- {- "additionalProperties": false,- "description": "Reached the retry limit for responses.",- "properties": {- "responseTooManyFailedAttempts": {- "properties": {- "httpStatusCode": {- "format": "uint16",- "minimum": 0.0,- "type": [- "integer",- "null"- ]- }- },- "type": "object"- }- },- "required": [- "responseTooManyFailedAttempts"- ],- "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",- "type": "object"- },- {- "additionalProperties": false,- "description": "Returned when `turn/start` or `turn/steer` is submitted while the current active turn cannot accept same-turn steering, for example `/review` or manual `/compact`.",- "properties": {- "activeTurnNotSteerable": {- "properties": {- "turnKind": {- "$ref": "#/definitions/NonSteerableTurnKind"- }- },- "required": [- "turnKind"- ],- "type": "object"- }- },- "required": [- "activeTurnNotSteerable"- ],- "title": "ActiveTurnNotSteerableCodexErrorInfo",- "type": "object"- }- ]- },- "CollabAgentState": {- "properties": {- "message": {- "type": [- "string",- "null"- ]- },- "status": {- "$ref": "#/definitions/CollabAgentStatus"- }- },- "required": [- "status"- ],- "type": "object"- },- "CollabAgentStatus": {- "enum": [- "pendingInit",- "running",- "interrupted",- "completed",- "errored",- "shutdown",- "notFound"- ],- "type": "string"- },- "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": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "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",- "type": "object"- },- {- "properties": {- "command": {- "type": "string"- },- "path": {- "type": [- "string",- "null"- ]- },- "query": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "search"- ],- "title": "SearchCommandActionType",- "type": "string"- }- },- "required": [- "command",- "type"- ],- "title": "SearchCommandAction",- "type": "object"- },- {- "properties": {- "command": {- "type": "string"- },- "type": {- "enum": [- "unknown"- ],- "title": "UnknownCommandActionType",- "type": "string"- }- },- "required": [- "command",- "type"- ],- "title": "UnknownCommandAction",- "type": "object"- }- ]- },- "CommandExecutionSource": {- "enum": [- "agent",- "userShell",- "unifiedExecStartup",- "unifiedExecInteraction"- ],- "type": "string"- },- "CommandExecutionStatus": {- "enum": [- "inProgress",- "completed",- "failed",- "declined"- ],- "type": "string"- },- "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"- }- ]- },- "DynamicToolCallStatus": {- "enum": [- "inProgress",- "completed",- "failed"- ],- "type": "string"- },- "FileUpdateChange": {- "properties": {- "diff": {- "type": "string"- },- "kind": {- "$ref": "#/definitions/PatchChangeKind"- },- "path": {- "type": "string"- }- },- "required": [- "diff",- "kind",- "path"- ],- "type": "object"- },- "HookPromptFragment": {- "properties": {- "hookRunId": {- "type": "string"- },- "text": {- "type": "string"- }- },- "required": [- "hookRunId",- "text"- ],- "type": "object"- },- "McpToolCallError": {- "properties": {- "message": {- "type": "string"- }- },- "required": [- "message"- ],- "type": "object"- },- "McpToolCallResult": {- "properties": {- "_meta": true,- "content": {- "items": true,- "type": "array"- },- "structuredContent": true- },- "required": [- "content"- ],- "type": "object"- },- "McpToolCallStatus": {- "enum": [- "inProgress",- "completed",- "failed"- ],- "type": "string"- },- "MemoryCitation": {- "properties": {- "entries": {- "items": {- "$ref": "#/definitions/MemoryCitationEntry"- },- "type": "array"- },- "threadIds": {- "items": {- "type": "string"- },- "type": "array"- }- },- "required": [- "entries",- "threadIds"- ],- "type": "object"- },- "MemoryCitationEntry": {- "properties": {- "lineEnd": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "lineStart": {- "format": "uint32",- "minimum": 0.0,- "type": "integer"- },- "note": {- "type": "string"- },- "path": {- "type": "string"- }- },- "required": [- "lineEnd",- "lineStart",- "note",- "path"- ],- "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"- }- ]- },- "NonSteerableTurnKind": {- "enum": [- "review",- "compact"- ],- "type": "string"- },- "PatchApplyStatus": {- "enum": [- "inProgress",- "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"- }- ]- },- "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"- },- "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"- },- "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": {- "fragments": {- "items": {- "$ref": "#/definitions/HookPromptFragment"- },- "type": "array"- },- "id": {- "type": "string"- },- "type": {- "enum": [- "hookPrompt"- ],- "title": "HookPromptThreadItemType",- "type": "string"- }- },- "required": [- "fragments",- "id",- "type"- ],- "title": "HookPromptThreadItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "memoryCitation": {- "anyOf": [- {- "$ref": "#/definitions/MemoryCitation"- },- {- "type": "null"- }- ],- "default": null- },- "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": {- "allOf": [- {- "$ref": "#/definitions/AbsolutePathBuf"- }- ],- "description": "The command's working directory."- },- "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"- ]- },- "source": {- "allOf": [- {- "$ref": "#/definitions/CommandExecutionSource"- }- ],- "default": "agent"- },- "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"- },- "mcpAppResourceUri": {- "type": [- "string",- "null"- ]- },- "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": {- "arguments": true,- "contentItems": {- "items": {- "$ref": "#/definitions/DynamicToolCallOutputContentItem"- },- "type": [- "array",- "null"- ]- },- "durationMs": {- "description": "The duration of the dynamic tool call in milliseconds.",- "format": "int64",- "type": [- "integer",- "null"- ]- },- "id": {- "type": "string"- },- "namespace": {- "type": [- "string",- "null"- ]- },- "status": {- "$ref": "#/definitions/DynamicToolCallStatus"- },- "success": {- "type": [- "boolean",- "null"- ]- },- "tool": {- "type": "string"- },- "type": {- "enum": [- "dynamicToolCall"- ],- "title": "DynamicToolCallThreadItemType",- "type": "string"- }- },- "required": [- "arguments",- "id",- "status",- "tool",- "type"- ],- "title": "DynamicToolCallThreadItem",- "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"- },- "model": {- "description": "Model requested for the spawned agent, when applicable.",- "type": [- "string",- "null"- ]- },- "prompt": {- "description": "Prompt text sent as part of the collab tool call, when available.",- "type": [- "string",- "null"- ]- },- "reasoningEffort": {- "anyOf": [- {- "$ref": "#/definitions/ReasoningEffort"- },- {- "type": "null"- }- ],- "description": "Reasoning effort requested for the spawned agent, when applicable."- },- "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": {- "$ref": "#/definitions/AbsolutePathBuf"- },- "type": {- "enum": [- "imageView"- ],- "title": "ImageViewThreadItemType",- "type": "string"- }- },- "required": [- "id",- "path",- "type"- ],- "title": "ImageViewThreadItem",- "type": "object"- },- {- "properties": {- "id": {- "type": "string"- },- "result": {- "type": "string"- },- "revisedPrompt": {- "type": [- "string",- "null"- ]- },- "savedPath": {- "anyOf": [- {- "$ref": "#/definitions/AbsolutePathBuf"- },- {- "type": "null"- }- ]- },- "status": {- "type": "string"- },- "type": {- "enum": [- "imageGeneration"- ],- "title": "ImageGenerationThreadItemType",- "type": "string"- }- },- "required": [- "id",- "result",- "status",- "type"- ],- "title": "ImageGenerationThreadItem",- "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"- }- ]- },- "Turn": {- "properties": {- "completedAt": {- "description": "Unix timestamp (in seconds) when the turn completed.",- "format": "int64",- "type": [- "integer",- "null"- ]- },- "durationMs": {- "description": "Duration between turn start and completion in milliseconds, if known.",- "format": "int64",- "type": [- "integer",- "null"- ]- },- "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"- },- "startedAt": {- "description": "Unix timestamp (in seconds) when the turn started.",- "format": "int64",- "type": [- "integer",- "null"- ]- },- "status": {- "$ref": "#/definitions/TurnStatus"- }- },- "required": [- "id",- "items",- "status"- ],- "type": "object"- },- "TurnError": {- "properties": {- "additionalDetails": {- "default": null,- "type": [- "string",- "null"- ]- },- "codexErrorInfo": {- "anyOf": [- {- "$ref": "#/definitions/CodexErrorInfo"- },- {- "type": "null"- }- ]- },- "message": {- "type": "string"- }- },- "required": [- "message"- ],- "type": "object"- },- "TurnStatus": {- "enum": [- "completed",- "interrupted",- "failed",- "inProgress"- ],- "type": "string"- },- "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"- },- {- "properties": {- "type": {- "enum": [- "image"- ],- "title": "ImageUserInputType",- "type": "string"- },- "url": {- "type": "string"- }- },- "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"- },- {- "properties": {- "name": {- "type": "string"- },- "path": {- "type": "string"- },- "type": {- "enum": [- "skill"- ],- "title": "SkillUserInputType",- "type": "string"- }- },- "required": [- "name",- "path",- "type"- ],- "title": "SkillUserInput",- "type": "object"- },- {- "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": [- "openPage"- ],- "title": "OpenPageWebSearchActionType",- "type": "string"- },- "url": {- "type": [- "string",- "null"- ]- }- },- "required": [- "type"- ],- "title": "OpenPageWebSearchAction",- "type": "object"- },- {- "properties": {- "pattern": {- "type": [- "string",- "null"- ]- },- "type": {- "enum": [- "findInPage"- ],- "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": {- "backwardsCursor": {- "description": "Opaque cursor to pass as `cursor` when reversing `sortDirection`. This is only populated when the page contains at least one turn. Use it with the opposite `sortDirection` to include the anchor turn again and catch updates to that turn.",- "type": [- "string",- "null"- ]- },- "data": {- "items": {- "$ref": "#/definitions/Turn"- },- "type": "array"- },- "nextCursor": {- "description": "Opaque cursor to pass to the next call to continue after the last turn. if None, there are no more turns to return.",- "type": [- "string",- "null"- ]- }- },- "required": [- "data"- ],- "title": "ThreadTurnsListResponse",- "type": "object"-}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/typescript/ClientRequest.ts b/codex-rs/app-server-protocol/schema/typescript/ClientRequest.tsindex 026db95f71..05b6d379c6 100644--- a/codex-rs/app-server-protocol/schema/typescript/ClientRequest.ts+++ b/codex-rs/app-server-protocol/schema/typescript/ClientRequest.ts@@ -70,7 +70,6 @@ import type { ThreadRollbackParams } from "./v2/ThreadRollbackParams";import type { ThreadSetNameParams } from "./v2/ThreadSetNameParams";import type { ThreadShellCommandParams } from "./v2/ThreadShellCommandParams";import type { ThreadStartParams } from "./v2/ThreadStartParams";-import type { ThreadTurnsListParams } from "./v2/ThreadTurnsListParams";import type { ThreadUnarchiveParams } from "./v2/ThreadUnarchiveParams";import type { ThreadUnsubscribeParams } from "./v2/ThreadUnsubscribeParams";import type { TurnInterruptParams } from "./v2/TurnInterruptParams";@@ -81,4 +80,4 @@ import type { WindowsSandboxSetupStartParams } from "./v2/WindowsSandboxSetupSta/*** Request from the client to the server.*/-export type ClientRequest ={ "method": "initialize", id: RequestId, params: InitializeParams, } | { "method": "thread/start", id: RequestId, params: ThreadStartParams, } | { "method": "thread/resume", id: RequestId, params: ThreadResumeParams, } | { "method": "thread/fork", id: RequestId, params: ThreadForkParams, } | { "method": "thread/archive", id: RequestId, params: ThreadArchiveParams, } | { "method": "thread/unsubscribe", id: RequestId, params: ThreadUnsubscribeParams, } | { "method": "thread/name/set", id: RequestId, params: ThreadSetNameParams, } | { "method": "thread/metadata/update", id: RequestId, params: ThreadMetadataUpdateParams, } | { "method": "thread/unarchive", id: RequestId, params: ThreadUnarchiveParams, } | { "method": "thread/compact/start", id: RequestId, params: ThreadCompactStartParams, } | { "method": "thread/shellCommand", id: RequestId, params: ThreadShellCommandParams, } | { "method": "thread/approveGuardianDeniedAction", id: RequestId, params: ThreadApproveGuardianDeniedActionParams, } | { "method": "thread/rollback", id: RequestId, params: ThreadRollbackParams, } | { "method": "thread/list", id: RequestId, params: ThreadListParams, } | { "method": "thread/loaded/list", id: RequestId, params: ThreadLoadedListParams, } | { "method": "thread/read", id: RequestId, params: ThreadReadParams, } | { "method": "thread/turns/list", id: RequestId, params: ThreadTurnsListParams, } | { "method": "thread/inject_items", id: RequestId, params: ThreadInjectItemsParams, } | { "method": "skills/list", id: RequestId, params: SkillsListParams, } | { "method": "hooks/list", id: RequestId, params: HooksListParams, } | { "method": "marketplace/add", id: RequestId, params: MarketplaceAddParams, } | { "method": "marketplace/remove", id: RequestId, params: MarketplaceRemoveParams, } | { "method": "marketplace/upgrade", id: RequestId, params: MarketplaceUpgradeParams, } | { "method": "plugin/list", id: RequestId, params: PluginListParams, } | { "method": "plugin/read", id: RequestId, params: PluginReadParams, } | { "method": "plugin/share/save", id: RequestId, params: PluginShareSaveParams, } | { "method": "plugin/share/list", id: RequestId, params: PluginShareListParams, } | { "method": "plugin/share/delete", id: RequestId, params: PluginShareDeleteParams, } | { "method": "app/list", id: RequestId, params: AppsListParams, } | { "method": "device/key/create", id: RequestId, params: DeviceKeyCreateParams, } | { "method": "device/key/public", id: RequestId, params: DeviceKeyPublicParams, } | { "method": "device/key/sign", id: RequestId, params: DeviceKeySignParams, } | { "method": "fs/readFile", id: RequestId, params: FsReadFileParams, } | { "method": "fs/writeFile", id: RequestId, params: FsWriteFileParams, } | { "method": "fs/createDirectory", id: RequestId, params: FsCreateDirectoryParams, } | { "method": "fs/getMetadata", id: RequestId, params: FsGetMetadataParams, } | { "method": "fs/readDirectory", id: RequestId, params: FsReadDirectoryParams, } | { "method": "fs/remove", id: RequestId, params: FsRemoveParams, } | { "method": "fs/copy", id: RequestId, params: FsCopyParams, } | { "method": "fs/watch", id: RequestId, params: FsWatchParams, } | { "method": "fs/unwatch", id: RequestId, params: FsUnwatchParams, } | { "method": "skills/config/write", id: RequestId, params: SkillsConfigWriteParams, } | { "method": "plugin/install", id: RequestId, params: PluginInstallParams, } | { "method": "plugin/uninstall", id: RequestId, params: PluginUninstallParams, } | { "method": "turn/start", id: RequestId, params: TurnStartParams, } | { "method": "turn/steer", id: RequestId, params: TurnSteerParams, } | { "method": "turn/interrupt", id: RequestId, params: TurnInterruptParams, } | { "method": "review/start", id: RequestId, params: ReviewStartParams, } | { "method": "model/list", id: RequestId, params: ModelListParams, } | { "method": "modelProvider/capabilities/read", id: RequestId, params: ModelProviderCapabilitiesReadParams, } | { "method": "experimentalFeature/list", id: RequestId, params: ExperimentalFeatureListParams, } | { "method": "experimentalFeature/enablement/set", id: RequestId, params: ExperimentalFeatureEnablementSetParams, } | { "method": "mcpServer/oauth/login", id: RequestId, params: McpServerOauthLoginParams, } | { "method": "config/mcpServer/reload", id: RequestId, params: undefined, } | { "method": "mcpServerStatus/list", id: RequestId, params: ListMcpServerStatusParams, } | { "method": "mcpServer/resource/read", id: RequestId, params: McpResourceReadParams, } | { "method": "mcpServer/tool/call", id: RequestId, params: McpServerToolCallParams, } | { "method": "windowsSandbox/setupStart", id: RequestId, params: WindowsSandboxSetupStartParams, } | { "method": "account/login/start", id: RequestId, params: LoginAccountParams, } | { "method": "account/login/cancel", id: RequestId, params: CancelLoginAccountParams, } | { "method": "account/logout", id: RequestId, params: undefined, } | { "method": "account/rateLimits/read", id: RequestId, params: undefined, } | { "method": "account/sendAddCreditsNudgeEmail", id: RequestId, params: SendAddCreditsNudgeEmailParams, } | { "method": "feedback/upload", id: RequestId, params: FeedbackUploadParams, } | { "method": "command/exec", id: RequestId, params: CommandExecParams, } | { "method": "command/exec/write", id: RequestId, params: CommandExecWriteParams, } | { "method": "command/exec/terminate", id: RequestId, params: CommandExecTerminateParams, } | { "method": "command/exec/resize", id: RequestId, params: CommandExecResizeParams, } | { "method": "config/read", id: RequestId, params: ConfigReadParams, } | { "method": "externalAgentConfig/detect", id: RequestId, params: ExternalAgentConfigDetectParams, } | { "method": "externalAgentConfig/import", id: RequestId, params: ExternalAgentConfigImportParams, } | { "method": "config/value/write", id: RequestId, params: ConfigValueWriteParams, } | { "method": "config/batchWrite", id: RequestId, params: ConfigBatchWriteParams, } | { "method": "configRequirements/read", id: RequestId, params: undefined, } | { "method": "account/read", id: RequestId, params: GetAccountParams, } | { "method": "getConversationSummary", id: RequestId, params: GetConversationSummaryParams, } | { "method": "gitDiffToRemote", id: RequestId, params: GitDiffToRemoteParams, } | { "method": "getAuthStatus", id: RequestId, params: GetAuthStatusParams, } | { "method": "fuzzyFileSearch", id: RequestId, params: FuzzyFileSearchParams, };+export type ClientRequest ={ "method": "initialize", id: RequestId, params: InitializeParams, } | { "method": "thread/start", id: RequestId, params: ThreadStartParams, } | { "method": "thread/resume", id: RequestId, params: ThreadResumeParams, } | { "method": "thread/fork", id: RequestId, params: ThreadForkParams, } | { "method": "thread/archive", id: RequestId, params: ThreadArchiveParams, } | { "method": "thread/unsubscribe", id: RequestId, params: ThreadUnsubscribeParams, } | { "method": "thread/name/set", id: RequestId, params: ThreadSetNameParams, } | { "method": "thread/metadata/update", id: RequestId, params: ThreadMetadataUpdateParams, } | { "method": "thread/unarchive", id: RequestId, params: ThreadUnarchiveParams, } | { "method": "thread/compact/start", id: RequestId, params: ThreadCompactStartParams, } | { "method": "thread/shellCommand", id: RequestId, params: ThreadShellCommandParams, } | { "method": "thread/approveGuardianDeniedAction", id: RequestId, params: ThreadApproveGuardianDeniedActionParams, } | { "method": "thread/rollback", id: RequestId, params: ThreadRollbackParams, } | { "method": "thread/list", id: RequestId, params: ThreadListParams, } | { "method": "thread/loaded/list", id: RequestId, params: ThreadLoadedListParams, } | { "method": "thread/read", id: RequestId, params: ThreadReadParams, } | { "method": "thread/inject_items", id: RequestId, params: ThreadInjectItemsParams, } | { "method": "skills/list", id: RequestId, params: SkillsListParams, } | { "method": "hooks/list", id: RequestId, params: HooksListParams, } | { "method": "marketplace/add", id: RequestId, params: MarketplaceAddParams, } | { "method": "marketplace/remove", id: RequestId, params: MarketplaceRemoveParams, } | { "method": "marketplace/upgrade", id: RequestId, params: MarketplaceUpgradeParams, } | { "method": "plugin/list", id: RequestId, params: PluginListParams, } | { "method": "plugin/read", id: RequestId, params: PluginReadParams, } | { "method": "plugin/share/save", id: RequestId, params: PluginShareSaveParams, } | { "method": "plugin/share/list", id: RequestId, params: PluginShareListParams, } | { "method": "plugin/share/delete", id: RequestId, params: PluginShareDeleteParams, } | { "method": "app/list", id: RequestId, params: AppsListParams, } | { "method": "device/key/create", id: RequestId, params: DeviceKeyCreateParams, } | { "method": "device/key/public", id: RequestId, params: DeviceKeyPublicParams, } | { "method": "device/key/sign", id: RequestId, params: DeviceKeySignParams, } | { "method": "fs/readFile", id: RequestId, params: FsReadFileParams, } | { "method": "fs/writeFile", id: RequestId, params: FsWriteFileParams, } | { "method": "fs/createDirectory", id: RequestId, params: FsCreateDirectoryParams, } | { "method": "fs/getMetadata", id: RequestId, params: FsGetMetadataParams, } | { "method": "fs/readDirectory", id: RequestId, params: FsReadDirectoryParams, } | { "method": "fs/remove", id: RequestId, params: FsRemoveParams, } | { "method": "fs/copy", id: RequestId, params: FsCopyParams, } | { "method": "fs/watch", id: RequestId, params: FsWatchParams, } | { "method": "fs/unwatch", id: RequestId, params: FsUnwatchParams, } | { "method": "skills/config/write", id: RequestId, params: SkillsConfigWriteParams, } | { "method": "plugin/install", id: RequestId, params: PluginInstallParams, } | { "method": "plugin/uninstall", id: RequestId, params: PluginUninstallParams, } | { "method": "turn/start", id: RequestId, params: TurnStartParams, } | { "method": "turn/steer", id: RequestId, params: TurnSteerParams, } | { "method": "turn/interrupt", id: RequestId, params: TurnInterruptParams, } | { "method": "review/start", id: RequestId, params: ReviewStartParams, } | { "method": "model/list", id: RequestId, params: ModelListParams, } | { "method": "modelProvider/capabilities/read", id: RequestId, params: ModelProviderCapabilitiesReadParams, } | { "method": "experimentalFeature/list", id: RequestId, params: ExperimentalFeatureListParams, } | { "method": "experimentalFeature/enablement/set", id: RequestId, params: ExperimentalFeatureEnablementSetParams, } | { "method": "mcpServer/oauth/login", id: RequestId, params: McpServerOauthLoginParams, } | { "method": "config/mcpServer/reload", id: RequestId, params: undefined, } | { "method": "mcpServerStatus/list", id: RequestId, params: ListMcpServerStatusParams, } | { "method": "mcpServer/resource/read", id: RequestId, params: McpResourceReadParams, } | { "method": "mcpServer/tool/call", id: RequestId, params: McpServerToolCallParams, } | { "method": "windowsSandbox/setupStart", id: RequestId, params: WindowsSandboxSetupStartParams, } | { "method": "account/login/start", id: RequestId, params: LoginAccountParams, } | { "method": "account/login/cancel", id: RequestId, params: CancelLoginAccountParams, } | { "method": "account/logout", id: RequestId, params: undefined, } | { "method": "account/rateLimits/read", id: RequestId, params: undefined, } | { "method": "account/sendAddCreditsNudgeEmail", id: RequestId, params: SendAddCreditsNudgeEmailParams, } | { "method": "feedback/upload", id: RequestId, params: FeedbackUploadParams, } | { "method": "command/exec", id: RequestId, params: CommandExecParams, } | { "method": "command/exec/write", id: RequestId, params: CommandExecWriteParams, } | { "method": "command/exec/terminate", id: RequestId, params: CommandExecTerminateParams, } | { "method": "command/exec/resize", id: RequestId, params: CommandExecResizeParams, } | { "method": "config/read", id: RequestId, params: ConfigReadParams, } | { "method": "externalAgentConfig/detect", id: RequestId, params: ExternalAgentConfigDetectParams, } | { "method": "externalAgentConfig/import", id: RequestId, params: ExternalAgentConfigImportParams, } | { "method": "config/value/write", id: RequestId, params: ConfigValueWriteParams, } | { "method": "config/batchWrite", id: RequestId, params: ConfigBatchWriteParams, } | { "method": "configRequirements/read", id: RequestId, params: undefined, } | { "method": "account/read", id: RequestId, params: GetAccountParams, } | { "method": "getConversationSummary", id: RequestId, params: GetConversationSummaryParams, } | { "method": "gitDiffToRemote", id: RequestId, params: GitDiffToRemoteParams, } | { "method": "getAuthStatus", id: RequestId, params: GetAuthStatusParams, } | { "method": "fuzzyFileSearch", id: RequestId, params: FuzzyFileSearchParams, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadForkParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadForkParams.tsindex a40e406df9..ba7119e9ed 100644--- a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadForkParams.ts+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadForkParams.ts@@ -23,9 +23,4 @@ model?: string | null, modelProvider?: string | null, serviceTier?: ServiceTier* Override where approval requests are routed for review on this thread* and subsequent turns.*/-approvalsReviewer?: ApprovalsReviewer | null, sandbox?: SandboxMode | null, config?: { [key in string]?: JsonValue } | null, baseInstructions?: string | null, developerInstructions?: string | null, ephemeral?: boolean, /**- * When true, return only thread metadata and live fork state without- * populating `thread.turns`. This is useful when the client plans to call- * `thread/turns/list` immediately after forking.- */-excludeTurns?: boolean};+approvalsReviewer?: ApprovalsReviewer | null, sandbox?: SandboxMode | null, config?: { [key in string]?: JsonValue } | null, baseInstructions?: string | null, developerInstructions?: string | null, ephemeral?: boolean};diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadResumeParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadResumeParams.tsindex f9821585fb..ac8b1e293b 100644--- a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadResumeParams.ts+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadResumeParams.ts@@ -26,9 +26,4 @@ model?: string | null, modelProvider?: string | null, serviceTier?: ServiceTier* Override where approval requests are routed for review on this thread* and subsequent turns.*/-approvalsReviewer?: ApprovalsReviewer | null, sandbox?: SandboxMode | null, config?: { [key in string]?: JsonValue } | null, baseInstructions?: string | null, developerInstructions?: string | null, personality?: Personality | null, /**- * When true, return only thread metadata and live-resume state without- * populating `thread.turns`. This is useful when the client plans to call- * `thread/turns/list` immediately after resuming.- */-excludeTurns?: boolean};+approvalsReviewer?: ApprovalsReviewer | null, sandbox?: SandboxMode | null, config?: { [key in string]?: JsonValue } | null, baseInstructions?: string | null, developerInstructions?: string | null, personality?: Personality | null};diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadTurnsListParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadTurnsListParams.tsdeleted file mode 100644index 2c507bc9ce..0000000000--- a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadTurnsListParams.ts+++ /dev/null@@ -1,18 +0,0 @@-// GENERATED CODE! DO NOT MODIFY BY HAND!--// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.-import type { SortDirection } from "./SortDirection";--export type ThreadTurnsListParams = { threadId: string,-/**- * Opaque cursor to pass to the next call to continue after the last turn.- */-cursor?: string | null,-/**- * Optional turn page size.- */-limit?: number | null,-/**- * Optional turn pagination direction; defaults to descending.- */-sortDirection?: SortDirection | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadTurnsListResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadTurnsListResponse.tsdeleted file mode 100644index 1dbed91a70..0000000000--- a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadTurnsListResponse.ts+++ /dev/null@@ -1,18 +0,0 @@-// GENERATED CODE! DO NOT MODIFY BY HAND!--// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.-import type { Turn } from "./Turn";--export type ThreadTurnsListResponse = { data: Array<Turn>,-/**- * Opaque cursor to pass to the next call to continue after the last turn.- * if None, there are no more turns to return.- */-nextCursor: string | null,-/**- * Opaque cursor to pass as `cursor` when reversing `sortDirection`.- * This is only populated when the page contains at least one turn.- * Use it with the opposite `sortDirection` to include the anchor turn again- * and catch updates to that turn.- */-backwardsCursor: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/index.ts b/codex-rs/app-server-protocol/schema/typescript/v2/index.tsindex 28de6b108d..b19a3e0d19 100644--- a/codex-rs/app-server-protocol/schema/typescript/v2/index.ts+++ b/codex-rs/app-server-protocol/schema/typescript/v2/index.ts@@ -395,8 +395,6 @@ export type { ThreadStatus } from "./ThreadStatus";export type { ThreadStatusChangedNotification } from "./ThreadStatusChangedNotification";export type { ThreadTokenUsage } from "./ThreadTokenUsage";export type { ThreadTokenUsageUpdatedNotification } from "./ThreadTokenUsageUpdatedNotification";-export type { ThreadTurnsListParams } from "./ThreadTurnsListParams";-export type { ThreadTurnsListResponse } from "./ThreadTurnsListResponse";export type { ThreadUnarchiveParams } from "./ThreadUnarchiveParams";export type { ThreadUnarchiveResponse } from "./ThreadUnarchiveResponse";export type { ThreadUnarchivedNotification } from "./ThreadUnarchivedNotification";diff --git a/codex-rs/app-server-protocol/src/protocol/common.rs b/codex-rs/app-server-protocol/src/protocol/common.rsindex e2865aa318..b68d140313 100644--- a/codex-rs/app-server-protocol/src/protocol/common.rs+++ b/codex-rs/app-server-protocol/src/protocol/common.rs@@ -564,6 +564,7 @@ client_request_definitions! {serialization: thread_id(params.thread_id),response: v2::ThreadReadResponse,},+ #[experimental("thread/turns/list")]ThreadTurnsList => "thread/turns/list" {params: v2::ThreadTurnsListParams,// Explicitly concurrent: this primarily reads append-only rollout storage.diff --git a/codex-rs/app-server-protocol/src/protocol/v2.rs b/codex-rs/app-server-protocol/src/protocol/v2.rsindex 068a9c5f5e..9114e64f8d 100644--- a/codex-rs/app-server-protocol/src/protocol/v2.rs+++ b/codex-rs/app-server-protocol/src/protocol/v2.rs@@ -3738,6 +3738,7 @@ pub struct ThreadResumeParams {/// When true, return only thread metadata and live-resume state without/// populating `thread.turns`. This is useful when the client plans to call/// `thread/turns/list` immediately after resuming.+ #[experimental("thread/resume.excludeTurns")]#[serde(default, skip_serializing_if = "std::ops::Not::not")]pub exclude_turns: bool,/// If true, persist additional rollout EventMsg variants required to@@ -3842,6 +3843,7 @@ pub struct ThreadForkParams {/// When true, return only thread metadata and live fork state without/// populating `thread.turns`. This is useful when the client plans to call/// `thread/turns/list` immediately after forking.+ #[experimental("thread/fork.excludeTurns")]#[serde(default, skip_serializing_if = "std::ops::Not::not")]pub exclude_turns: bool,/// If true, persist additional rollout EventMsg variants required todiff --git a/codex-rs/app-server/README.md b/codex-rs/app-server/README.mdindex b986a8545c..a8ff0c47f8 100644--- a/codex-rs/app-server/README.md+++ b/codex-rs/app-server/README.md@@ -144,12 +144,12 @@ Example with notification opt-out:- `thread/start` — create a new thread; emits `thread/started` (including the current `thread.status`) and auto-subscribes you to turn/item events for that thread. When the request includes a `cwd` and the resolved sandbox is `workspace-write` or full access, app-server also marks that project as trusted in the user `config.toml`. Pass `sessionStartSource: "clear"` when starting a replacement thread after clearing the current session so `SessionStart` hooks receive `source: "clear"` instead of the default `"startup"`. For permissions, prefer experimental `permissions` profile selection; the legacy `sandbox` shorthand is still accepted but cannot be combined with `permissions`. Experimental `environments` selects the sticky execution environments for turns on the thread; omit it to use the server default, pass `[]` to disable environments, or pass explicit environment ids with per-environment `cwd`.- `thread/resume` — reopen an existing thread by id so subsequent `turn/start` calls append to it. Accepts the same permission override rules as `thread/start`.-- `thread/fork` — fork an existing thread into a new thread id by copying the stored history; if the source thread is currently mid-turn, the fork records the same interruption marker as `turn/interrupt` instead of inheriting an unmarked partial turn suffix. The returned `thread.forkedFromId` points at the source thread when known. Accepts `ephemeral: true` for an in-memory temporary fork, emits `thread/started` (including the current `thread.status`), and auto-subscribes you to turn/item events for the new thread. Pass `excludeTurns: true` when the client plans to page fork history via `thread/turns/list` instead of receiving the full turn array immediately. Accepts the same permission override rules as `thread/start`.+- `thread/fork` — fork an existing thread into a new thread id by copying the stored history; if the source thread is currently mid-turn, the fork records the same interruption marker as `turn/interrupt` instead of inheriting an unmarked partial turn suffix. The returned `thread.forkedFromId` points at the source thread when known. Accepts `ephemeral: true` for an in-memory temporary fork, emits `thread/started` (including the current `thread.status`), and auto-subscribes you to turn/item events for the new thread. Experimental clients can pass `excludeTurns: true` when they plan to page fork history via `thread/turns/list` instead of receiving the full turn array immediately. Accepts the same permission override rules as `thread/start`.- `thread/start`, `thread/resume`, and `thread/fork` responses include the legacy `sandbox` compatibility projection. Experimental clients can read response `permissionProfile` for the exact active runtime permissions and `activePermissionProfile` for the named or implicit built-in profile identity/provenance when known.- `thread/list` — page through stored rollouts; supports cursor-based pagination and optional `modelProviders`, `sourceKinds`, `archived`, `cwd`, and `searchTerm` filters. Each returned `thread` includes `status` (`ThreadStatus`), defaulting to `notLoaded` when the thread is not currently loaded.- `thread/loaded/list` — list the thread ids currently loaded in memory.- `thread/read` — read a stored thread by id without resuming it; optionally include turns via `includeTurns`. The returned `thread` includes `status` (`ThreadStatus`), defaulting to `notLoaded` when the thread is not currently loaded.-- `thread/turns/list` — page through a stored thread’s turn history without resuming it; supports cursor-based pagination with `sortDirection`, `nextCursor`, and `backwardsCursor`.+- `thread/turns/list` — experimental; page through a stored thread’s turn history without resuming it; supports cursor-based pagination with `sortDirection`, `nextCursor`, and `backwardsCursor`.- `thread/metadata/update` — patch stored thread metadata in sqlite; currently supports updating persisted `gitInfo` fields and returns the refreshed `thread`.- `thread/memoryMode/set` — experimental; set a thread’s persisted memory eligibility to `"enabled"` or `"disabled"` for either a loaded thread or a stored rollout; returns `{}` on success.- `memory/reset` — experimental; clear the current `CODEX_HOME/memories` directory and reset persisted memory stage data in sqlite while preserving existing thread memory modes; returns `{}` on success.@@ -276,7 +276,7 @@ Valid `personality` values are `"friendly"`, `"pragmatic"`, and `"none"`. When `To continue a stored session, call `thread/resume` with the `thread.id` you previously recorded. The response shape matches `thread/start`. When the stored session includes persisted token usage, the server emits `thread/tokenUsage/updated` immediately after the response so clients can render restored usage before the next turn starts. You can also pass the same configuration overrides supported by `thread/start`, including `approvalsReviewer`.-By default, `thread/resume` includes the reconstructed turn history in `thread.turns`. Pass `excludeTurns: true` to return only thread metadata and live resume state, then call `thread/turns/list` separately if you want to page the turn history over the network. In that mode the server also skips replaying restored `thread/tokenUsage/updated`, which avoids rebuilding turns just to attribute historical usage.+By default, `thread/resume` includes the reconstructed turn history in `thread.turns`. Experimental clients can pass `excludeTurns: true` to return only thread metadata and live resume state, then call `thread/turns/list` separately if they want to page the turn history over the network. In that mode the server also skips replaying restored `thread/tokenUsage/updated`, which avoids rebuilding turns just to attribute historical usage.By default, resume uses the latest persisted `model` and `reasoningEffort` values associated with the thread. Supplying any of `model`, `modelProvider`, `config.model`, or `config.model_reasoning_effort` disables that persisted fallback and uses the explicit overrides plus normal config resolution instead.@@ -304,7 +304,7 @@ To branch from a stored session, call `thread/fork` with the `thread.id`. This c{ "method": "thread/started", "params": { "thread": { … } } }```-Like `thread/resume`, `thread/fork` also accepts `excludeTurns: true` to return only thread metadata in `thread.turns` and let the client page history with `thread/turns/list`. In that mode the server skips replaying restored `thread/tokenUsage/updated`, which keeps the fork path from rebuilding turns just to attribute historical usage.+Like `thread/resume`, experimental clients can pass `excludeTurns: true` to `thread/fork` to return only thread metadata in `thread.turns` and page history with `thread/turns/list`. In that mode the server skips replaying restored `thread/tokenUsage/updated`, which keeps the fork path from rebuilding turns just to attribute historical usage.Experimental API: `thread/start`, `thread/resume`, and `thread/fork` accept `persistExtendedHistory: true` to persist a richer subset of ThreadItems for non-lossy history when calling `thread/read`, `thread/resume`, and `thread/fork` later. This does not backfill events that were not persisted previously.@@ -418,9 +418,9 @@ Use `thread/read` to fetch a stored thread by id without resuming it. Pass `incl} }```-### Example: List thread turns+### Example: List thread turns (experimental)-Use `thread/turns/list` to page a stored thread’s turn history without resuming it. By default, results are sorted descending so clients can start at the present and fetch older turns with `nextCursor`. The response also includes `backwardsCursor`; pass it as `cursor` on a later request with `sortDirection: "asc"` to fetch turns newer than the first item from the earlier page.+Use `thread/turns/list` with `capabilities.experimentalApi = true` to page a stored thread’s turn history without resuming it. By default, results are sorted descending so clients can start at the present and fetch older turns with `nextCursor`. The response also includes `backwardsCursor`; pass it as `cursor` on a later request with `sortDirection: "asc"` to fetch turns newer than the first item from the earlier page.```json{ "method": "thread/turns/list", "id": 24, "params": {