From 4b2d35ec2e3795d7b29749891c82cdf4b53e3e7a Mon Sep 17 00:00:00 2001 From: Adam Perry Date: Fri, 10 Jul 2026 03:47:25 +0000 Subject: [PATCH] codex: fix CI failure on PR #32002 --- .../app-server-protocol/src/protocol/common.rs | 8 ++++---- .../app-server-protocol/src/protocol/v2/tests.rs | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/codex-rs/app-server-protocol/src/protocol/common.rs b/codex-rs/app-server-protocol/src/protocol/common.rs index 27a8b0205d..0f9dcbb05a 100644 --- a/codex-rs/app-server-protocol/src/protocol/common.rs +++ b/codex-rs/app-server-protocol/src/protocol/common.rs @@ -1837,7 +1837,7 @@ mod tests { request_id: request_id(), params: v2::FsWatchParams { watch_id: "watch-1".to_string(), - path: absolute_path("/tmp/repo"), + path: absolute_path("/tmp/repo").into(), }, }; assert_eq!( @@ -2087,7 +2087,7 @@ mod tests { let fs_read = ClientRequest::FsReadFile { request_id: request_id(), params: v2::FsReadFileParams { - path: absolute_path("/tmp/file.txt"), + path: absolute_path("/tmp/file.txt").into(), }, }; assert_eq!(fs_read.serialization_scope(), None); @@ -3073,7 +3073,7 @@ mod tests { let request = ClientRequest::FsGetMetadata { request_id: RequestId::Integer(10), params: v2::FsGetMetadataParams { - path: absolute_path("tmp/example"), + path: absolute_path("tmp/example").into(), }, }; assert_eq!( @@ -3095,7 +3095,7 @@ mod tests { request_id: RequestId::Integer(10), params: v2::FsWatchParams { watch_id: "watch-git".to_string(), - path: absolute_path("tmp/repo/.git"), + path: absolute_path("tmp/repo/.git").into(), }, }; assert_eq!( diff --git a/codex-rs/app-server-protocol/src/protocol/v2/tests.rs b/codex-rs/app-server-protocol/src/protocol/v2/tests.rs index 93ec11d7ce..82ece098b4 100644 --- a/codex-rs/app-server-protocol/src/protocol/v2/tests.rs +++ b/codex-rs/app-server-protocol/src/protocol/v2/tests.rs @@ -923,7 +923,7 @@ fn fs_read_file_response_round_trips_base64_data() { #[test] fn fs_read_file_params_round_trip() { let params = FsReadFileParams { - path: absolute_path("tmp/example.txt"), + path: absolute_path("tmp/example.txt").into(), }; let value = serde_json::to_value(¶ms).expect("serialize fs/readFile params"); @@ -942,7 +942,7 @@ fn fs_read_file_params_round_trip() { #[test] fn fs_create_directory_params_round_trip_with_default_recursive() { let params = FsCreateDirectoryParams { - path: absolute_path("tmp/example"), + path: absolute_path("tmp/example").into(), recursive: None, }; @@ -963,7 +963,7 @@ fn fs_create_directory_params_round_trip_with_default_recursive() { #[test] fn fs_write_file_params_round_trip_with_base64_data() { let params = FsWriteFileParams { - path: absolute_path("tmp/example.bin"), + path: absolute_path("tmp/example.bin").into(), data_base64: "AAE=".to_string(), }; @@ -984,8 +984,8 @@ fn fs_write_file_params_round_trip_with_base64_data() { #[test] fn fs_copy_params_round_trip_with_recursive_directory_copy() { let params = FsCopyParams { - source_path: absolute_path("tmp/source"), - destination_path: absolute_path("tmp/destination"), + source_path: absolute_path("tmp/source").into(), + destination_path: absolute_path("tmp/destination").into(), recursive: true, }; @@ -1042,8 +1042,8 @@ fn fs_changed_notification_round_trips() { let notification = FsChangedNotification { watch_id: "0195ec6b-1d6f-7c2e-8c7a-56f2c4a8b9d1".to_string(), changed_paths: vec![ - absolute_path("tmp/repo/.git/HEAD"), - absolute_path("tmp/repo/.git/FETCH_HEAD"), + absolute_path("tmp/repo/.git/HEAD").into(), + absolute_path("tmp/repo/.git/FETCH_HEAD").into(), ], };