diff --git a/codex-rs/core/src/tools/runtimes/unified_exec.rs b/codex-rs/core/src/tools/runtimes/unified_exec.rs index fbf7c2a84b..6f0f01b77f 100644 --- a/codex-rs/core/src/tools/runtimes/unified_exec.rs +++ b/codex-rs/core/src/tools/runtimes/unified_exec.rs @@ -280,7 +280,11 @@ impl<'a> ToolRuntime for UnifiedExecRunt if let UnifiedExecShellMode::ZshFork(zsh_fork_config) = &self.shell_mode { let command = build_sandbox_command(&command, &req.cwd, &env, req.additional_permissions.clone()) - .map_err(|_| ToolError::Codex(CodexErr::InvalidRequest("missing command line for PTY".into())))?; + .map_err(|_| { + ToolError::Codex(CodexErr::InvalidRequest( + "missing command line for PTY".into(), + )) + })?; let options = unified_exec_options(attempt.network_denial_cancellation_token.clone()); let mut exec_env = attempt .env_for(command, options, managed_network) @@ -331,7 +335,11 @@ impl<'a> ToolRuntime for UnifiedExecRunt } let command = build_sandbox_command(&command, &req.cwd, &env, req.additional_permissions.clone()) - .map_err(|_| ToolError::Codex(CodexErr::InvalidRequest("missing command line for PTY".into())))?; + .map_err(|_| { + ToolError::Codex(CodexErr::InvalidRequest( + "missing command line for PTY".into(), + )) + })?; let options = unified_exec_options(attempt.network_denial_cancellation_token.clone()); let mut exec_env = attempt .env_for(command, options, managed_network)