Non-Interactive mode does not Exit/Close

Resolved 💬 3 comments Opened Jan 5, 2026 by MagnificentS Closed Mar 29, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.77.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.2

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

When running in non-interactive mode, codex responds but does not exit.
This was not the case before

What steps can reproduce the bug?

codex exec "hi" --skip-git-repo-check

<img width="1129" height="610" alt="Image" src="https://github.com/user-attachments/assets/52933005-f088-47e0-b606-8bc5da5e3334" />

What is the expected behavior?

I expect it to exit and return control back to me

<img width="1129" height="610" alt="Image" src="https://github.com/user-attachments/assets/01e9c419-0d11-493e-976b-59118aeef4dc" />

Additional information

This only started recently

View original on GitHub ↗

3 Comments

etraut-openai contributor · 7 months ago

Thanks for the bug report. You said "This was not the case before", which implies that you think this was a regression. Or do you think this might be related to a configuration change on your system? If you think it's a Codex regression, do you know which version you were using previously when it worked?

If you're able to repro this, please use the /feedback command to upload your logs and session details, then post the thread ID here.

MagnificentS · 7 months ago

Previous version was 0.72.0
Current version 0.77.0

Will send logs later due to on going processes

etraut-openai contributor · 5 months ago

This bug report hasn't received any upvotes or additional posts in three months. Closing.