Repository navigation
Description
What version of Codex CLI is running?
codex-cli 0.163.0
What subscription do you have?
ChatGPT Plus
Which model were you using?
gpt-6.1-sol
What platform is your computer?
Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 x86_64
What terminal emulator and version are you using (if applicable)?
Windows Terminal (WSL)
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1792414362s since unix epoch",
"overallStatus": "warning",
"codexVersion": "0.163.0",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is running",
"details": {
"app-server version": "0.163.0",
"control socket": "/home/sherronw/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/home/sherronw/.codex/app-server-daemon",
"dedicated pid file": "/home/sherronw/.codex/app-server-daemon/daemon.pid (file)",
"dedicated update-loop pid file": "/home/sherronw/.codex/app-server-daemon/daemon-updater.pid (file)",
"mode": "ephemeral",
"pid file": "/home/sherronw/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/home/sherronw/.codex/app-server-daemon/settings.json (missing)",
"status": "running",
"update-loop pid file": "/home/sherronw/.codex/app-server-daemon/app-server-updater.pid (missing)"
},
"remediation": null,
"durationMs": 10
},
"auth.credentials": {
"id": "auth.credentials",
"category": "auth",
"status": "ok",
"summary": "auth is configured",
"details": {
"auth file": "/home/sherronw/.codex/auth.json",
"auth storage mode": "File",
"stored API key": "false",
"stored ChatGPT tokens": "true",
"stored agent identity": "false",
"stored auth mode": "chatgpt"
},
"remediation": null,
"durationMs": 0
},
"config.load": {
"id": "config.load",
"category": "config",
"status": "ok",
"summary": "config loaded",
"details": {
"CODEX_HOME": "/home/sherronw/.codex",
"active thread overrides": "not inspected",
"config.toml": "/home/sherronw/.codex/config.toml",
"config.toml parse": "ok",
"configuration load ms": "32",
"configuration scope": "invocation config, including cloud-managed policy",
"configured TUI mode": "fullscreen",
"cwd": "/home/sherronw",
"enabled feature flags": "daemon_auto_start, shell_tool, view_image, sleep_tool, unified_exec, unified_exec_tty, shell_snapshot, content_item_kinds, code_mode_host, code_mode_interrupt, instant_interrupt, terminal_resize_reflow, sqlite, memories, write_stdin_approval, hooks, api_key_model_discovery, cli_daybreak, api_key_cyber_access_programs, enable_request_compression, unbounded_connection_retries, worktrees, system_proxy_fallback, multi_agent, apps, tool_search_always_defer_mcp_tools, tool_suggest, plugins, in_app_browser, browser_annotation_api, in_app_chat, in_app_dictation, in_app_voice, in_app_local_automation, in_app_updates, browser_use, browser_use_full_cdp_access, browser_use_external, computer_use, remote_plugin, plugin_sharing, image_generation, resize_all_images, item_ids, skill_mcp_dependency_install, skill_search, mentions_v2, steer, guardian_approval, guardian_reuse_parent_compaction, goals, collaboration_modes, tool_call_mcp_elicitation, auth_elicitation, fast_mode, ultrafast_mode, realtime_conversation, tui_app_server, compaction_image_budget, workspace_dependencies",
"feature flag overrides": "memories=true",
"feature flags enabled": "60",
"log dir": "/home/sherronw/.codex/log",
"mcp servers": "1",
"model": "gpt-6.1-sol",
"model provider": "openai",
"sqlite home": "/home/sherronw/.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git executable found; execution not verified",
"details": {
"PATH git #1": "/usr/bin/git",
"PATH git #2": "/bin/git",
"PATH git entries": "2",
"git execution": "not inspected (PATH helpers are not executed)",
"repo detected": "false",
"selected git": "/usr/bin/git"
},
"remediation": null,
"durationMs": 38
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "/home/sherronw/.nvm/versions/node/v18.20.8/bin/codex",
"current executable": "/home/sherronw/.nvm/versions/node/v18.20.8/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin/codex",
"install context": "npm (package /home/sherronw/.nvm/versions/node/v18.20.8/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl, bin /home/sherronw/.nvm/versions/node/v18.20.8/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin, resources /home/sherronw/.nvm/versions/node/v18.20.8/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-resources, path /home/sherronw/.nvm/versions/node/v18.20.8/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-path)",
"managed by Vite+": "false",
"managed by bun": "false",
"managed by npm": "true",
"managed by pnpm": "false",
"managed package root": "/home/sherronw/.nvm/versions/node/v18.20.8/lib/node_modules/@openai/codex",
"npm update target": "not inspected (PATH helpers are not executed)"
},
"remediation": null,
"durationMs": 42
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "MCP configuration is locally consistent",
"details": {
"configured servers": "1",
"disabled servers": "0",
"streamable_http servers": "1"
},
"remediation": null,
"durationMs": 1688
},
"network.env": {
"id": "network.env",
"category": "network",
"status": "ok",
"summary": "network-related environment looks readable",
"details": {
"managed proxy": "not configured",
"proxy env vars present": "HTTP_PROXY, HTTPS_PROXY, NO_PROXY, http_proxy, https_proxy, no_proxy",
"respect system proxy": "disabled"
},
"remediation": null,
"durationMs": 0
},
"network.provider_reachability": {
"id": "network.provider_reachability",
"category": "reachability",
"status": "ok",
"summary": "active provider endpoints are reachable over HTTP",
"details": {
"ChatGPT inference URL": "https://chatgpt.com/backend-api/<redacted> reachable (HTTP 405)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 4190
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "1 IPv4, 1 IPv6, first IPv6",
"auth mode": "chatgpt",
"connect timeout": "15000 ms",
"endpoint": "wss://chatgpt.com/backend-api/<redacted>",
"handshake result": "HTTP 101 Switching Protocols",
"model provider": "openai",
"provider name": "OpenAI",
"proxy env vars present": "HTTP_PROXY, HTTPS_PROXY, NO_PROXY, http_proxy, https_proxy, no_proxy",
"reasoning header": "false",
"server model present": "false",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": null,
"durationMs": 3095
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running npm on linux-x86_64",
"details": {
"commit": "unknown",
"current executable": "/home/sherronw/.nvm/versions/node/v18.20.8/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin/codex",
"install method": "npm (package /home/sherronw/.nvm/versions/node/v18.20.8/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl, bin /home/sherronw/.nvm/versions/node/v18.20.8/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin, resources /home/sherronw/.nvm/versions/node/v18.20.8/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-resources, path /home/sherronw/.nvm/versions/node/v18.20.8/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-path)",
"platform": "linux-x86_64",
"version": "0.163.0"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search command found (bundled); execution not verified",
"details": {
"search command": "/home/sherronw/.nvm/versions/node/v18.20.8/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-path/rg",
"search command readiness": "file exists",
"search provider": "bundled"
},
"remediation": null,
"durationMs": 0
},
"sandbox.filesystem_paths": {
"id": "sandbox.filesystem_paths",
"category": "sandbox",
"status": "ok",
"summary": "no explicit filesystem paths to probe",
"details": {},
"remediation": null,
"durationMs": 0
},
"sandbox.helpers": {
"id": "sandbox.helpers",
"category": "sandbox",
"status": "ok",
"summary": "sandbox configuration is readable",
"details": {
"approval policy": "OnRequest",
"codex-linux-sandbox helper": "/home/sherronw/.codex/tmp/arg0-linux/codex-arg0lGvz2L/codex-linux-sandbox",
"denied-read glob rules": "0",
"denied-read rules": "0",
"filesystem sandbox": "restricted",
"glob scan max depth": "unbounded",
"managed filesystem source": "none",
"network sandbox": "restricted"
},
"remediation": null,
"durationMs": 0
},
"security.endpoint": {
"id": "security.endpoint",
"category": "security",
"status": "ok",
"summary": "endpoint protection is not inspected on this platform",
"details": {
"endpoint products": "not inspected on this platform"
},
"remediation": null,
"durationMs": 0
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "/home/sherronw/.codex (dir)",
"active rollout files": "134 files, 161512282 total bytes, 1205315 average bytes",
"archived rollout files": "0 files, 0 total bytes, 0 average bytes",
"goals DB": "/home/sherronw/.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "/home/sherronw/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/home/sherronw/.codex/log (dir)",
"memories DB": "/home/sherronw/.codex/memories_1.sqlite (file)",
"memories DB integrity": "ok",
"memories v2 DB": "/home/sherronw/.codex/memories_v2_1.sqlite (missing)",
"memories v2 DB integrity": "skipped (missing)",
"queue DB": "/home/sherronw/.codex/queue_1.sqlite (file)",
"queue DB integrity": "ok",
"sqlite home": "/home/sherronw/.codex (dir)",
"state DB": "/home/sherronw/.codex/state_5.sqlite (file)",
"state DB integrity": "ok",
"thread history DB": "/home/sherronw/.codex/thread_history_1.sqlite (file)",
"thread history DB integrity": "ok"
},
"remediation": null,
"durationMs": 1066
},
"state.rollout_db_parity": {
"id": "state.rollout_db_parity",
"category": "threads",
"status": "warning",
"summary": "rollout files and state DB thread inventory differ",
"details": {
"default model provider": "openai",
"rollout DB active files": "133",
"rollout DB active rows": "127",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "0",
"rollout DB archived rows": "0",
"rollout DB duplicate DB paths": "0",
"rollout DB duplicate rollout thread id sample": [
"01a12b98-9655-7c60-b27a-dde1f535677b",
"01a12f48-f099-77c1-bb84-3e04c27dc1c2",
"01a12fab-08a8-70e3-afbc-bff160e0bc6a"
],
"rollout DB duplicate rollout thread ids": "3",
"rollout DB malformed file names": "0",
"rollout DB missing active rows": "6",
"rollout DB missing active sample": [
"/home/sherronw/.codex/sessions/2026/10/12/rollout-2026-10-12T16-44-36-01a12f48-f099-77c1-bb84-3e04c27dc1c2.jsonl",
"/home/sherronw/.codex/sessions/2026/10/12/rollout-2026-10-12T18-04-00-01a12f48-f099-77c1-bb84-3e04c27dc1c2_01a12f91-b4b9-79b2-8178-7156f89b1b32.jsonl",
"/home/sherronw/.codex/sessions/2026/10/12/rollout-2026-10-12T18-39-49-01a12fab-08a8-70e3-afbc-bff160e0bc6a_01a12fb2-7d1a-7213-81c4-1408f7665b9a.jsonl",
"/home/sherronw/.codex/sessions/2026/10/12/rollout-2026-10-12T18-03-52-01a12f48-f099-77c1-bb84-3e04c27dc1c2_01a12f91-95e9-78a3-824b-8ecced408c38.jsonl",
"/home/sherronw/.codex/sessions/2026/10/12/rollout-2026-10-12T18-31-40-01a12fab-08a8-70e3-afbc-bff160e0bc6a.jsonl"
],
"rollout DB missing archived rows": "0",
"rollout DB model providers": "openai=127",
"rollout DB rows": "127",
"rollout DB scan cap reached": "false",
"rollout DB scan error sample": "/home/sherronw/.codex/sessions/2026/10/12/rollout-2026-10-12T00-23-25-01a12b98-9655-7c60-b27a-dde1f535677b_01a12bc6-b80e-7503-aa2c-55349b2ee003.jsonl (rollout at /home/sherronw/.codex/sessions/2026/10/12/rollout-2026-10-12T00-23-25-01a12b98-9655-7c60-b27a-dde1f535677b_01a12bc6-b80e-7503-aa2c-55349b2ee003.jsonl has no usable header record)",
"rollout DB scan errors": "1",
"rollout DB sources": "cli=105, vscode=14, subagent:other=5, subagent:thread_spawn=3",
"rollout DB stale rows": "0"
},
"issues": [
{
"severity": "warning",
"cause": "rollout files are missing from the state DB",
"measured": "6 active, 0 archived",
"expected": "every rollout file has a matching threads row",
"remedy": null,
"fields": []
},
{
"severity": "warning",
"cause": "duplicate thread inventory entries found",
"measured": "3 duplicate rollout thread ids, 0 duplicate DB paths",
"expected": "one rollout path and thread id per thread",
"remedy": "Attach the doctor report to a bug report so support can inspect samples.",
"fields": []
},
{
"severity": "warning",
"cause": "rollout scan was incomplete or found bad files",
"measured": "1 scan errors, 0 malformed names, scan cap reached: false",
"expected": "rollout directories are fully scannable",
"remedy": "Check file permissions and unexpected files under CODEX_HOME sessions.",
"fields": []
}
],
"remediation": null,
"durationMs": 94
},
"system.disk": {
"id": "system.disk",
"category": "disk",
"status": "ok",
"summary": "sufficient free disk space (931.3 GiB)",
"details": {
"CODEX_HOME available": "931.3 GiB",
"failure threshold": "1.0 GiB",
"warning threshold": "5.0 GiB",
"worktree available": "931.3 GiB"
},
"remediation": null,
"durationMs": 0
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language C",
"details": {
"EDITOR": "not set",
"LANG": "C.UTF-8",
"VISUAL": "not set",
"os": "Ubuntu 22.4.0 (jammy) [64-bit]",
"os language": "C",
"os type": "Ubuntu",
"os version": "22.4.0"
},
"remediation": null,
"durationMs": 27
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"DISPLAY": "present",
"WAYLAND_DISPLAY": "present",
"WSL_DISTRO_NAME": "present",
"WSL_INTEROP": "present",
"WT_SESSION": "present",
"color output": "enabled",
"effective locale": "C.UTF-8",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "true",
"terminal": "Windows Terminal",
"terminal size": "120x30"
},
"remediation": null,
"durationMs": 0
},
"terminal.title": {
"id": "terminal.title",
"category": "title",
"status": "ok",
"summary": "terminal title default",
"details": {
"terminal title activity": "true",
"terminal title items": "activity, project-name",
"terminal title project source": "cwd",
"terminal title project value": "sherronw",
"terminal title source": "default"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "warning",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.163.0",
"check for update on startup": "true",
"dismissed version": "0.129.0",
"last checked at": "2026-10-16T08:39:37.242353271Z",
"latest version probe": "HTTP 403 Forbidden",
"npm update target": "not inspected (PATH helpers are not executed)",
"update action": "npm install -g @openai/codex",
"version cache": "/home/sherronw/.codex/version.json"
},
"remediation": null,
"durationMs": 2248
}
}
}What issue are you seeing?
I am experiencing a serious issue with Codex CLI where my 5-hour usage quota appears to decrease rapidly before I even submit a single prompt.
Observed behavior
I launched Codex CLI and started composing my prompt. While I was still typing and had not pressed Enter to submit anything, Codex displayed multiple usage warnings in succession:
- "Heads up, you have less than 50% of your 5h limit left."
- "Heads up, you have less than 25% of your 5h limit left."
- "Heads up, you have less than 10% of your 5h limit left."
I had not submitted any new prompt, received any model response, or intentionally initiated any agent task during this period.
The warnings appeared while I was still composing my input. I was effectively losing access to my usage allowance before I could even start working.
Why this is concerning
This is not simply a case of high token consumption from a complex task. The unexpected quota changes occurred without any new user-submitted prompt.
I cannot determine whether this represents actual background model requests, delayed accounting from previous sessions, or an incorrect usage display.
Regardless of the underlying cause, there was no visible activity explaining the apparent quota depletion.
Impact
This significantly disrupts the usability of Codex CLI. A substantial portion of the 5-hour allowance appeared to disappear without any new user-requested work.
Request
Could the Codex team investigate:
- Whether any background model requests are being triggered while the CLI is idle or while the user is composing a prompt.
- Whether completed or previously interrupted sessions could be consuming additional quota.
- Whether delayed usage accounting or incorrect synchronization could explain the successive warnings.
- Whether the backend usage records show actual model requests corresponding to these quota changes.
The attached screenshot shows the 50%, 25%, and 10% usage warnings appearing in succession.
What steps can reproduce the bug?
- Launch Codex CLI in a terminal while authenticated with a ChatGPT Plus account.
- Open a Codex session.
- Start typing a new prompt, but do not press Enter or submit it.
- Leave the prompt composer open without intentionally triggering any agent tasks.
- Observe the usage-limit notifications.
Actual result: During the affected session, Codex displayed warnings indicating that less than 50%, then 25%, then 10% of the 5-hour usage limit remained, even though no new prompt had been submitted.
The issue may be intermittent. I have not yet identified a reliable trigger.
What is the expected behavior?
Codex CLI should not consume additional usage quota merely because a session is open or a user is typing an unsubmitted prompt.
If the remaining quota decreases because of previously completed requests or delayed backend accounting, this should be clearly distinguishable from new usage.
In particular:
- No new model requests should be triggered simply by editing an unsubmitted prompt.
- The usage indicator should accurately reflect actual billable usage.
- Any significant quota decrease should be traceable to identifiable model requests or usage-accounting adjustments.
The 5-hour quota should not appear to drop rapidly without any corresponding visible activity or explanation.
Additional information
The attached screenshot was captured from Codex CLI and shows the following warnings:
- Less than 50% of the 5-hour limit remaining
- Less than 25% of the 5-hour limit remaining
- Less than 10% of the 5-hour limit remaining
The terminal also displays a preceding completed-work indicator ("Worked for 7m 51s · Oct 13 at 18:41"). However, no new prompt was submitted while the subsequent usage warnings were observed.
Date of occurrence: October 19, 2026. (I resumed a previous session in Oct 13)
I would appreciate an investigation into the request-level usage accounting for this period, particularly whether any quota was attributed to a session without a corresponding user-submitted prompt.
Related issue: #19076
Screenshot attached as evidence.
Activity
github-actions commentedon Oct 19, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action