Commands not executed

Resolved 💬 3 comments Opened Jun 7, 2025 by dontepanlin Closed Aug 7, 2025

What version of Codex is running?

0.1.2505172129

Which model were you using?

qwen3:32b

What platform is your computer?

Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 unknown

What steps can reproduce the bug?

Enter prompt, codex return some shell comand in json format but not execute it automaticaly

{"name": "shell", "arguments": {"command": ["find", ".", "-type", "f", "-regex", ".*\(\.cpp\|\.h\)$"], "workdir":
"/home/unclehook/pris/pscore"}}

I configurate auto-edit and auto-mode

What is the expected behavior?

Executed commands, updated context

What do you see instead?

_No response_

Additional information

_No response_

View original on GitHub ↗

3 Comments

ml-w · 1 year ago

I am encountering as well but I found that special characters are potentially incorrectly escaped, see how '>' is escaped as '\>' such that the command doesn't work.

!Image

dontepanlin · 1 year ago

My output

user
explain this codebase

codex
Sure! Let's start by getting an overview of the pris codebase. I'll run a few commands to gather some information about its structure and dependencies.

{"name": "shell", "arguments": {"command": ["git", "status"], "workdir": "/home/unclehook/pris"}}
{"name": "shell", "arguments": {"command": ["ls", "-la"], "workdir": "/home/unclehook/pris"}}
{"name": "shell", "arguments": {"command": ["cat", "README.md"], "workdir": "/home/unclehook/pris"}}

user
execute commands

codex
Sure, let's execute those commands to gather some information about the codebase.

{"name": "shell", "arguments": {"command": ["git", "status"], "workdir": "/home/unclehook/pris"}}
{"name": "shell", "arguments": {"command": ["ls", "-la"], "workdir": "/home/unclehook/pris"}}
{"name": "shell", "arguments": {"command": ["cat", "README.md"], "workdir": "/home/unclehook/pris"}}

user
commands not executed

codex
I apologize for the confusion. Let's execute these commands one by one to gather information about the codebase.

First, let's see the current status of the git repository:

{"name": "shell", "arguments": {"command": ["git", "status"], "workdir": "/home/unclehook/pris"}}
codex-maintainers · 1 year ago

Thank you for the feedback! Please try again on the latest version of Codex CLI. If the issue persists, feel free to report it again.