Starting a conversation with the /goal command doesn't save the session if you hit the usage limit
What version of Codex CLI is running?
codex-cli 0.139.0
What subscription do you have?
Plus account, and a Pro Lite account
Which model were you using?
gpt-5.5-high
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What terminal emulator and version are you using (if applicable)?
Windows Terminal - PowerShell
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1781435625s since unix epoch",
"overallStatus": "warning",
"codexVersion": "0.139.0",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "C:\\Users\\love_\\.codex\\app-server-control\\app-server-control.sock",
"daemon state dir": "C:\\Users\\love_\\.codex\\app-server-daemon",
"mode": "ephemeral",
"pid file": "C:\\Users\\love_\\.codex\\app-server-daemon\\app-server.pid (missing)",
"settings": "C:\\Users\\love_\\.codex\\app-server-daemon\\settings.json (missing)",
"status": "not running",
"update-loop pid file": "C:\\Users\\love_\\.codex\\app-server-daemon\\app-server-updater.pid (missing)"
},
"remediation": null,
"durationMs": 1
},
"auth.credentials": {
"id": "auth.credentials",
"category": "auth",
"status": "ok",
"summary": "auth is configured",
"details": {
"auth file": "C:\\Users\\love_\\.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": "C:\\Users\\love_\\.codex",
"config.toml": "C:\\Users\\love_\\.codex\\config.toml",
"config.toml parse": "ok",
"cwd": "C:\\Users\\love_\\IdeaProjects\\WashlyServer",
"enabled feature flags": "shell_tool, shell_snapshot, terminal_resize_reflow, sqlite, memories, hooks, enable_request_compression, multi_agent, apps, tool_suggest, plugins, in_app_browser, browser_use, browser_use_external, computer_use, plugin_sharing, external_migration, image_generation, skill_mcp_dependency_install, steer, guardian_approval, goals, collaboration_modes, tool_call_mcp_elicitation, personality, fast_mode, tui_app_server, workspace_dependencies",
"feature flag overrides": "memories=true, external_migration=true",
"feature flags enabled": "28",
"log dir": "C:\\Users\\love_\\.codex\\log",
"mcp servers": "3",
"model": "gpt-5.5",
"model provider": "openai",
"sqlite home": "C:\\Users\\love_\\.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git version 2.54.0.windows.1",
"details": {
".git entry": "directory",
"PATH git #1": "C:\\Users\\love_\\scoop\\apps\\git\\current\\cmd\\git.exe",
"PATH git #2": "C:\\Users\\love_\\scoop\\shims\\git.exe",
"PATH git entries": "2",
"git branch": "main",
"git build options": "git version 2.54.0.windows.1; cpu: x86_64; built from commit: 2b8a3ab140826ac423c2845ef81d4c6ac4f7bf3c; sizeof-long: 4; sizeof-size_t: 8; shell-path: D:/git-sdk-64-build-installers/usr/bin/sh; rust: disabled; feature: fsmonitor--daemon; gettext: enabled; libcurl: 8.19.0; OpenSSL: OpenSSL 3.5.6 7 Apr 2026; zlib: 1.3.2; SHA-1: SHA1_DC; SHA-256: SHA256_BLK; default-ref-format: files; default-hash: sha1",
"git exec path": "C:/Users/love_/scoop/apps/git/2.54.0/mingw64/libexec/git-core",
"git version": "git version 2.54.0.windows.1",
"repo detected": "true",
"repo root": "C:\\Users\\love_\\IdeaProjects\\WashlyServer",
"selected git": "C:\\Users\\love_\\scoop\\apps\\git\\current\\cmd\\git.exe"
},
"remediation": null,
"durationMs": 118
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "C:\\Users\\love_\\scoop\\shims\\codex.exe",
"current executable": "C:\\Users\\love_\\scoop\\apps\\codex\\current\\codex.exe",
"install context": "other",
"managed by bun": "false",
"managed by npm": "false",
"managed package root": "not set"
},
"remediation": null,
"durationMs": 86
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "warning",
"summary": "MCP configuration has optional issues",
"details": {
"JETBRAINS_INTELLIJ_IDEA": "stdio command \"C:\\\\Users\\\\love_\\\\scoop\\\\persist\\\\jetbrains-toolbox\\\\apps\\\\IntelliJ IDEA\\\\jbr\\\\bin\\\\java\" is not resolvable (The system cannot find the file specified. (os error 2))",
"configured servers": "3",
"disabled servers": "0",
"stdio servers": "2",
"streamable_http servers": "1"
},
"remediation": "Set the missing MCP env vars or disable the affected server.",
"durationMs": 524
},
"network.env": {
"id": "network.env",
"category": "network",
"status": "ok",
"summary": "network-related environment looks readable",
"details": {
"proxy env vars": "none"
},
"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 base URL": "https://chatgpt.com/backend-api/ reachable (HTTP 403)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 61
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "2 IPv4, 0 IPv6, first IPv4",
"auth mode": "chatgpt",
"connect timeout": "15000 ms",
"endpoint": "wss://chatgpt.com/backend-api/<redacted>",
"handshake result": "HTTP 101 Switching Protocols",
"model provider": "openai",
"models etag present": "true",
"provider name": "OpenAI",
"proxy env vars": "none",
"reasoning header": "false",
"server model present": "false",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": null,
"durationMs": 1071
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running local build on windows-x86_64",
"details": {
"commit": "unknown",
"current executable": "C:\\Users\\love_\\scoop\\apps\\codex\\current\\codex.exe",
"install method": "other",
"platform": "windows-x86_64",
"version": "0.139.0"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (system)",
"details": {
"search command": "rg.exe",
"search command readiness": "ripgrep 15.1.0 (rev af60c2de9d)",
"search provider": "system"
},
"remediation": null,
"durationMs": 582
},
"sandbox.helpers": {
"id": "sandbox.helpers",
"category": "sandbox",
"status": "ok",
"summary": "sandbox configuration is readable",
"details": {
"approval policy": "OnRequest",
"codex-linux-sandbox helper": "none",
"execve wrapper helper": "none",
"filesystem sandbox": "unrestricted",
"network sandbox": "enabled"
},
"remediation": null,
"durationMs": 0
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "C:\\Users\\love_\\.codex (dir)",
"active rollout files": "74 files, 88273771 total bytes, 1192888 average bytes",
"archived rollout files": "0 files, 0 total bytes, 0 average bytes",
"goals DB": "C:\\Users\\love_\\.codex\\goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "C:\\Users\\love_\\.codex\\logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "C:\\Users\\love_\\.codex\\log (missing)",
"memories DB": "C:\\Users\\love_\\.codex\\memories_1.sqlite (file)",
"memories DB integrity": "ok",
"sqlite home": "C:\\Users\\love_\\.codex (dir)",
"state DB": "C:\\Users\\love_\\.codex\\state_5.sqlite (file)",
"state DB integrity": "ok"
},
"remediation": null,
"durationMs": 6323
},
"state.rollout_db_parity": {
"id": "state.rollout_db_parity",
"category": "threads",
"status": "ok",
"summary": "rollout files and state DB thread inventory agree",
"details": {
"default model provider": "openai",
"rollout DB active files": "74",
"rollout DB active rows": "74",
"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 ids": "0",
"rollout DB malformed file names": "0",
"rollout DB missing active rows": "0",
"rollout DB missing archived rows": "0",
"rollout DB model providers": "openai=74",
"rollout DB rows": "74",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "subagent:thread_spawn=46, cli=16, subagent:other=12",
"rollout DB stale rows": "0"
},
"remediation": null,
"durationMs": 1125
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language en-US",
"details": {
"EDITOR": "not set",
"VISUAL": "not set",
"os": "Windows 10.0.26200 (Windows 11 Professional) [64-bit]",
"os language": "en-US",
"os type": "Windows",
"os version": "10.0.26200"
},
"remediation": null,
"durationMs": 1
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"WT_SESSION": "present",
"color output": "enabled",
"console input code page": "437",
"console output code page": "437",
"stderr console mode": "0x00000007 (VT processing: true)",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout console mode": "0x00000007 (VT processing: true)",
"stdout is terminal": "true",
"terminal": "Windows Terminal",
"terminal size": "120x30"
},
"remediation": null,
"durationMs": 1
},
"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": "git repo root",
"terminal title project value": "WashlyServer",
"terminal title source": "default"
},
"remediation": null,
"durationMs": 1
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.139.0",
"check for update on startup": "true",
"last checked at": "2026-06-13T22:51:29.991298500Z",
"latest version": "0.139.0",
"latest version status": "current version is not older",
"update action": "manual or unknown",
"version cache": "C:\\Users\\love_\\.codex\\version.json"
},
"remediation": null,
"durationMs": 2308
}
}
}
What issue are you seeing?
It seems that when you hit the usage limits, /goals doesn’t save the current session. I didn’t notice this with my Pro Light account, but after switching to my Plus account, it started happening. It’s occurred about three times, wasting a lot of usage, and at first I thought it was my fault. Apparently, Codex doesn’t save the goal state if the goal pauses due to hitting the usage limit.
What steps can reproduce the bug?
Start Codex with an empty session, type /goal and enter the task you want to do. Let it run until it approaches the usage limit, at which point it will prompt you to either switch the model or keep using the current one. Select “Keep using the current model.” After truly hitting the limit, it will suggest using the /goal resume when the limit resets. Exit and close the terminal, then re-enter Codex, type /resume, and you’ll see the session isn’t saved (That session isn't in the list at all).
What is the expected behavior?
When the goal stops due to hitting the usage limit and the user exits the terminal, the goal state should still be listed when the user returns and types "/resume" allowing them to pick up where they left off.
Additional information
I could provide the logs, but I'm not sure if they contain any personal information or what they might include.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗