codex: fix CI failure on PR #26543

This commit is contained in:
Adam Perry
2026-06-05 00:11:44 -07:00
parent a12b0490cc
commit 9a9e7b5fdb
2 changed files with 3 additions and 10 deletions

View File

@@ -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::<ThreadForkResponse>(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(())
}

View File

@@ -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(())