Error while resuming a session
Open 💬 2 comments Opened Aug 20, 2026 by yonatang
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
codex-cli 0.148.0
What subscription do you have?
enterprise
Which model were you using?
gpt-5.6-sol
What platform is your computer?
Darwin 25.5.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
_No response_
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1787242938s since unix epoch",
"overallStatus": "warning",
"codexVersion": "0.148.0",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": ".../.codex/app-server-control/app-server-control.sock",
"daemon state dir": ".../.codex/app-server-daemon",
"mode": "ephemeral",
"pid file": ".../.codex/app-server-daemon/app-server.pid (missing)",
"settings": ".../.codex/app-server-daemon/settings.json (missing)",
"status": "not running",
"update-loop pid file": ".../.codex/app-server-daemon/app-server-updater.pid (missing)"
},
"remediation": null,
"durationMs": 0
},
"auth.credentials": {
"id": "auth.credentials",
"category": "auth",
"status": "ok",
"summary": "auth is configured",
"details": {
"auth file": ".../.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": ".../.codex",
"config.toml": ".../.codex/config.toml",
"config.toml parse": "ok",
"cwd": ".../git/<removed>",
"enabled feature flags": "shell_tool, view_image, unified_exec, shell_snapshot, code_mode_host, terminal_resize_reflow, sqlite, hooks, enable_request_compression, unbounded_connection_retries, multi_agent, apps, tool_search_always_defer_mcp_tools, tool_suggest, plugins, in_app_browser, 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, goals, collaboration_modes, tool_call_mcp_elicitation, auth_elicitation, personality, fast_mode, tui_app_server, remote_compaction_v2, workspace_dependencies",
"feature flag overrides": "none",
"feature flags enabled": "40",
"log dir": ".../.codex/log",
"mcp servers": "9",
"model": "gpt-5.6-sol",
"model provider": "openai",
"sqlite home": ".../.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git version 2.50.1 (Apple Git-155)",
"details": {
".git entry": "file -> .../git/<removed>",
"PATH git #1": "/usr/bin/git",
"PATH git entries": "1",
"git branch": "ENNN-12125/visual-search-iter2",
"git build options": "git version 2.50.1 (Apple Git-155); cpu: arm64; no commit associated with this build; sizeof-long: 8; sizeof-size_t: 8; shell-path: /bin/sh; feature: fsmonitor--daemon; libcurl: 8.7.1; zlib: 1.2.12; SHA-1: SHA1_DC; SHA-256: SHA256_BLK",
"git exec path": "/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core",
"git version": "git version 2.50.1 (Apple Git-155)",
"repo detected": "true",
"repo root": ".../git/<removed>",
"selected git": "/usr/bin/git"
},
"remediation": null,
"durationMs": 58
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": ".../.local/bin/codex",
"PATH codex #2": ".../.local/bin/codex",
"PATH codex entries": "2",
"current executable": ".../.local/bin/codex",
"install context": "standalone (unix, package .../.codex/packages/standalone/releases/0.148.0-aarch64-apple-darwin, bin .../.codex/packages/standalone/releases/0.148.0-aarch64-apple-darwin/bin, resources .../.codex/packages/standalone/releases/0.148.0-aarch64-apple-darwin/codex-resources, path .../.codex/packages/standalone/releases/0.148.0-aarch64-apple-darwin/codex-path)",
"managed by bun": "false",
"managed by npm": "false",
"managed by pnpm": "false",
"managed package root": "not set"
},
"remediation": null,
"durationMs": 7
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "MCP configuration is locally consistent",
"details": {
"configured servers": "9",
"disabled servers": "1",
"stdio servers": "5",
"streamable_http servers": "4"
},
"remediation": null,
"durationMs": 219
},
"network.env": {
"id": "network.env",
"category": "network",
"status": "ok",
"summary": "network-related environment looks readable",
"details": {
"SSL_CERT_FILE": "readable file /Library/Application Support/Netskope/STAgent/download/nscacert_combined.pem",
"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 404)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 196
},
"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",
"provider name": "OpenAI",
"proxy env vars": "none",
"reasoning header": "false",
"server model present": "false",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": null,
"durationMs": 806
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running standalone on macos-aarch64",
"details": {
"commit": "unknown",
"current executable": ".../.local/bin/codex",
"install method": "standalone (unix, package .../.codex/packages/standalone/releases/0.148.0-aarch64-apple-darwin, bin .../.codex/packages/standalone/releases/0.148.0-aarch64-apple-darwin/bin, resources .../.codex/packages/standalone/releases/0.148.0-aarch64-apple-darwin/codex-resources, path .../.codex/packages/standalone/releases/0.148.0-aarch64-apple-darwin/codex-path)",
"platform": "macos-aarch64",
"version": "0.148.0"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (bundled)",
"details": {
"search command": "/.../.codex/packages/standalone/releases/0.148.0-aarch64-apple-darwin/codex-path/rg",
"search command readiness": "file exists",
"search provider": "bundled"
},
"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": "none",
"execve wrapper helper": ".../.codex/tmp/arg0/codex-arg0LFlh1x/codex-execve-wrapper",
"filesystem sandbox": "restricted",
"network sandbox": "restricted"
},
"remediation": null,
"durationMs": 0
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": ".../.codex (dir)",
"active rollout files": "80 files, 88898176 total bytes, 1111227 average bytes",
"archived rollout files": "0 files, 0 total bytes, 0 average bytes",
"goals DB": ".../.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": ".../.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": ".../.codex/log (dir)",
"memories DB": ".../.codex/memories_1.sqlite (file)",
"memories DB integrity": "ok",
"queue DB": ".../.codex/queue_1.sqlite (file)",
"queue DB integrity": "ok",
"sqlite home": ".../.codex (dir)",
"standalone release cache": "4 entries in .../.codex/packages/standalone/releases",
"state DB": ".../.codex/state_5.sqlite (file)",
"state DB integrity": "ok",
"thread history DB": ".../.codex/thread_history_1.sqlite (file)",
"thread history DB integrity": "ok"
},
"remediation": null,
"durationMs": 200
},
"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": "80",
"rollout DB active rows": "80",
"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=80",
"rollout DB rows": "80",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "vscode=42, cli=38",
"rollout DB stale rows": "0"
},
"remediation": null,
"durationMs": 98
},
"system.disk": {
"id": "system.disk",
"category": "disk",
"status": "ok",
"summary": "sufficient free disk space (34.8 GiB)",
"details": {
"CODEX_HOME available": "34.8 GiB",
"failure threshold": "1.0 GiB",
"warning threshold": "5.0 GiB",
"worktree available": "34.8 GiB"
},
"remediation": null,
"durationMs": 0
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language en-US",
"details": {
"EDITOR": "not set",
"LANG": "C.UTF-8",
"LC_CTYPE": "UTF-8",
"VISUAL": "not set",
"os": "Mac OS 26.5.2 [64-bit]",
"os language": "en-US",
"os type": "Mac OS",
"os version": "26.5.2"
},
"remediation": null,
"durationMs": 4
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "warning",
"summary": "height 15 rows - content may scroll off (recommended >=24)",
"details": {
"color output": "enabled",
"effective locale": "UTF-8",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "true",
"terminal": "Apple Terminal",
"terminal size": "209x15"
},
"issues": [
{
"severity": "warning",
"cause": "height 15 rows - content may scroll off (recommended >=24)",
"measured": "209 x 15",
"expected": ">= 24 rows",
"remedy": "resize the window to at least 24 rows",
"fields": [
"terminal size"
]
}
],
"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": "git repo root",
"terminal title project value": "<removed>",
"terminal title source": "default"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.148.0",
"check for update on startup": "true",
"last checked at": "2026-08-19T20:46:32.920228Z",
"latest version": "0.148.0",
"latest version status": "current version is not older",
"update action": "standalone installer",
"version cache": ".../.codex/version.json"
},
"remediation": null,
"durationMs": 636
}
}
}
What issue are you seeing?
After trying to resume a session, getting this error:
ailed to resume session from .../.codex/sessions/2026/08/18/rollout-2026-08-18T22-36-50-01a01885-b2dd-71f1-9ea1-5131ee51f9b8.jsonl: thread/resume failed during TUI bootstrap: thread/resume
failed: thread 01a01885-b2dd-71f1-9ea1-5131ee51f9b8 already has an active writer (code -32600)
What steps can reproduce the bug?
Uploaded thread: 01a01fef-38fe-7451-9d1b-eae5a8cceb8e
What is the expected behavior?
the session will resumed properly
Additional information
_No response_
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
For this resume error, a pre-resume scan and copy-only snapshot can show whether the local rollout is complete and stable.
Thanks for the detailed report. This is a good candidate for a bounded recovery check. Vetto 0.2.0-alpha.2 is available from npm and adds a read-only, copy-only Codex rescue adapter. It does not resume Codex, edit rollout files, or write vendor SQLite. On a disposable copy, try:
npm install --global @shleddy/vetto@next;vetto rescue --adapter codex --root <CODEX_HOME> --json scan; then use the exact returned key withdiagnoseandsnapshot ... --output ./vetto-recovery/session.jsonl. Please report OS, Codex/Vetto versions, sanitized JSON, and source SHA-256 before/after; never upload raw transcripts, auth/config, prompts, or tokens. An explicit unavailable/unsupported result is useful too.