Problem when codex running command
Resolved 💬 6 comments Opened Oct 23, 2025 by hlemonnier Closed Dec 23, 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.47.0
What subscription do you have?
pro
Which model were you using?
gpt5 high codex
What platform is your computer?
Linux 6.8.12-060812-generic x86_64 x86_64 and latest macos
What issue are you seeing?
Sometimes, when you run a command that takes a long time, it just keeps running. That’s expected if it’s stuck in an infinite loop, but other times it happens because the command failed or got stuck. Right now, the only way to stop it is to kill the whole process, which also closes the chat — so you have to start over. There should be a button, like a “Stop” or “Exit” in Cursor, that cancels just the command execution while keeping the chat open. That way, the model could still analyze the partial output and iterate on what happened without losing everything.
What steps can reproduce the bug?
Running a command with possible failure
What is the expected behavior?
_No response_
Additional information
_No response_
6 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Thanks for the bug report.
Just to make sure I understand your setup, are you using the CLI in a terminal within Cursor? Does Ctrl-C not terminate the command?
BTW, if you get into a situation where you need to resume an existing chat, you can use "codex resume".
no we mis understood im using codex in ide but there is no button codex resume in IDE ?
OK, so you're running the Codex extension in Cursor. Got it.
You can terminate a running command by clicking on the stop button in the composer.
<img width="356" height="132" alt="Image" src="https://github.com/user-attachments/assets/f72e6a38-3ac0-43d3-9d24-8baff48f67e0" />
You can then continue the conversation.
And you can resume previous conversations by clicking on the history button at the top of the panel.
<img width="363" height="68" alt="Image" src="https://github.com/user-attachments/assets/af7c334b-9820-46f3-a15d-06efc410afc8" />
yes this i know its thanks, i've uploaded an image of cursor chat not codex ide,
when a command is started by a model you have a button shift cancel that will kill the command that was started by the model but no kill the chat thats what im meaning, because sometime codex will lunch a command but somehow will last too long because of bugs or else and you cannot kill it unless you kill the chat but then if the resaoning or implementation was not finished you have to kind of restart
@etraut-openai tell me if you understand what i mean
<img width="434" height="208" alt="Image" src="https://github.com/user-attachments/assets/774a37d8-746e-43c6-ab0f-4cf4cb4818c6" />
This feature request hasn't received enough upvotes, so I'm going to close it.