openai / openai/codex

[CLI][Plan Mode] Low-quota model-switch suggestion replaces the plan confirmation prompt below 10% usage

Open
#43,331 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug CLI plan rate-limits TUI
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What variant of Codex are you using?

Codex CLI / TUI, Plan Mode.

What issue are you seeing?

When remaining Codex usage falls below 10%, the CLI shows a low-quota warning/suggestion recommending that the user switch models.

If this happens at the point where Plan Mode has finished generating the final plan, that low-quota/model-switch message replaces or displaces the normal plan confirmation UI.

The final plan is printed, but the expected confirmation prompt/buttons (for example, Implement this plan?) never appear. As a result, there is no normal way to accept the completed plan and transition from planning to implementation.

I have confirmed that this bug is reproducible.

What steps can reproduce the bug?
  1. Use Codex CLI in Plan Mode.
  2. Have less than 10% usage/quota remaining so that the CLI will display the low-quota model-switch recommendation.
  3. Ask Codex to produce a plan for a task.
  4. Let Plan Mode finish and output the final plan.
  5. Observe the low-quota/model-switch recommendation being displayed.
  6. Observe that the normal plan confirmation UI is no longer shown.
Actual behavior

The CLI outputs the final plan, then the low-quota/model-switch suggestion takes over the interactive UI area. The pending Plan Mode confirmation is lost, so no confirmation buttons/options are available.

Expected behavior

Low-quota/model-switch notifications must not replace or cancel an outstanding Plan Mode confirmation.

After the final plan is generated, the user should still be able to review and accept/reject the plan normally. The quota warning could be shown above the confirmation, alongside it, or after the pending confirmation has been resolved, but the interactive confirmation state should be preserved.

Why this matters

This breaks the normal Plan Mode workflow specifically near the usage limit: the plan completes successfully, but the user cannot confirm it and continue to implementation. It appears to be a TUI state/priority conflict between the low-quota notification and the pending Plan Mode confirmation UI.

Related issues
  • #31546 — Plan completion can fail to surface the confirmation prompt, but does not identify low quota/model-switch messaging as the trigger.
  • #26996 — Plan confirmation UI conflicts with model/speed controls, but reports the opposite overlap direction and primarily a Desktop workflow.
  • #24927 — Discusses behavior below 10% quota and low-quota safety/confirmation, but not this TUI confirmation-loss bug.

This report is intended to capture the specific reproducible interaction between the below-10% quota warning/model-switch suggestion and the Plan Mode confirmation state.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the interaction in Codex CLI/TUI Plan Mode with less than 10% usage remaining, then trace the Plan Mode confirmation and low-quota/model-switch notification states. Done means the completed plan still presents usable confirmation controls, while the quota message remains visible without replacing or cancelling that confirmation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.