Files
codex/codex-rs/app-server-protocol/schema/json/v2/ThreadSectionMoveParams.json
joeytrasatti-openai ad6fc66b6d Add persisted manual ordering for thread sections (#36007)
## What changed

- Add `thread/section/move` to atomically move a thread into, within, or out of a section. Threads can be inserted before an existing member or appended, and moves within a section preserve `sectionEnteredAt`.
- Add `section_position` sorting to `thread/list`, with ascending order as its default, and expose `sectionEnteredAt` in thread responses.
- Persist section positions and entry times in SQLite, including migration of existing section members into recency order. Section membership is no longer updated through `thread/metadata/update`.

## Testing

- Cover section moves, reordering, pagination, persistence across restarts and rollout reconciliation, concurrent updates, and rank renumbering.

GitOrigin-RevId: aec6d7ddedca5277029b5caf5c074975397e956c
2026-07-29 18:37:22 +00:00

30 lines
768 B
JSON
Generated

{
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Parameters for moving a thread within a server-owned section ordering.",
"properties": {
"beforeThreadId": {
"description": "Existing thread to insert before; omission or null appends to the section.",
"type": [
"string",
"null"
]
},
"sectionId": {
"description": "Destination section, or `null` to remove the thread from its section.",
"type": [
"string",
"null"
]
},
"threadId": {
"description": "Thread to move into, within, or out of a section.",
"type": "string"
}
},
"required": [
"sectionId",
"threadId"
],
"title": "ThreadSectionMoveParams",
"type": "object"
}