Refine rollout crate extraction

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed Ibrahim
2026-03-20 22:41:19 +00:00
co-authored by Codex
parent 8335b7c0a8
commit 6faad04e8d
23 changed files with 87 additions and 139 deletions
+1 -11
View File
@@ -5,11 +5,11 @@ use std::path::PathBuf;
use chrono::Utc;
use codex_core::config::ConfigBuilder;
use codex_core::rollout_config;
use codex_protocol::ThreadId;
use codex_protocol::models::BaseInstructions;
use codex_protocol::protocol::SessionSource;
use codex_rollout::EventPersistenceMode;
use codex_rollout::RolloutConfig;
use codex_rollout::RolloutRecorder;
use codex_rollout::RolloutRecorderParams;
use codex_rollout::find_archived_thread_path_by_id_str;
@@ -51,16 +51,6 @@ fn write_minimal_rollout_with_id_in_subdir(codex_home: &Path, subdir: &str, id:
file
}
fn rollout_config(config: &codex_core::config::Config) -> RolloutConfig {
RolloutConfig::new(
config.codex_home.clone(),
config.sqlite_home.clone(),
config.cwd.clone(),
config.model_provider_id.clone(),
config.memories.generate_memories,
)
}
/// Create sessions/YYYY/MM/DD and write a minimal rollout file containing the
/// provided conversation id in the SessionMeta line. Returns the absolute path.
fn write_minimal_rollout_with_id(codex_home: &Path, id: Uuid) -> PathBuf {