Skip to content

Commit fe6f86f

Browse files
committed
codex: fix CI failure on PR #29992
1 parent 3dd14a7 commit fe6f86f

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

codex-rs/app-server/tests/suite/v2/selected_environment.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,12 @@ async fn thread_start_reports_selected_environment_metadata() -> Result<()> {
122122
active_permission_profile,
123123
..
124124
} = fixture.start_thread().await?;
125-
let host_cwd = fixture.codex_home.path().to_path_buf().abs();
125+
let host_cwd = fixture
126+
.codex_home
127+
.path()
128+
.to_path_buf()
129+
.abs()
130+
.canonicalize()?;
126131
assert_eq!(
127132
(cwd, runtime_workspace_roots, active_permission_profile),
128133
(
@@ -218,9 +223,15 @@ async fn turn_model_context_uses_selected_environment() -> Result<()> {
218223
)),
219224
)
220225
);
226+
let host_cwd = fixture
227+
.codex_home
228+
.path()
229+
.to_path_buf()
230+
.abs()
231+
.canonicalize()?;
221232
let host_workspace_roots = format!(
222233
"<workspace_roots><root>{}</root></workspace_roots>",
223-
fixture.codex_home.path().display()
234+
host_cwd.as_path().display()
224235
);
225236
// TODO(anp): Derive model-visible workspace roots from the selected remote environment and
226237
// render them using its native path convention.

0 commit comments

Comments
 (0)