From 5675af519013bdb232409ee1099c598f50910a22 Mon Sep 17 00:00:00 2001 From: sayan-oai Date: Tue, 13 Jan 2026 21:37:41 -0800 Subject: [PATCH] chore: clarify default shell for unified_exec (#8997) The description of the `shell` arg for `exec_command` states the default is `/bin/bash`, but AFAICT it's the user's default shell. Default logic [here](https://github.com/openai/codex/blob/2a06d64bc996e4d848b95285700b195c2852a42f/codex-rs/core/src/tools/handlers/unified_exec.rs#L123). EDIT: #9004 has an alternative where we inform the model of the default shell itself. --- codex-rs/core/src/tools/spec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/core/src/tools/spec.rs b/codex-rs/core/src/tools/spec.rs index 0a66b4140..5b4f8effb 100644 --- a/codex-rs/core/src/tools/spec.rs +++ b/codex-rs/core/src/tools/spec.rs @@ -157,7 +157,7 @@ fn create_exec_command_tool() -> ToolSpec { ( "shell".to_string(), JsonSchema::String { - description: Some("Shell binary to launch. Defaults to /bin/bash.".to_string()), + description: Some("Shell binary to launch. Defaults to the user's default shell.".to_string()), }, ), (