Hi Codex Dev team,
Codex struggles with terminal commands in the tool calls it executes and repeatedly tries to execute terminal commands that fail, which is time-consuming and wastes tokens.
It sometimes tries to use cli commands that aren’t available (grep on Windows isn’t standard) or runs incorrect commands like:
It’ll sometimes try more than 5 times to come up with the correct command to find what it needs and sometimes asks itself why its commands are failing before trying again.
I don’t know if it’s possible to configure the preferred terminal for Codex either as I don’t see an option for it in the settings, but I’ve noticed that it’ll sometimes call bash and sometimes use powershell to run commands, depending on the chat window. Unlike others like kiro or cursor, I don’t see Codex’s terminal added to the terminal section in vscode either, which would also be a nice to have.
Overall I really like Codex and hope this issue can be fixed soon.
