[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
@@ -1674,6 +1674,29 @@
"title": "Thread/listRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"threadCatalog/subscribe"
],
"title": "ThreadCatalog/subscribeRequestMethod",
"type": "string"
},
"params": {
"type": "null"
}
},
"required": [
"id",
"method"
],
"title": "ThreadCatalog/subscribeRequest",
"type": "object"
},
{
"properties": {
"id": {
@@ -12943,6 +12966,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": {
@@ -15096,6 +15139,73 @@
"title": "ThreadArchivedNotification",
"type": "object"
},
"ThreadCatalogChangedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"oneOf": [
{
"properties": {
"thread": {
"$ref": "#/definitions/ThreadSummary"
},
"type": {
"enum": [
"upsert"
],
"title": "Upsertv2::ThreadCatalogChangedNotificationType",
"type": "string"
}
},
"required": [
"thread",
"type"
],
"title": "Upsertv2::ThreadCatalogChangedNotification",
"type": "object"
},
{
"properties": {
"threadId": {
"type": "string"
},
"type": {
"enum": [
"delete"
],
"title": "Deletev2::ThreadCatalogChangedNotificationType",
"type": "string"
}
},
"required": [
"threadId",
"type"
],
"title": "Deletev2::ThreadCatalogChangedNotification",
"type": "object"
},
{
"properties": {
"type": {
"enum": [
"invalidate"
],
"title": "Invalidatev2::ThreadCatalogChangedNotificationType",
"type": "string"
}
},
"required": [
"type"
],
"title": "Invalidatev2::ThreadCatalogChangedNotification",
"type": "object"
}
],
"title": "ThreadCatalogChangedNotification"
},
"ThreadCatalogSubscribeResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ThreadCatalogSubscribeResponse",
"type": "object"
},
"ThreadClosedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
@@ -17595,6 +17705,125 @@
"title": "ThreadStatusChangedNotification",
"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": {