Cannot execute any bash commands
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.
2 Comments
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
I'm on 0.28, running it via
codex --sandbox danger-full-accessIt 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
sed, and even python), so I couldn’t run a file search.
▌wat do u have access to then?
rg/find/sed/python). I can: