mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
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
This commit is contained in:
1 parent
9291a123fb
commit
85c6da1c79
85 files changed
+1826
-419
No files matched your search
@@ -44,7 +44,7 @@ impl App {
|
||||
model_providers: Some(vec![]),
|
||||
source_kinds: Some(vec![ThreadSourceKind::SubAgentThreadSpawn]),
|
||||
archived: None,
|
||||
is_pinned: None,
|
||||
section_id: None,
|
||||
cwd: None,
|
||||
use_state_db_only: true,
|
||||
search_term: None,
|
||||
|
||||
@@ -142,7 +142,7 @@ mod tests {
|
||||
parent_thread_id: None,
|
||||
preview: String::new(),
|
||||
ephemeral: false,
|
||||
is_pinned: false,
|
||||
section: None,
|
||||
history_mode: Default::default(),
|
||||
model_provider: "openai".to_string(),
|
||||
created_at: 0,
|
||||
|
||||
@@ -3459,7 +3459,7 @@ async fn inactive_thread_started_notification_initializes_replay_session() -> Re
|
||||
parent_thread_id: None,
|
||||
preview: "agent thread".to_string(),
|
||||
ephemeral: false,
|
||||
is_pinned: false,
|
||||
section: None,
|
||||
history_mode: Default::default(),
|
||||
model_provider: "agent-provider".to_string(),
|
||||
created_at: 1,
|
||||
@@ -3556,7 +3556,7 @@ async fn inactive_thread_started_notification_preserves_primary_model_when_path_
|
||||
parent_thread_id: None,
|
||||
preview: "agent thread".to_string(),
|
||||
ephemeral: false,
|
||||
is_pinned: false,
|
||||
section: None,
|
||||
history_mode: Default::default(),
|
||||
model_provider: "agent-provider".to_string(),
|
||||
created_at: 1,
|
||||
@@ -3620,7 +3620,7 @@ async fn thread_read_session_state_does_not_reuse_primary_permission_profile() {
|
||||
parent_thread_id: None,
|
||||
preview: "read thread".to_string(),
|
||||
ephemeral: false,
|
||||
is_pinned: false,
|
||||
section: None,
|
||||
history_mode: Default::default(),
|
||||
model_provider: "read-provider".to_string(),
|
||||
created_at: 1,
|
||||
|
||||
@@ -417,7 +417,7 @@ mod tests {
|
||||
parent_thread_id: None,
|
||||
preview: "read thread".to_string(),
|
||||
ephemeral: false,
|
||||
is_pinned: false,
|
||||
section: None,
|
||||
history_mode: Default::default(),
|
||||
model_provider: "read-provider".to_string(),
|
||||
created_at: 1,
|
||||
|
||||
Reference in new issue
Block a user