[codex] Add thread catalog subscription API

This commit is contained in:
Brent Traut
2026-06-24 11:19:35 -07:00
parent 8a6a34be75
commit fcfb6ecf5e
26 changed files with 1350 additions and 8 deletions
@@ -3744,6 +3744,17 @@
],
"type": "object"
},
"ThreadCatalogChangedNotification": {
"properties": {
"thread": {
"$ref": "#/definitions/ThreadSummary"
}
},
"required": [
"thread"
],
"type": "object"
},
"ThreadClosedNotification": {
"properties": {
"threadId": {
@@ -5002,6 +5013,118 @@
],
"type": "object"
},
"ThreadSummary": {
"properties": {
"agentNickname": {
"type": [
"string",
"null"
]
},
"agentRole": {
"type": [
"string",
"null"
]
},
"archivedAt": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"cliVersion": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"cwd": {
"$ref": "#/definitions/AbsolutePathBuf"
},
"ephemeral": {
"type": "boolean"
},
"forkedFromId": {
"type": [
"string",
"null"
]
},
"gitInfo": {
"anyOf": [
{
"$ref": "#/definitions/GitInfo"
},
{
"type": "null"
}
]
},
"id": {
"type": "string"
},
"modelProvider": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"parentThreadId": {
"type": [
"string",
"null"
]
},
"path": {
"type": [
"string",
"null"
]
},
"preview": {
"type": "string"
},
"sessionId": {
"type": "string"
},
"source": {
"$ref": "#/definitions/SessionSource"
},
"threadSource": {
"anyOf": [
{
"$ref": "#/definitions/ThreadSource"
},
{
"type": "null"
}
]
},
"updatedAt": {
"format": "int64",
"type": "integer"
}
},
"required": [
"cliVersion",
"createdAt",
"cwd",
"ephemeral",
"id",
"modelProvider",
"preview",
"sessionId",
"source",
"updatedAt"
],
"type": "object"
},
"ThreadTokenUsage": {
"properties": {
"last": {
@@ -5712,6 +5835,26 @@
"title": "Thread/status/changedNotification",
"type": "object"
},
{
"properties": {
"method": {
"enum": [
"thread/catalog/changed"
],
"title": "Thread/catalog/changedNotificationMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadCatalogChangedNotification"
}
},
"required": [
"method",
"params"
],
"title": "Thread/catalog/changedNotification",
"type": "object"
},
{
"properties": {
"method": {