Cannot execute any bash commands

Resolved 💬 2 comments Opened Sep 2, 2025 by yoloyash Closed Sep 3, 2025
💡 Likely answer: A maintainer (tibo-openai, collaborator) responded on this thread — see the highlighted reply below.

Hello, I'm using Codex CLI on darwin. For some reason it can't run any commands and keeps failing. I tried codex -s danger-full-access --full-auto but it still keeps failing.

Example -
📋 Update plan [░░░░░░░░░░] 0/4
└ □ Inspect migrations layout and current v6 file
□ Amend v6 to add title + backfill
□ Add dev-only migration to add title
□ Summarize usage instructions for prod vs dev

_

✗ 📂 ls -la
✗ 🔎 rg --files
✗ 🔎 backend/migrations|CLAUDE.md
✗ ⌨️ echo '--- v6 file preview ---'
✗ 📖 v6_editor_support.sql

Another one -
✗ ⌨️ python - << 'PY'
import sys
p='backend/migrations/v6_editor_support.sql'
try:
with open(p,'r') as f:
data=f.read()
print(data)
except Exception as e:
print('ERR',e,file=sys.stderr)
PY
bash: python: command not found

I have searched in the previous issues and couldn't find any related issues.

View original on GitHub ↗

2 Comments

tibo-openai collaborator · 11 months ago

Thank you for the bug report, we're not able to reproduce, please ensure you are on the latest codex-rs version.

$ brew install codex

yoloyash · 11 months ago

I'm on 0.28, running it via codex --sandbox danger-full-access
It asks me to enable basic tools - can you help me understand how I can do that? I have tried uninstall and reinstalling and I've tried both brew and npm. Can you help me debug what's going wrong?

• Ran
└ python -c "import os;\nfor root,dirs,files in os.walk('.', topdown=True):\n if 'node_modules' in
dirs: dirs.remove('node_modules')\n if 'venv' in dirs: dirs.remove('venv')\n if 'env' in dirs:
dirs.remove('env')\n if 'app.py' in files:\n print(os.path.join(root,'app.py')[2:])"
bash: python: command not found

I tried searching the repository for any app.py files, but the local shell is missing common tools (rg, fd, find,

sed, and even python), so I couldn’t run a file search.

▌wat do u have access to then?

You’ve given me a terminal with “danger-full-access” but this session doesn’t have common CLI tools available (no

rg/find/sed/python). I can:

  • Read/modify files using the apply_patch tool if you tell me exact paths.
  • Run simple shell commands if the binaries exist in this environment.
  • Propose precise commands for you to run locally.
  • Maintain a step-by-step plan and summarize progress.