codex: fix core CI fallout after rebase

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Charles Cunningham
2026-03-07 06:37:50 -08:00
parent 59f4327e0c
commit d326eab70c
3 changed files with 5 additions and 3 deletions

View File

@@ -1335,8 +1335,6 @@ impl Session {
if config.ephemeral {
Ok::<_, anyhow::Error>((None, None))
} else {
let state_db_ctx = state_db::init(&config, None).await;
let rollout_store = RolloutStore::new(
let state_db_ctx = state_db::init(&config).await;
let rollout_store = RolloutStore::new(
&config,

View File

@@ -3576,6 +3576,8 @@ async fn session_new_ephemeral_resume_keeps_in_memory_history() {
compact_prompt: config.compact_prompt.clone(),
approval_policy: config.permissions.approval_policy.clone(),
sandbox_policy: config.permissions.sandbox_policy.clone(),
file_system_sandbox_policy: config.permissions.file_system_sandbox_policy.clone(),
network_sandbox_policy: config.permissions.network_sandbox_policy,
windows_sandbox_level: WindowsSandboxLevel::from_config(&config),
cwd: config.cwd.clone(),
codex_home: config.codex_home.clone(),
@@ -3662,6 +3664,8 @@ async fn session_new_ephemeral_resume_with_empty_history_does_not_panic() {
compact_prompt: config.compact_prompt.clone(),
approval_policy: config.permissions.approval_policy.clone(),
sandbox_policy: config.permissions.sandbox_policy.clone(),
file_system_sandbox_policy: config.permissions.file_system_sandbox_policy.clone(),
network_sandbox_policy: config.permissions.network_sandbox_policy,
windows_sandbox_level: WindowsSandboxLevel::from_config(&config),
cwd: config.cwd.clone(),
codex_home: config.codex_home.clone(),

View File

@@ -595,7 +595,7 @@ mod tests {
let mut file = File::create(&path).expect("create rollout");
writeln!(file, "{{").expect("write invalid rollout");
let err = extract_metadata_from_rollout(&path, "openai", None)
let err = extract_metadata_from_rollout(&path, "openai")
.await
.expect_err("unparsable rollout should fail metadata extraction");
assert_eq!(