Skip to content

rate_limits is always null in rollout session files #14880

@Loongphy

Description

@Loongphy

What version of Codex CLI is running?

0.114.0

What subscription do you have?

Team

Which model were you using?

gpt-5.4

What platform is your computer?

Linux 6.6.114.1-microsoft-standard-WSL2 x86_64 unknown

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

Windows Terminal

What issue are you seeing?

In local Codex session rollout files, token_count events are present, but the rate_limits field is always null.

Because of this, tools like https://github.com/Loongphy/codex-auth that inspect ~/.codex/sessions/**/ rollout-*.jsonl cannot determine the actual rate limit state from the latest rollout file.

What I observed

The latest rollout file contains token_count events, but rate_limits is null
in those entries.

Example pattern:

{
  "type": "event_msg",
  "payload": {
    "type": "token_count",
    "info": {
      "total_token_usage": {
        "input_tokens": 14676,
        "output_tokens": 412,
        "total_tokens": 15088
      },
      "model_context_window": 258400
    },
    "rate_limits": null
  }
}

What steps can reproduce the bug?

  1. Run Codex CLI normally in a workspace.
  2. Locate the newest file under ~/.codex/sessions/**/rollout-*.jsonl.
  3. Search for token_count or rate_limits.
  4. Observe that rate_limits is recorded as null.

What is the expected behavior?

  • rate_limits should contain the actual rate limit metadata when available
  • It happens after gpt-5.4 model released.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingrate-limitsIssues related to rate limits, quotas, and token usage reporting

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions