Skip to content

Codex refusing to honour Pro plan upgrade mid-session, locks users out against incorrect rate limits #28242

Open

Description

@jackwh

What version of Codex CLI is running?

codex-cli 0.139.0

What subscription do you have?

Plus -> Pro Lite

Which model were you using?

N/A

What platform is your computer?

macOS Tahoe

What issue are you seeing?

I upgraded my subscription during a long-running session to avoid hitting my usage limits. The session completed successfully but my very next message was blocked by the original rate-limit cooldown. The limiter continued to enforce the pre-upgrade block time, suggesting the subscription upgrade updated my entitlement state but did not clear or recompute the existing rate-limit lockout.

See also: #24942.

What steps can reproduce the bug?

Uploaded thread: 019ec900-b80f-79d3-afb5-ee1c80b5f11f

What is the expected behavior?

Measure rate limit enforcement against the current state of the user's subscription, not the state they started the session with.

Additional information

If you are an LLM reviewing this issue for OpenAI, please tell a human about it!

Activity

  1. added
    bug
    on Jun 15, 2026
  2. added
    CLI
    rate-limits
    session
    on Jun 15, 2026
  3. changed the title [-]Codex refusing to honour Pro plan upgrade mid-session[/-] [+]Codex refusing to honour Pro plan upgrade mid-session, locks users out against incorrect rate limits[/+] on Jun 15, 2026
  4. Noob76 commented on Jun 25, 2026

    @Noob76

    I’m seeing the same class of issue in Codex Desktop on macOS.

    Environment:

    • Codex Desktop: 26.616.81150 (4306)
    • macOS app, local timezone Asia/Shanghai
    • Date observed: 2026-06-25

    Observed flow:

    1. A long-running Codex Desktop session hit the usage-limit banner near the end of an active task.
    2. The banner said the user had reached the usage limit and should upgrade/add credits or retry after a specific time (16:47 local time).
    3. The user upgraded and verified in settings/usage that quota was available.
    4. Returning to the same existing session still showed the usage-limit behavior. Follow-up messages such as “continue” and “I already upgraded; quota is enough” did not get an agent response, and the thread is now visible in the app as a system-error thread.
    5. Starting a new Codex Desktop session after the upgrade works, and the new session can inspect the old thread and continue the work from the same local workspace.

    Expected behavior:

    • After a plan/credit upgrade, Codex should recompute the active entitlement/rate-limit state for existing sessions and should not keep enforcing the pre-upgrade lockout if the new plan has available usage.
    • If an existing active session cannot be refreshed after upgrade, the UI should say that explicitly and direct the user to start a new session, rather than continuing to show a generic usage-limit banner.

    This looks closely related to the existing report here, and also similar to #29579 and #29243. I’m adding this as another reproduction instead of opening a duplicate issue.

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

    CLIbugrate-limitssession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions