codex ends without doing something

Resolved 💬 6 comments Opened May 3, 2025 by klausbreyer Closed Aug 7, 2025

What version of Codex is running?

0.2.3

Which model were you using?

o4-mini

What platform is your computer?

Darwin 24.4.0 arm64 arm

What steps can reproduce the bug?

npm install -g codex

and then running any codex commands.

codex

or

codex --approval-mode auto-edit "build the requirements.md"

What is the expected behavior?

That it does something

What do you see instead?

codex --version
0.2.3
(node:93715) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
(node:93715) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:93715) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:93715) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency

codex --approval-mode auto-edit "build the requirements.md"
(node:93320) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
(node:93320) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:93320) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:93320) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency

codex
(node:93606) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
(node:93606) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:93606) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:93606) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency

Additional information

Here is the requirements.md

https://github.com/klausbreyer/pokerhans/commit/3e0f2bfc2657c37bd3698cbb4778f77043d0c639

View original on GitHub ↗

6 Comments

mtch99 · 1 year ago

I had the same issue, I resolved it in two steps:

  • Downgrade node to version 22.14 (I guess this alone would solve the issue)
  • Configuring codex through ~/.codex/config.yaml
klausbreyer · 1 year ago

Thanks I will try it out the next time!

Jonatanc05 · 1 year ago

Same bug here. Happens on windows and wsl

systematicguy · 1 year ago

OMG thank you @mtch99 for the 22.14 trick. That solved the issue for me as well. Out of curiosity, what did you configure in your config?

Carter-Apas · 1 year ago

The issue here is that you are doing npm i -g codex instead of npm i -g @openai/codex

codex-maintainers · 1 year ago

Thank you for the feedback! Please try using the latest version of Codex CLI, which has been rewritten in Rust for improved stability and performance. You can install it with brew install codex. If the issue persists, feel free to let us know.