Files
codex/codex-rs/app-server-protocol/schema/json/v2/ThreadSectionUpdateParams.json
joeytrasatti-openai 1549756b78 Add appearance metadata to thread sections (#37898)
## What changed

- Add optional `icon` and `color` appearance fields to custom thread sections and expose them through the app-server protocol.
- Persist appearance metadata in SQLite and include it when listing sections or returning threads.
- Let `threadSection/update` preserve an omitted appearance, clear it with `null`, or replace it with a new value.
- Reject appearance fields larger than 64 bytes.

## Testing

- Cover protocol compatibility, persistence across restart, update and clear behavior, and field-length validation.

GitOrigin-RevId: 8f55ce4f42f8bd17aa5416848a85845f681953df
2026-08-10 23:32:42 +00:00

51 lines
1.2 KiB
JSON
Generated

{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ThreadSectionAppearance": {
"description": "Extensible visual presentation for a custom thread section.",
"properties": {
"color": {
"type": [
"string",
"null"
]
},
"icon": {
"type": [
"string",
"null"
]
}
},
"type": "object"
}
},
"description": "Parameters for updating an independently persisted thread section.",
"properties": {
"appearance": {
"anyOf": [
{
"$ref": "#/definitions/ThreadSectionAppearance"
},
{
"type": "null"
}
],
"description": "Omit to preserve appearance, use `null` to clear it, or provide a replacement."
},
"name": {
"description": "The updated user-visible name of the section.",
"type": "string"
},
"sectionId": {
"description": "The stable, server-generated identity of the section to update.",
"type": "string"
}
},
"required": [
"name",
"sectionId"
],
"title": "ThreadSectionUpdateParams",
"type": "object"
}