Route app-server thread storage through thread store

This commit is contained in:
Tom Wiltzius
2026-04-13 15:15:37 -07:00
parent bc93ec2b33
commit 4d7b4c3cdf
9 changed files with 408 additions and 763 deletions
+1
View File
@@ -56,6 +56,7 @@ codex-rmcp-client = { workspace = true }
codex-sandboxing = { workspace = true }
codex-state = { workspace = true }
codex-terminal-detection = { workspace = true }
codex-thread-store = { workspace = true }
codex-tools = { workspace = true }
codex-utils-absolute-path = { workspace = true }
codex-utils-cache = { workspace = true }
+15
View File
@@ -153,16 +153,30 @@ pub(crate) mod turn_diff_tracker;
mod turn_metadata;
mod turn_timing;
pub use rollout::ARCHIVED_SESSIONS_SUBDIR;
pub use rollout::ArchiveThreadParams;
pub use rollout::Cursor;
pub use rollout::EventPersistenceMode;
pub use rollout::FindThreadByNameParams;
pub use rollout::GitInfoPatch;
pub use rollout::INTERACTIVE_SESSION_SOURCES;
pub use rollout::ListThreadsParams as StoreListThreadsParams;
pub use rollout::LocalThreadStore;
pub use rollout::ReadThreadParams;
pub use rollout::RolloutRecorder;
pub use rollout::RolloutRecorderParams;
pub use rollout::SESSIONS_SUBDIR;
pub use rollout::SessionMeta;
pub use rollout::SetThreadNameParams;
pub use rollout::StoreThreadSortKey;
pub use rollout::StoredThread;
pub use rollout::ThreadItem;
pub use rollout::ThreadMetadataPatch;
pub use rollout::ThreadOwner;
pub use rollout::ThreadSortKey;
pub use rollout::ThreadStore;
pub use rollout::ThreadStoreError;
pub use rollout::ThreadsPage;
pub use rollout::UpdateThreadMetadataParams;
pub use rollout::append_thread_name;
pub use rollout::find_archived_thread_path_by_id_str;
#[deprecated(note = "use find_thread_path_by_id_str")]
@@ -171,6 +185,7 @@ pub use rollout::find_thread_meta_by_name_str;
pub use rollout::find_thread_name_by_id;
pub use rollout::find_thread_names_by_ids;
pub use rollout::find_thread_path_by_id_str;
pub use rollout::local_thread_store;
pub use rollout::parse_cursor;
pub use rollout::read_head_for_summary;
pub use rollout::read_session_meta_line;
+18
View File
@@ -22,6 +22,20 @@ pub use codex_rollout::parse_cursor;
pub use codex_rollout::read_head_for_summary;
pub use codex_rollout::read_session_meta_line;
pub use codex_rollout::rollout_date_parts;
pub use codex_thread_store::ArchiveThreadParams;
pub use codex_thread_store::FindThreadByNameParams;
pub use codex_thread_store::GitInfoPatch;
pub use codex_thread_store::ListThreadsParams;
pub use codex_thread_store::LocalThreadStore;
pub use codex_thread_store::ReadThreadParams;
pub use codex_thread_store::SetThreadNameParams;
pub use codex_thread_store::StoredThread;
pub use codex_thread_store::ThreadMetadataPatch;
pub use codex_thread_store::ThreadOwner;
pub use codex_thread_store::ThreadSortKey as StoreThreadSortKey;
pub use codex_thread_store::ThreadStore;
pub use codex_thread_store::ThreadStoreError;
pub use codex_thread_store::UpdateThreadMetadataParams;
impl codex_rollout::RolloutConfigView for Config {
fn codex_home(&self) -> &std::path::Path {
@@ -45,6 +59,10 @@ impl codex_rollout::RolloutConfigView for Config {
}
}
pub fn local_thread_store(config: &impl codex_rollout::RolloutConfigView) -> LocalThreadStore {
LocalThreadStore::from_config_view(config)
}
pub(crate) mod list {
pub use codex_rollout::ThreadListConfig;
pub use codex_rollout::ThreadListLayout;