Skip to content

/goal + exhausted credits = bug inside the TUI. #23159

Closed

Description

@ZypherHQ

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.

Image

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

Activity

  1. added
    CLIIssues related to the Codex CLI
    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal display
    rate-limitsIssues related to rate limits, quotas, and token usage reporting
    contextIssues related to context management (including compaction)
    on May 17, 2026
  2. ZypherHQ commented on May 17, 2026

    @ZypherHQ
    Author
    Image

    (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.

  3. YoloMark98 commented on May 17, 2026

    @YoloMark98

    same issue on my side!

  4. etraut-openai commented on May 17, 2026

    @etraut-openai
    Contributor

    Working on a fix: #23094

  5. etraut-openai commented on May 30, 2026

    @etraut-openai
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingcontextIssues related to context management (including compaction)rate-limitsIssues related to rate limits, quotas, and token usage reporting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions