Repository navigation
Description
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_countevents: 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:
- Does
/importconsume model tokens or usage quota? - Does opening an imported historical session trigger automatic model requests?
- Could background processing or delayed usage reporting explain the sudden quota exhaustion?
I would appreciate clarification and investigation of the unexpected usage behavior.
Activity
github-actions commentedon Oct 28, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
MatthieuStigler commentedon Nov 1, 2026
Reproduced on Ubuntu Linux.
Two additional issues with the automatic Replay functionality:
I was also unable to stop the Replay while it was running.