Ctr-W on certain strings causes Codex to crash completely

Resolved 💬 3 comments Opened Nov 3, 2025 by mattzh72 Closed Nov 4, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.46.0

What subscription do you have?

API

Which model were you using?

GPT-5

What platform is your computer?

Darwin 23.6.0 arm64 arm

What issue are you seeing?

Codex crashes completely when attempting to ctrl-W certain strings.

What steps can reproduce the bug?

To repro, paste in encaptureui_jODh9T/Screenshot\ 2025-11-03\ at\ 3.35.26 PM.png and try to delete it via ctrl-W.

<img width="688" height="146" alt="Image" src="https://github.com/user-attachments/assets/fadb31e4-ed0a-4b10-8b52-ba7490c9164c" />

What is the expected behavior?

Codex should error completely, and quit.

Additional information

A similar issue does not happen on other terminal based coding agents, e.g. Claude Code.

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 9 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #4977

Powered by Codex Action

bolinfest collaborator · 9 months ago

@mattzh72 while we investigate this, FYI, 0.46.0 is a month old, so this may be fixed in a newer version https://github.com/openai/codex/releases/tag/rust-v0.46.0

mattzh72 · 9 months ago

Ah just upgraded to the latest version, this seems to be fixed! Thanks @bolinfest :)