diff --git a/codex-rs/app-server/tests/suite/v2/thread_resume.rs b/codex-rs/app-server/tests/suite/v2/thread_resume.rs index b8a16278e4..e001d4a7fd 100644 --- a/codex-rs/app-server/tests/suite/v2/thread_resume.rs +++ b/codex-rs/app-server/tests/suite/v2/thread_resume.rs @@ -861,7 +861,9 @@ async fn start_materialized_thread_and_restart( .await??; let thread_id = thread.id; - let rollout_file_path = thread.path.expect("thread path"); + let rollout_file_path = thread + .path + .ok_or_else(|| anyhow::anyhow!("thread path missing from thread/start response"))?; drop(first_mcp);