Skip to content

Usage limit weirdness again #4764

@dlukt

Description

@dlukt

What version of Codex is running?

codex-cli 0.44.0

Which model were you using?

gpt5-codex high

What platform is your computer?

Linux 6.16.10-arch1-1 x86_64 unknown

What steps can reproduce the bug?

/status

╭─────────────────────────────────────────────────────────────────────────────╮
│  >_ OpenAI Codex (v0.44.0)                                                  │
│                                                                             │
│  Model:            gpt-5-codex (reasoning high, summaries auto)             │
│  Directory:        ~/RustroverProjects/ember                                │
│  Approval:         never                                                    │
│  Sandbox:          danger-full-access                                       │
│  Agents.md:        AGENTS.md                                                │
│  Account:          (Plus)                               │
│  Session:          0199b19b-0ef7-7f92-b8bd-23d515644c0c                     │
│                                                                             │
│  Context window:   6% left (255K used / 272K)                               │
│  5h limit:         [██████████████████░░] 91% used (resets 14:29)           │
│  Weekly limit:     [████████████░░░░░░░░] 62% used (resets 10:07 on 10 Oct) │
╰─────────────────────────────────────────────────────────────────────────────╯


› Moderator gate checks wrong role casing

  The client now blocks access to the moderation console unless roles.includes("MOD"), but server roles are normalised to lowercase
  strings such as "moderator" or "mod" (Role::from_claim maps any case to lowercase, see auth/context.rs). If the identity provider
  issues the standard lowercase claims, authenticated moderators will still be rejected on the client because the check only looks
  for the uppercase literal "MOD". Consider accepting the same variants the backend accepts (e.g. lowercase moderator/mod) or
  normalising roles before comparison so authorised moderators are not inadvertently locked out.


• Ran zsh -lc "apply_patch <<'PATCH'
  │ *** Begin Patch
  │ *** Update File: ember-web/src/app/auth/AuthProvider.tsx
  │ … +15 lines
  └ Success. Updated the following files:
    M ember-web/src/app/auth/AuthProvider.tsx

• Ran zsh -lc 'pnpm lint'
  └
    > ember-web@0.0.0 lint /home/darko/RustroverProjects/ember/ember-web
    > eslint .


■ You've hit your usage limit. Upgrade to Pro (https://openai.com/chatgpt/pricing) or try again in 2 hours 3 minutes.

/status

╭─────────────────────────────────────────────────────────────────────────────╮
│  >_ OpenAI Codex (v0.44.0)                                                  │
│                                                                             │
│  Model:            gpt-5-codex (reasoning high, summaries auto)             │
│  Directory:        ~/RustroverProjects/ember                                │
│  Approval:         never                                                    │
│  Sandbox:          danger-full-access                                       │
│  Agents.md:        AGENTS.md                                                │
│  Account:          (Plus)                               │
│  Session:          0199b19b-0ef7-7f92-b8bd-23d515644c0c                     │
│                                                                             │
│  Context window:   6% left (256K used / 272K)                               │
│  5h limit:         [████████████████████] 100% used (resets 14:28)          │
│  Weekly limit:     [█████████████░░░░░░░] 65% used (resets 10:07 on 10 Oct) │
╰─────────────────────────────────────────────────────────────────────────────╯

What is the expected behavior?

not 9% used with a single prompt

What do you see instead?

No response

Additional information

Restore token information.
I want to see exactly how many tokens are and were used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions