chore: adapt command cwd layer to current APIs

This commit is contained in:
Adam Perry
2026-06-16 17:45:42 +00:00
parent 4a4c8fad12
commit 7da4e6a9ae
11 changed files with 22 additions and 46 deletions
@@ -36,7 +36,6 @@ use codex_protocol::protocol::SessionConfiguredEvent;
use codex_utils_absolute_path::test_support::PathBufExt;
use codex_utils_absolute_path::test_support::test_path_buf;
use codex_utils_path_uri::ApiPathString;
use codex_utils_path_uri::PathConvention;
use pretty_assertions::assert_eq;
use serde_json::json;
@@ -77,10 +76,8 @@ use codex_exec::TurnStartedEvent;
use codex_exec::Usage;
use codex_exec::WebSearchItem;
#[expect(clippy::expect_used, reason = "test paths are absolute")]
fn api_path(path: &str) -> ApiPathString {
ApiPathString::from_abs_path(&test_path_buf(path).abs(), PathConvention::native())
.expect("API path")
ApiPathString::from_abs_path(&test_path_buf(path).abs())
}
#[test]