`/goal` + exhausted credits = bug inside the TUI.

Resolved 💬 5 comments Opened May 17, 2026 by ZypherHQ Closed May 30, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex CLI is running?

codex-cli 0.130.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.5 xhigh

What platform is your computer?

Linux 6.8.0-111-generic x86_64 x86_64

What terminal emulator and version are you using (if applicable)?

Tabby

Codex doctor report

What issue are you seeing?

Described in my tweet: https://x.com/ZypherHQ/status/2056025841906196915

SUMMARY: The issue happens when credits run out while /goal is active: it keeps looping this message:

■ Error running remote compact task: You've hit your usage limit. Visit https://chatgpt.com/codex/settings/usage to purchase more credits or try again at 3:09 PM.

This continues until it completely blocks the session and forces the context window to be compacted, which should never happen.

<img width="1916" height="821" alt="Image" src="https://github.com/user-attachments/assets/96a8dbf1-5067-4b15-8c3f-7d4fa0b18bf5" />

What steps can reproduce the bug?

Finish the credits while having /goal task activated.

What is the expected behavior?

It should not keep looping the “credits exhausted” message. It should simply wait and check every hour, or even better, check the current time with the appropriate date command in the terminal and calculate how much time is left until the reset.

The problem is that people like me use tmux to store Codex sessions with /goal; when we come back to them, they are all broken and it is no longer possible to continue the update that was being done through goal.

So instead of breaking everything, it should wait and resume later, so it does not interrupt the feature-creation flow midway.

This will save time, money, and mental health for everyone working through Codex.

Additional information

_No response_

View original on GitHub ↗

5 Comments

github-actions[bot] contributor · 3 months ago

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

  • #22818
  • #23003
  • #23067

Powered by Codex Action

ZypherHQ · 3 months ago

<img width="972" height="165" alt="Image" src="https://github.com/user-attachments/assets/c1b6a4cc-2472-4e2a-904a-668b54e9bc57" />

(Message taken from a post similar to mine)

I like that /goal does not stop; there should simply be better handling to prevent the entire session from getting stuck and the text from being compacted due to excessive spam.

YoloMark98 · 3 months ago

same issue on my side!

etraut-openai contributor · 3 months ago
etraut-openai contributor · 3 months ago

The goal runtime now stops if you hit your usage limits.