mirror of
https://github.com/openai/codex.git
synced 2026-09-14 11:57:03 +00:00
codex: fix core CI fallout after rebase
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user