[codex] Add thread catalog subscriptions

This commit is contained in:
Brent Traut
2026-07-08 10:51:27 -07:00
parent f56595f4bc
commit a18f769372
22 changed files with 1415 additions and 2 deletions
@@ -3825,6 +3825,66 @@
],
"type": "object"
},
"ThreadCatalogChangedNotification": {
"oneOf": [
{
"properties": {
"thread": {
"$ref": "#/definitions/ThreadSummary"
},
"type": {
"enum": [
"upsert"
],
"title": "UpsertThreadCatalogChangedNotificationType",
"type": "string"
}
},
"required": [
"thread",
"type"
],
"title": "UpsertThreadCatalogChangedNotification",
"type": "object"
},
{
"properties": {
"threadId": {
"type": "string"
},
"type": {
"enum": [
"delete"
],
"title": "DeleteThreadCatalogChangedNotificationType",
"type": "string"
}
},
"required": [
"threadId",
"type"
],
"title": "DeleteThreadCatalogChangedNotification",
"type": "object"
},
{
"properties": {
"type": {
"enum": [
"invalidate"
],
"title": "InvalidateThreadCatalogChangedNotificationType",
"type": "string"
}
},
"required": [
"type"
],
"title": "InvalidateThreadCatalogChangedNotification",
"type": "object"
}
]
},
"ThreadClosedNotification": {
"properties": {
"threadId": {
@@ -5090,6 +5150,125 @@
],
"type": "object"
},
"ThreadSummary": {
"description": "Persisted metadata needed to render and order a thread catalog row.",
"properties": {
"agentNickname": {
"type": [
"string",
"null"
]
},
"agentRole": {
"type": [
"string",
"null"
]
},
"archivedAt": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"createdAtMs": {
"format": "int64",
"type": "integer"
},
"cwd": {
"$ref": "#/definitions/AbsolutePathBuf"
},
"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"
]
},
"preview": {
"type": "string"
},
"recencyAt": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"recencyAtMs": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"source": {
"$ref": "#/definitions/SessionSource"
},
"threadSource": {
"anyOf": [
{
"$ref": "#/definitions/ThreadSource"
},
{
"type": "null"
}
]
},
"updatedAt": {
"format": "int64",
"type": "integer"
},
"updatedAtMs": {
"format": "int64",
"type": "integer"
}
},
"required": [
"createdAt",
"createdAtMs",
"cwd",
"id",
"modelProvider",
"preview",
"source",
"updatedAt",
"updatedAtMs"
],
"type": "object"
},
"ThreadTokenUsage": {
"properties": {
"last": {
@@ -5860,6 +6039,26 @@
"title": "Thread/unarchivedNotification",
"type": "object"
},
{
"properties": {
"method": {
"enum": [
"threadCatalog/changed"
],
"title": "ThreadCatalog/changedNotificationMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadCatalogChangedNotification"
}
},
"required": [
"method",
"params"
],
"title": "ThreadCatalog/changedNotification",
"type": "object"
},
{
"properties": {
"method": {