mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
11e0f3d3ae
## Summary Remove the dead experimental `persistExtendedHistory` app-server flag and collapse rollout persistence to the single policy app-server already used. ## What Changed - Removed `persistExtendedHistory` from v2 thread start/resume/fork params and deleted its deprecation notice path. - Removed the persistence-mode enums and plumbing through core, rollout, and thread-store. - Made rollout filtering mode-free, keeping the existing limited persisted-history behavior. ## Test Plan - `just write-app-server-schema` - `cargo nextest run --no-fail-fast -p codex-app-server-protocol schema_fixtures` - `cargo nextest run --no-fail-fast -p codex-app-server thread_shell_command_history_responses_exclude_persisted_command_executions` - `cargo nextest run --no-fail-fast -p codex-rollout -p codex-thread-store` - final `rg` for removed flag/type names
62 lines
1.8 KiB
Rust
62 lines
1.8 KiB
Rust
use crate::config::Config;
|
|
pub use codex_rollout::ARCHIVED_SESSIONS_SUBDIR;
|
|
pub use codex_rollout::Cursor;
|
|
pub use codex_rollout::INTERACTIVE_SESSION_SOURCES;
|
|
pub use codex_rollout::RolloutRecorder;
|
|
pub use codex_rollout::RolloutRecorderParams;
|
|
pub use codex_rollout::SESSIONS_SUBDIR;
|
|
pub use codex_rollout::SessionMeta;
|
|
pub use codex_rollout::SortDirection;
|
|
pub use codex_rollout::ThreadItem;
|
|
pub use codex_rollout::ThreadSortKey;
|
|
pub use codex_rollout::ThreadsPage;
|
|
pub use codex_rollout::append_thread_name;
|
|
pub use codex_rollout::find_archived_thread_path_by_id_str;
|
|
#[deprecated(note = "use find_thread_path_by_id_str")]
|
|
pub use codex_rollout::find_conversation_path_by_id_str;
|
|
pub use codex_rollout::find_thread_meta_by_name_str;
|
|
pub use codex_rollout::find_thread_name_by_id;
|
|
pub use codex_rollout::find_thread_names_by_ids;
|
|
pub use codex_rollout::find_thread_path_by_id_str;
|
|
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;
|
|
|
|
impl codex_rollout::RolloutConfigView for Config {
|
|
fn codex_home(&self) -> &std::path::Path {
|
|
self.codex_home.as_path()
|
|
}
|
|
|
|
fn sqlite_home(&self) -> &std::path::Path {
|
|
self.sqlite_home.as_path()
|
|
}
|
|
|
|
fn cwd(&self) -> &std::path::Path {
|
|
self.cwd.as_path()
|
|
}
|
|
|
|
fn model_provider_id(&self) -> &str {
|
|
self.model_provider_id.as_str()
|
|
}
|
|
|
|
fn generate_memories(&self) -> bool {
|
|
self.memories.generate_memories
|
|
}
|
|
}
|
|
|
|
pub(crate) mod list {
|
|
pub use codex_rollout::find_thread_path_by_id_str;
|
|
}
|
|
|
|
#[cfg(test)]
|
|
pub(crate) mod recorder {
|
|
pub use codex_rollout::RolloutRecorder;
|
|
}
|
|
|
|
pub(crate) use crate::session_rollout_init_error::map_session_init_error;
|
|
|
|
pub(crate) mod truncation {
|
|
pub(crate) use crate::thread_rollout_truncation::*;
|
|
}
|