From 9a9e7b5fdbbb42554aa972722dacf202c7a2e17a Mon Sep 17 00:00:00 2001 From: Adam Perry Date: Fri, 5 Jun 2026 00:11:44 -0700 Subject: [PATCH] codex: fix CI failure on PR #26543 --- codex-rs/app-server/tests/suite/v2/thread_fork.rs | 9 ++------- codex-rs/app-server/tests/suite/v2/thread_resume.rs | 4 +--- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/codex-rs/app-server/tests/suite/v2/thread_fork.rs b/codex-rs/app-server/tests/suite/v2/thread_fork.rs index 98c5188aa2..86c9e7f50d 100644 --- a/codex-rs/app-server/tests/suite/v2/thread_fork.rs +++ b/codex-rs/app-server/tests/suite/v2/thread_fork.rs @@ -36,7 +36,6 @@ use codex_protocol::protocol::RolloutItem; use codex_rollout::append_rollout_item_to_path; use codex_rollout::append_thread_name; use codex_rollout::read_session_meta_line; -use codex_utils_absolute_path::AbsolutePathBuf; use pretty_assertions::assert_eq; use serde_json::Value; use serde_json::json; @@ -295,16 +294,12 @@ async fn thread_fork_loads_instruction_sources() -> Result<()> { ) .await??; let ThreadForkResponse { + cwd, instruction_sources, .. } = to_response::(fork_resp)?; - assert_eq!( - instruction_sources, - vec![AbsolutePathBuf::try_from(std::fs::canonicalize( - project_agents - )?)?] - ); + assert_eq!(instruction_sources, vec![cwd.join("AGENTS.md")]); Ok(()) } 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 9bc416741d..9f15f1c101 100644 --- a/codex-rs/app-server/tests/suite/v2/thread_resume.rs +++ b/codex-rs/app-server/tests/suite/v2/thread_resume.rs @@ -381,9 +381,7 @@ async fn thread_resume_cold_thread_loads_instruction_sources() -> Result<()> { assert_eq!( instruction_sources, - vec![AbsolutePathBuf::try_from(std::fs::canonicalize( - project_agents - )?)?] + vec![AbsolutePathBuf::try_from(project_agents)?] ); Ok(())