From ae9cf6339b3ed60c1bd21fe9a8910bf3a87dde38 Mon Sep 17 00:00:00 2001 From: Max Johnson Date: Fri, 13 Feb 2026 09:49:13 -0800 Subject: [PATCH] app-server: avoid expect in thread resume test --- codex-rs/app-server/tests/suite/v2/thread_resume.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);