Skip to content

[Bug] Opening imported chat sessions exhausts 5-hour quota without prompts #57627

Open

Description

@HoshiEstrellas

What version of Codex CLI is running?

0.165.0

What subscription do you have?

ChatGPT Plus

Which model were you using?

GPT-6.1 Terra (reasoning high)

What platform is your computer?

Windows (x64), exact version not yet confirmed

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

Windows Terminal (PowerShell), version unknown

Codex doctor report

Codex Doctor Report (redacted summary)

Codex CLI: 0.165.0
Operating System: Windows 11 Professional (64-bit), build 26100
Overall status: warning
App-server: running (0.165.0)
Authentication: OK (ChatGPT)
Network reachability: OK
WebSocket handshake: OK
Session DB integrity: OK

Warnings:
- state.rollout_db_parity: 43 rollout files missing from the state DB, and 43 stale DB rows referencing missing or unusable files.
- mcp.config: optional environment variables missing for node_repl.

Active rollout files: 162
Archived rollout files: 14

No direct explanation for the unexpected quota exhaustion was identified by the doctor report.

What issue are you seeing?

After importing historical chat sessions using the /import feature in Codex CLI v0.165.0, my entire 5-hour usage quota was exhausted within approximately one minute.

I imported 8 historical chat sessions from another AI coding agent. After the import completed, I opened one of the imported sessions but did not send any new prompts or intentionally start any model tasks.

Immediately afterward, /status showed:

  • 5-hour usage limit: 0% remaining
  • Weekly usage limit: 80% remaining
  • Model: GPT-6.1 Terra (reasoning high)
  • Subscription: ChatGPT Plus

I investigated the local session logs under %USERPROFILE%\.codex\sessions\2026\10\28.

Results:

  • Total token_count events: 55
  • Events containing usage information: 55
  • Events reporting non-zero token usage: 0

All 55 events showed zero input and output tokens.

The local logs therefore show no non-zero token usage in the events examined, although I understand they may not include all server-side or background activity.

I would like to know whether simply importing or opening historical chat sessions is expected to consume usage quota.

Please investigate whether opening imported sessions triggers automatic model inference, background tasks, or unexpected quota accounting.

What steps can reproduce the bug?

Uploaded thread: 01a1805c-e08b-70d2-87cc-bb8f448dbcd1

What is the expected behavior?

Importing historical conversations or simply opening an imported session without submitting any new prompts should not unexpectedly consume a large amount of Codex usage quota.

If the import or session-opening process requires model inference, background summarization, or other quota-consuming operations, the user should be informed before those operations occur.

The 5-hour usage quota should accurately reflect actual model usage and should not become exhausted unexpectedly when merely viewing historical conversations.

Additional information

Additional Diagnostic Information

Environment:

  • Codex CLI: 0.165.0
  • OS: Windows 11 Professional (64-bit), Build 26100
  • Subscription: ChatGPT Plus
  • Model: GPT-6.1 Terra (reasoning high)
  • Incident date: October 28, 2026 (UTC+8)

Codex Doctor Results:

  • Overall status: warning
  • App-server: running normally
  • Authentication: OK
  • Network connectivity: OK
  • WebSocket connection: OK

Session database consistency warnings:

  • 43 rollout files are missing matching state database records.
  • 43 state database records reference missing or unusable rollout files.

These database inconsistencies may be unrelated to the quota issue, but I am including them for investigation.

Questions for the Codex team:

  1. Does /import consume model tokens or usage quota?
  2. Does opening an imported historical session trigger automatic model requests?
  3. Could background processing or delayed usage reporting explain the sudden quota exhaustion?

I would appreciate clarification and investigation of the unexpected usage behavior.

Activity

  1. added
    bug
    on Oct 28, 2026
  2. added
    CLI
    windows-os
    rate-limits
    session
    on Oct 28, 2026
  3. github-actions commented on Oct 28, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. MatthieuStigler commented on Nov 1, 2026

    @MatthieuStigler

    Reproduced on Ubuntu Linux.

    Two additional issues with the automatic Replay functionality:

    1. Replay costs more than the savings it claims to demonstrate: 7.55 million tokens and approximately $7.58 in estimated API-equivalent costs, versus $5.97 in highlighted hypothetical savings. See Automatic Replay costs more than the savings it claims to demonstrate #58670.
    2. The Replay results are highly biased and misleading: only favorable savings are highlighted, while unfavorable comparisons are omitted from the summary. See Replay results: Codex savings comparisons are highly biased and misleading #58671.

    I was also unable to stop the Replay while it was running.

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-limitssessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions