Skip to content

Commit 5675af5

Browse files
authored
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.
1 parent 31d9b6f commit 5675af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codex-rs/core/src/tools/spec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ fn create_exec_command_tool() -> ToolSpec {
157157
(
158158
"shell".to_string(),
159159
JsonSchema::String {
160-
description: Some("Shell binary to launch. Defaults to /bin/bash.".to_string()),
160+
description: Some("Shell binary to launch. Defaults to the user's default shell.".to_string()),
161161
},
162162
),
163163
(

0 commit comments

Comments
 (0)