Codex acting weird. Does not follow instructions. Takes very long. Not normal.

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

What version of Codex is running?

codex-cli 0.27.0

Which model were you using?

gpt-5

What platform is your computer?

Darwin 24.6.0 arm64 arm

What steps can reproduce the bug?

codex
help me delete all traces of anaconda on my system

What is the expected behavior?

to perform tasks

What do you see instead?

takes forever and codex quits

Additional information

_No response_

View original on GitHub ↗

5 Comments

tibo-openai collaborator · 11 months ago

Thank you for your feedback, this seems like a model behavior issue, I've brought this to the team and they will look at it. Any additional information on what you're seeing would be useful here to help us understand what went wrong. Thank you!

cyruszad · 11 months ago

I got this:
▌Error: The cursor position could not be read within a normal duration
⏎ send Ctrl+J newline Ctrl+T transcript Ctrl+C quit 54857 tokens used 98% context left

cyruszad · 11 months ago

Also, worth noting when it needs perm to run a script. For example I asked it to remove all python versions from my mac and reinstall a fresh copy from hombrew. It would ask for permission to do that (inside the vs code terminal and the regular terminal) and I wouldn't see an option to approve - I instinctively press enter and it works but the option isn't showing. Also, what if it needed my sudo pass to do admin work on the mac. There doesn't seem to be an option to enter a pass.

cyruszad · 11 months ago

Here is an example of what I'm seeing Proceeding to uninstall Homebrew Pythons, remove the python.org 3.12 framework,
? Codex wants to run
set -euo pipefail

log(){ printf "\n>>> %s\n" "$1"; }

BREW_PRESENT=0
if command -v brew >/dev/null 2>&1; then BREW_PRESENT=1; fi

if [ "$BREW_PRESENT" -eq 1 ]; then
log "Uninstall Homebrew Python formulae (forcing ignore-dependencies)"
for f in python@3.13 python@3.12; do
if brew list --formula 2>/dev/null | grep -qx "$f"; then
echo "Removing $f";
brew uninstall --ignore-dependencies "$f" || true
brew cleanup -s "$f" || true
else
echo "$f not installed via brew";
fi
done
else
log "Homebrew not present, skipping brew uninstall"
fi

log "Remove python.org framework 3.12 if present"
if [ -d "/Library/Frameworks/Python.framework/Versions/3.12" ]; then
rm -rf "/Library/Frameworks/Python.framework/Versions/3.12"
# If Current symlink points to 3.12, remove it
if [ -L "/Library/Frameworks/Python.framework/Versions/Current" ]; then
CURTGT=$(readlink
"/Library/Frameworks/Python.framework/Versions/Current" || true)
case "$CURTGT" in
3.12) rm -f
"/Library/Frameworks/Python.framework/Versions/Current";;

  • No option to approve
etraut-openai contributor · 9 months ago

Thanks for the bug report. We've shared the feedback with the team members who are responsible for training our codex models. We're tracking this feedback and similar reports so we can make the model more robust in future iterations.

If you see other model behavior that you'd like to report, please use the recently-added /feedback command in the CLI. That will provide us with additional details including logs and conversation text.