Files
codex/codex-rs/app-server-protocol/schema/json/v2/ThreadSectionListResponse.json
joeytrasatti-openai 85c6da1c79 Add persisted sections for organizing threads (#35722)
## What changed

- Replace the `isPinned` thread metadata and filters with an optional persisted
  `section` and `sectionId`.
- Add the paginated `threadSection/list` app-server method so clients can
  discover sections even when they contain no threads.
- Seed a stable `Pinned` section, validate section assignments, and support
  filtering for a specific section or for unsectioned threads.

## Testing

- Cover section protocol serialization, listing and pagination, metadata
  updates, filtering, persistence, migration compatibility, and operation
  without SQLite state.

GitOrigin-RevId: 7972b5471d29317b9387bfd90aa9f573f691ad4c
2026-07-28 05:26:16 +00:00

44 lines
1.0 KiB
JSON
Generated

{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ThreadSection": {
"description": "An independently persisted, user-visible thread section.",
"properties": {
"id": {
"description": "Opaque UUIDv7 identity that remains stable when the section is renamed.",
"type": "string"
},
"name": {
"description": "The current user-visible section name.",
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
}
},
"description": "One page of independently persisted thread sections.",
"properties": {
"data": {
"items": {
"$ref": "#/definitions/ThreadSection"
},
"type": "array"
},
"nextCursor": {
"description": "Opaque cursor for the next page, or `null` when no sections remain.",
"type": [
"string",
"null"
]
}
},
"required": [
"data"
],
"title": "ThreadSectionListResponse",
"type": "object"
}