From 209f50a22da003867627c50d89ea7c6a57cbf0fe Mon Sep 17 00:00:00 2001 From: starr-openai Date: Wed, 8 Apr 2026 12:34:59 -0700 Subject: [PATCH] codex: convert remote exec cwd at wire boundary Keep unified_exec request state as AbsolutePathBuf, but serialize the cwd to PathBuf when constructing exec-server ExecParams. Co-authored-by: Codex --- codex-rs/core/src/tools/runtimes/unified_exec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/core/src/tools/runtimes/unified_exec.rs b/codex-rs/core/src/tools/runtimes/unified_exec.rs index 35172976fc..1834ed40b8 100644 --- a/codex-rs/core/src/tools/runtimes/unified_exec.rs +++ b/codex-rs/core/src/tools/runtimes/unified_exec.rs @@ -253,7 +253,7 @@ impl<'a> ToolRuntime for UnifiedExecRunt let exec_params = codex_exec_server::ExecParams { process_id: req.process_id.to_string().into(), argv: command, - cwd: req.cwd.clone(), + cwd: req.cwd.to_path_buf(), env, tty: req.tty, arg0: None,