GPT 5.6 Terra => Consumed 80% context for really simple bugs, tried to load secrets/keychain to expose them to third party web site (because it could not download the images from atlassian)
What version of Codex CLI is running?
0.144.4
What subscription do you have?
Enterprise
Which model were you using?
gpt-5.6-terra high
What platform is your computer?
MacOS X 26.5.2, Darwin 25.5.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
Ghostty, tmux
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1784077476s since unix epoch",
"overallStatus": "warning",
"codexVersion": "0.144.4",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "/Users/isolomatov/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/Users/isolomatov/.codex/app-server-daemon",
"mode": "ephemeral",
"pid file": "/Users/isolomatov/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/Users/isolomatov/.codex/app-server-daemon/settings.json (missing)",
"status": "not running",
"update-loop pid file": "/Users/isolomatov/.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": "/Users/isolomatov/.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": "/Users/isolomatov/.codex",
"config.toml": "/Users/isolomatov/.codex/config.toml",
"config.toml parse": "ok",
"cwd": "/Users/isolomatov/Sources/GAIN/rosetta",
"enabled feature flags": "shell_tool, unified_exec, shell_snapshot, code_mode_host, terminal_resize_reflow, sqlite, hooks, enable_request_compression, multi_agent, apps, tool_search_always_defer_mcp_tools, tool_suggest, plugins, in_app_browser, browser_use, browser_use_full_cdp_access, browser_use_external, computer_use, remote_plugin, plugin_sharing, image_generation, resize_all_images, skill_mcp_dependency_install, mentions_v2, steer, guardian_approval, goals, collaboration_modes, tool_call_mcp_elicitation, auth_elicitation, personality, fast_mode, tui_app_server, prevent_idle_sleep, remote_compaction_v2, workspace_dependencies",
"feature flag overrides": "prevent_idle_sleep=true",
"feature flags enabled": "36",
"log dir": "/Users/isolomatov/.codex/log",
"mcp servers": "2",
"model": "gpt-5.6-terra",
"model provider": "openai",
"sqlite home": "/Users/isolomatov/.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": "directory",
"PATH git #1": "/usr/bin/git",
"PATH git entries": "1",
"git branch": "main",
"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": "/Library/Developer/CommandLineTools/usr/libexec/git-core",
"git version": "git version 2.50.1 (Apple Git-155)",
"repo detected": "true",
"repo root": "/Users/isolomatov/Sources/GAIN/rosetta",
"selected git": "/usr/bin/git"
},
"remediation": null,
"durationMs": 97
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "/opt/homebrew/bin/codex",
"current executable": "/opt/homebrew/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/bin/codex",
"install context": "npm (package /opt/homebrew/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin, bin /opt/homebrew/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/bin, resources /opt/homebrew/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-resources, path /opt/homebrew/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-path)",
"managed by bun": "false",
"managed by npm": "true",
"managed by pnpm": "false",
"managed package root": "/opt/homebrew/lib/node_modules/@openai/codex",
"npm update target": "/opt/homebrew/lib/node_modules/@openai/codex"
},
"remediation": null,
"durationMs": 105
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "MCP configuration is locally consistent",
"details": {
"configured servers": "2",
"disabled servers": "0",
"stdio servers": "1",
"streamable_http servers": "1"
},
"remediation": null,
"durationMs": 223
},
"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 404)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 229
},
"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": 1021
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running npm on macos-aarch64",
"details": {
"commit": "unknown",
"current executable": "/opt/homebrew/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/bin/codex",
"install method": "npm (package /opt/homebrew/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin, bin /opt/homebrew/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/bin, resources /opt/homebrew/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-resources, path /opt/homebrew/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-path)",
"platform": "macos-aarch64",
"version": "0.144.4"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (bundled)",
"details": {
"search command": "/opt/homebrew/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/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": "/Users/isolomatov/.codex/tmp/arg0/codex-arg0zldE9p/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": "/Users/isolomatov/.codex (dir)",
"active rollout files": "308 files, 235547627 total bytes, 764765 average bytes",
"archived rollout files": "0 files, 0 total bytes, 0 average bytes",
"goals DB": "/Users/isolomatov/.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "/Users/isolomatov/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/Users/isolomatov/.codex/log (dir)",
"memories DB": "/Users/isolomatov/.codex/memories_1.sqlite (file)",
"memories DB integrity": "ok",
"sqlite home": "/Users/isolomatov/.codex (dir)",
"state DB": "/Users/isolomatov/.codex/state_5.sqlite (file)",
"state DB integrity": "ok"
},
"remediation": null,
"durationMs": 506
},
"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": "308",
"rollout DB active rows": "305",
"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": "3",
"rollout DB missing active sample": [
"/Users/isolomatov/.codex/sessions/2026/03/25/rollout-2026-03-25T12-53-01-019d25e9-ef7a-7bb1-8d35-ab8319237114.jsonl",
"/Users/isolomatov/.codex/sessions/2026/03/23/rollout-2026-03-23T13-19-28-019d1bb5-6d35-72f3-971a-3951377adaba.jsonl",
"/Users/isolomatov/.codex/sessions/2026/03/23/rollout-2026-03-23T13-16-33-019d1bb2-c270-7041-b50b-0723359fcb3a.jsonl"
],
"rollout DB missing archived rows": "0",
"rollout DB model providers": "openai=305",
"rollout DB rows": "305",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "cli=169, subagent:thread_spawn=117, subagent:other=13, exec=6",
"rollout DB stale rows": "0"
},
"issues": [
{
"severity": "warning",
"cause": "rollout files are missing from the state DB",
"measured": "3 active, 0 archived",
"expected": "every rollout file has a matching threads row",
"remedy": null,
"fields": []
}
],
"remediation": null,
"durationMs": 1020
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language en-US",
"details": {
"EDITOR": "not set",
"LANG": "en_US.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": 2
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"COLORTERM": "truecolor",
"TERM": "xterm-ghostty",
"TERMINFO": "/Applications/Ghostty.app/Contents/Resources/terminfo (dir)",
"TERM_PROGRAM": "ghostty",
"color output": "disabled (stdout is not a terminal)",
"effective locale": "en_US.UTF-8",
"multiplexer": "tmux 3.6b",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "false",
"terminal": "Ghostty",
"terminal size": "239x58",
"terminal version": "1.3.1",
"tmux allow-passthrough": "on",
"tmux client termname": "xterm-ghostty",
"tmux client termtype": "ghostty 1.3.1",
"tmux extended-keys": "on",
"tmux focus-events": "on",
"tmux set-clipboard": "on",
"tmux xterm-keys": "on"
},
"remediation": null,
"durationMs": 33
},
"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": "rosetta",
"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.144.4",
"check for update on startup": "true",
"last checked at": "2026-07-14T16:44:09.918496Z",
"latest version": "0.144.4",
"latest version status": "current version is not older",
"npm update target": "/opt/homebrew/lib/node_modules/@openai/codex",
"update action": "npm install -g @openai/codex",
"version cache": "/Users/isolomatov/.codex/version.json"
},
"remediation": null,
"durationMs": 528
}
}
}
What issue are you seeing?
In planning mode ask to investigate 7 issues (it for some reason found 8!), with images, etc. In the end it started reading everything and trying to get keychain/etc. It was allowed to not use sandbox, so it tried all the way. Burned 80% context and returned very bad non-coherent plan. Which sounds plausible, but in reality total mess for person who built a product. It never stated true cause or problem. It was going in circles AROUND the problem. Instead of reading right files, it started listing/searching even though workspace relative path was provided directly.
Restarting it and requesting it TO first think then do, resulted in proper analysis. Tracks, etc. And again, it started reading unrelated PRs, checking other things and going completely wrong direction. In the end consuming AGAIN 50% of context. With just A BASIC request. Those 7 issues are all about the same workflow and stage. And one is about hooks. Total context required was 2%. Literally read 3-5 files. Unfortunately even after that it presented "findings" which are basically files it read, not WHY this happened. Represented intermediate results as ROOT cause. Which is epic failure.
What steps can reproduce the bug?
Uploaded thread: 019f626a-6aae-7683-aa5a-37cdf192b5b9
What is the expected behavior?
Spend 10% context and figure out the root cause.
Additional information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗