@@ -10,18 +10,18 @@ before it can exit. Add a regression test that returns a helper-shaped response
1010larger than a typical pipe buffer.
1111
1212diff --git a/codex-rs/exec-server/src/fs_sandbox.rs b/codex-rs/exec-server/src/fs_sandbox.rs
13- index cd2cc38..c348b8d 100644
13+ index 3dbcf73..1ef9129 100644
1414--- a/codex-rs/exec-server/src/fs_sandbox.rs
1515+++ b/codex-rs/exec-server/src/fs_sandbox.rs
16- @@ -16 ,6 +16 ,7 @@ use codex_sandboxing::SandboxablePreference;
16+ @@ -17 ,6 +17 ,7 @@ use codex_sandboxing::SandboxablePreference;
1717 use codex_utils_absolute_path::AbsolutePathBuf;
1818 use codex_utils_absolute_path::canonicalize_preserving_symlinks;
1919 use codex_utils_path_uri::PathUri;
2020+ use tokio::io::AsyncReadExt;
2121 use tokio::io::AsyncWriteExt;
2222 use tokio::process::Command;
2323
24- @@ -278 ,6 +279 ,25 @@ async fn run_command(
24+ @@ -299 ,6 +300 ,25 @@ async fn run_command(
2525 request_json: Vec<u8>,
2626 ) -> Result<FsHelperPayload, JSONRPCErrorError> {
2727 let mut child = spawn_command(command)?;
@@ -47,7 +47,7 @@ index cd2cc38..c348b8d 100644
4747 let mut stdin = child
4848 .stdin
4949 .take()
50- @@ -286 ,15 +306 ,17 @@ async fn run_command(
50+ @@ -307 ,15 +327 ,17 @@ async fn run_command(
5151 stdin.shutdown().await.map_err(io_error)?;
5252 drop(stdin);
5353
@@ -70,7 +70,7 @@ index cd2cc38..c348b8d 100644
7070 match response {
7171 FsHelperResponse::Ok(payload) => Ok(payload),
7272 FsHelperResponse::Error(error) => Err(error),
73- @@ -335 ,6 +357 ,10 @@ fn io_error(err: std::io::Error) -> JSONRPCErrorError {
73+ @@ -358 ,6 +380 ,10 @@ fn io_error(err: std::io::Error) -> JSONRPCErrorError {
7474 internal_error(err.to_string())
7575 }
7676
@@ -81,7 +81,7 @@ index cd2cc38..c348b8d 100644
8181 fn json_error(err: serde_json::Error) -> JSONRPCErrorError {
8282 internal_error(format!(
8383 "failed to encode or decode fs sandbox helper message: {err}"
84- @@ -646 ,6 +672 ,58 @@ mod tests {
84+ @@ -675 ,6 +701 ,58 @@ mod tests {
8585 assert!(policy.can_read_path_with_cwd(alias_parent.as_path(), cwd.as_path()));
8686 }
8787
0 commit comments