mirror of
https://github.com/openai/codex.git
synced 2026-11-18 23:02:23 +00:00
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
This commit is contained in:
1 parent
c41a38dd10
commit
ad6fc66b6d
75 files changed
+2879
-543
No files matched your search
@@ -197,6 +197,10 @@ pub struct Thread {
|
||||
/// The independently persisted section selected for this thread, if any.
|
||||
#[serde(default)]
|
||||
pub section: Option<ThreadSection>,
|
||||
/// Unix timestamp in seconds when the thread entered its current section.
|
||||
#[serde(default)]
|
||||
#[ts(type = "number | null")]
|
||||
pub section_entered_at: Option<i64>,
|
||||
/// Persisted thread history contract selected when this thread was created.
|
||||
#[experimental("thread.historyMode")]
|
||||
#[serde(default)]
|
||||
|
||||
Reference in new issue
Block a user