From e6c8b82fe48423556946f474f253dae9d447ab0c Mon Sep 17 00:00:00 2001 From: Kyle Brown Date: Wed, 17 Jun 2026 22:32:25 +0000 Subject: [PATCH] Fix unified exec lifecycle cwd conversion --- codex-rs/core/src/tools/runtimes/unified_exec.rs | 3 ++- 1 file changed, 2 insertions(+), 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 2a4c29fd01..66bbc4ef8e 100644 --- a/codex-rs/core/src/tools/runtimes/unified_exec.rs +++ b/codex-rs/core/src/tools/runtimes/unified_exec.rs @@ -207,13 +207,14 @@ fn resolve_plugin_script_execution( req: &UnifiedExecRequest, ctx: &ToolCtx, ) -> Option> { + let cwd = req.cwd.to_abs_path().ok()?; should_track_plugin_script(req) .then(|| { PluginScriptExecution::resolve( ctx.session.as_ref(), ctx.turn.as_ref(), &req.hook_command, - &req.cwd, + &cwd, req.shell_type, ) })