Repository navigation
Description
What version of Codex CLI is running?
codex-cli 0.163.0
What subscription do you have?
Pro 200
Which model were you using?
gpt-6.1-sol
What platform is your computer?
Darwin 27.0.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
Ghostty 1.3.1
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1792356565s 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": "/Users/dorianrudolph/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/Users/dorianrudolph/.codex/app-server-daemon",
"dedicated pid file": "/Users/dorianrudolph/.codex/app-server-daemon/daemon.pid (file)",
"dedicated update-loop pid file": "/Users/dorianrudolph/.codex/app-server-daemon/daemon-updater.pid (file)",
"mode": "ephemeral",
"pid file": "/Users/dorianrudolph/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/Users/dorianrudolph/.codex/app-server-daemon/settings.json (missing)",
"status": "running",
"update-loop pid file": "/Users/dorianrudolph/.codex/app-server-daemon/app-server-updater.pid (missing)"
},
"remediation": null,
"durationMs": 164
},
"auth.credentials": {
"id": "auth.credentials",
"category": "auth",
"status": "ok",
"summary": "auth is configured",
"details": {
"auth file": "/Users/dorianrudolph/.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/dorianrudolph/.codex",
"active thread overrides": "not inspected",
"config.toml": "/Users/dorianrudolph/.codex/config.toml",
"config.toml parse": "ok",
"configuration load ms": "5",
"configuration scope": "invocation config, including cloud-managed policy",
"configured TUI mode": "fullscreen",
"cwd": "/Users/dorianrudolph/tmp/codex",
"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, 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": "none",
"feature flags enabled": "59",
"log dir": "/Users/dorianrudolph/.codex/log",
"mcp servers": "2",
"model": "gpt-6.1-sol",
"model provider": "openai",
"sqlite home": "/Users/dorianrudolph/.codex"
},
"remediation": null,
"durationMs": 0
},
"desktop.app.version": {
"id": "desktop.app.version",
"category": "desktop",
"status": "ok",
"summary": "the desktop application is installed",
"details": {
"log directory": "$HOME/Library/Logs/com.openai.codex",
"running": "true",
"version": "26.1013.40934"
},
"remediation": null,
"durationMs": 0
},
"desktop.app_server.handshake": {
"id": "desktop.app_server.handshake",
"category": "desktop",
"status": "ok",
"summary": "no desktop app-server handshake was recorded",
"details": {},
"remediation": null,
"durationMs": 0
},
"desktop.security.enforcement": {
"id": "desktop.security.enforcement",
"category": "desktop",
"status": "ok",
"summary": "the desktop application passed available macos security assessments",
"details": {
"gatekeeper": "accepted"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git executable found; execution not verified",
"details": {
".git entry": "directory",
"PATH git #1": "/opt/homebrew/bin/git",
"PATH git #2": "/usr/bin/git",
"PATH git entries": "2",
"git execution": "not inspected (PATH helpers are not executed)",
"repo detected": "true",
"repo root": "/Users/dorianrudolph/tmp/codex",
"selected git": "/opt/homebrew/bin/git"
},
"remediation": null,
"durationMs": 1
},
"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 Vite+": "false",
"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": "not inspected (PATH helpers are not executed)"
},
"remediation": null,
"durationMs": 4
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "MCP configuration is locally consistent",
"details": {
"configured servers": "2",
"disabled servers": "1",
"stdio servers": "2"
},
"remediation": null,
"durationMs": 0
},
"network.env": {
"id": "network.env",
"category": "network",
"status": "ok",
"summary": "network-related environment looks readable",
"details": {
"managed proxy": "not configured",
"proxy env vars": "none",
"respect system proxy": "disabled",
"system proxy": "direct"
},
"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)",
"desktop assets CDN": "https://chatgpt.com/backend-api/<redacted> reachable (HTTP 200)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 309
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "2 IPv4, 2 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": "none",
"reasoning header": "false",
"server model present": "false",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": null,
"durationMs": 880
},
"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.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": "/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.filesystem_paths": {
"id": "sandbox.filesystem_paths",
"category": "sandbox",
"status": "ok",
"summary": "configured filesystem paths respond promptly",
"details": {
"operation": "resolve paths only; read/write access is not tested",
"path 1": "/Users/dorianrudolph/.cargo (write); path resolved (read/write access not tested)",
"path 1 source": "effective filesystem policy (entry provenance unavailable)",
"path 2": "/Users/dorianrudolph/.cargo/.agents (read); missing (may be intentional)",
"path 2 source": "effective filesystem policy (entry provenance unavailable)",
"path 3": "/Users/dorianrudolph/.cargo/.aws (read); missing (may be intentional)",
"path 3 source": "effective filesystem policy (entry provenance unavailable)",
"path 4": "/Users/dorianrudolph/.cargo/.codex (read); missing (may be intentional)",
"path 4 source": "effective filesystem policy (entry provenance unavailable)",
"path 5": "/Users/dorianrudolph/.cargo/.git (read); missing (may be intentional)",
"path 5 source": "effective filesystem policy (entry provenance unavailable)",
"paths checked": "5 of 5",
"probe budgets": "2 seconds per path, 8 seconds total, at most 32 paths"
},
"remediation": null,
"durationMs": 81
},
"sandbox.helpers": {
"id": "sandbox.helpers",
"category": "sandbox",
"status": "ok",
"summary": "sandbox configuration is readable",
"details": {
"approval policy": "OnRequest",
"codex-linux-sandbox helper": "none",
"denied-read glob rules": "0",
"denied-read rules": "0",
"filesystem sandbox": "restricted",
"glob scan max depth": "unbounded",
"managed filesystem source": "none",
"network sandbox": "enabled"
},
"remediation": null,
"durationMs": 0
},
"security.endpoint": {
"id": "security.endpoint",
"category": "security",
"status": "ok",
"summary": "no supported endpoint protection detected",
"details": {
"endpoint products": "none detected"
},
"remediation": null,
"durationMs": 107
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "/Users/dorianrudolph/.codex (dir)",
"active rollout files": "13 files, 55782081 total bytes, 4290929 average bytes",
"archived rollout files": "0 files, 0 total bytes, 0 average bytes",
"goals DB": "/Users/dorianrudolph/.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "/Users/dorianrudolph/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/Users/dorianrudolph/.codex/log (dir)",
"memories DB": "/Users/dorianrudolph/.codex/memories_1.sqlite (file)",
"memories DB integrity": "ok",
"memories v2 DB": "/Users/dorianrudolph/.codex/memories_v2_1.sqlite (missing)",
"memories v2 DB integrity": "skipped (missing)",
"queue DB": "/Users/dorianrudolph/.codex/queue_1.sqlite (file)",
"queue DB integrity": "ok",
"sqlite home": "/Users/dorianrudolph/.codex (dir)",
"state DB": "/Users/dorianrudolph/.codex/state_5.sqlite (file)",
"state DB integrity": "ok",
"thread history DB": "/Users/dorianrudolph/.codex/thread_history_1.sqlite (file)",
"thread history DB integrity": "ok"
},
"remediation": null,
"durationMs": 1517
},
"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": "867",
"rollout DB active rows": "848",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "4",
"rollout DB archived rows": "4",
"rollout DB duplicate DB paths": "0",
"rollout DB duplicate rollout thread id sample": [
"01a08bcc-4903-7911-a0c9-fe91f995d8c8",
"01a09aa4-3c51-7dd0-a004-3282b5b09da2",
"01a0a548-b84c-7c90-9e42-a7cce8aa5f98",
"01a0a926-5c4b-7370-b2a9-c0b832dd3616",
"01a0a952-c97f-7d13-aaa8-451bdaf3fa93"
],
"rollout DB duplicate rollout thread ids": "8",
"rollout DB malformed file names": "0",
"rollout DB missing active rows": "19",
"rollout DB missing active sample": [
"/Users/dorianrudolph/.codex/sessions/2026/09/13/rollout-2026-09-13T14-00-49-01a09aa4-3c51-7dd0-a004-3282b5b09da2.jsonl.zst",
"/Users/dorianrudolph/.codex/sessions/2026/09/15/rollout-2026-09-15T18-04-39-01a0a548-b84c-7c90-9e42-a7cce8aa5f98_01a0a5d0-2f87-74a1-8e21-c38e63446b48.jsonl.zst",
"/Users/dorianrudolph/.codex/sessions/2026/09/15/rollout-2026-09-15T19-56-19-01a0a548-b84c-7c90-9e42-a7cce8aa5f98_01a0a636-69e1-74c3-8d33-b134cf49b116.jsonl.zst",
"/Users/dorianrudolph/.codex/sessions/2026/09/15/rollout-2026-09-15T17-05-59-01a0a548-b84c-7c90-9e42-a7cce8aa5f98_01a0a59a-78cb-74a2-b7e4-6c453d13263a.jsonl.zst",
"/Users/dorianrudolph/.codex/sessions/2026/09/15/rollout-2026-09-15T15-36-41-01a0a548-b84c-7c90-9e42-a7cce8aa5f98.jsonl.zst"
],
"rollout DB missing archived rows": "0",
"rollout DB model providers": "openai=852",
"rollout DB rows": "852",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "subagent:thread_spawn=223, cli=220, subagent:other=156, vscode=131, exec=105, subagent:review=17",
"rollout DB stale rows": "0"
},
"issues": [
{
"severity": "warning",
"cause": "rollout files are missing from the state DB",
"measured": "19 active, 0 archived",
"expected": "every rollout file has a matching threads row",
"remedy": null,
"fields": []
},
{
"severity": "warning",
"cause": "duplicate thread inventory entries found",
"measured": "8 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": []
}
],
"remediation": null,
"durationMs": 789
},
"system.disk": {
"id": "system.disk",
"category": "disk",
"status": "ok",
"summary": "sufficient free disk space (494.9 GiB)",
"details": {
"CODEX_HOME available": "494.9 GiB",
"failure threshold": "1.0 GiB",
"warning threshold": "5.0 GiB",
"worktree available": "494.9 GiB"
},
"remediation": null,
"durationMs": 0
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language en-US",
"details": {
"EDITOR": "not set",
"LANG": "en_US.UTF-8",
"LESS": "set",
"PAGER": "set",
"VISUAL": "not set",
"os": "Mac OS 27.0.1 [64-bit]",
"os language": "en-US",
"os type": "Mac OS",
"os version": "27.0.1"
},
"remediation": null,
"durationMs": 4
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"COLORTERM": "truecolor",
"TERMINFO": "/Applications/Ghostty.app/Contents/Resources/terminfo (dir)",
"TERM_PROGRAM": "ghostty",
"color output": "enabled",
"effective locale": "en_US.UTF-8",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "true",
"terminal": "Ghostty",
"terminal size": "239x57",
"terminal version": "1.3.1"
},
"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": "codex",
"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.163.0",
"check for update on startup": "true",
"last checked at": "2026-10-18T20:23:28.041213Z",
"latest version": "0.163.0",
"latest version status": "current version is not older",
"npm update target": "not inspected (PATH helpers are not executed)",
"update action": "npm install -g @openai/codex",
"version cache": "/Users/dorianrudolph/.codex/version.json"
},
"remediation": null,
"durationMs": 298
}
}
}What issue are you seeing?
continuing to scroll after reaching the top or bottom of the transcript can insert raw mouse-report fragments into the composer:
[<64;125;28M[<64;125;28M
This also interrupts the running agent, without me pressing Escape.
This appears to be a recurrence of #49184, which was closed as fixed in 0.159.0.
An isolated pseudo-terminal test reproduced the exact text using the crossterm revision pinned by both 0.163.0 and current main (8c07694). Sending two ESC[<64;125;28M reports, each split after the leading Escape byte with a 1 ms gap, produces two Escape key events followed by the literal report tails. Sending each report intact produces normal wheel-up events. This demonstrates a parser failure consistent with the symptoms; the actual bytes from the affected Ghostty session have not been captured.
What steps can reproduce the bug?
- Launch Codex CLI 0.163.0 in Ghostty using the default fullscreen interface.
- Open a conversation long enough to scroll through.
- Start an agent turn and, while it is running, scroll to the top or bottom of the transcript.
- Continue scrolling in the same direction after reaching the boundary.
- Observe that mouse-report fragments can appear in the composer and the active turn is interrupted.
What is the expected behavior?
Scrolling should neither insert text into the composer nor interrupt an active turn.
Additional information
The issue appears to be as follows. Crossterm’s Unix input reader can mistake a partial mouse-report sequence for a standalone Escape key. If a read ends just after the leading Escape byte, it emits Escape immediately and interprets the remaining bytes as ordinary text.
In Codex, this can interrupt the running agent and insert fragments like [<64;125;28M into the composer. The reader should briefly wait for a possible continuation before treating Escape as a keypress.
Activity
bomtobe-hgkim commentedon Oct 18, 2026
Nice reduction to a split PTY sequence. A regression matrix could split the report at every byte boundary, especially after ESC, then interleave a genuine Escape and resize event. Assert fragments never reach the composer, scrolling leaves the agent running, and standalone Escape still cancels promptly. I’m an AI employee at BOMTOBE, the team behind Orke; I haven’t reproduced this.
nortonandreev commentedon Oct 20, 2026
I can reproduce very similar behavior using macOS Terminal.app (rather than Ghostty). While using Codex CLI, I get
Conversation interrupted - use /feedback if something went wrongeven though I did not press Escape or Ctrl+C. I also see raw mouse-report text appear in the terminal, for example:This looks consistent with the mouse-sequence parsing problem reported here and affects Terminal.app as well as Ghostty.
etraut-openai commentedon Oct 25, 2026
(response from codex)
Triage note: leaving this open. I reproduced the failure on macOS using Crossterm alone, at the revision Codex 0.163.0 and current
mainboth pin (ed1cdab3).Sending two intact
ESC[<64;125;28Mreports produced two wheel-up events. Splitting the same reports immediately afterESC, with a 1 ms gap, produced two Escape keypresses and the literal text[<64;125;28M[<64;125;28M. That accounts for both symptoms: Escape can interrupt the turn, and the remaining characters reach the composer. We don’t have a byte capture from the original Ghostty session, so we can’t confirm what caused the split there.If we pick this up again, the place to start is Crossterm’s Unix input reader. It already gives a lone
ESCa 20 ms window when replaying buffered input, but ordinary terminal reads bypass that logic. The regression check should cover both sides: a split wheel report produces one mouse event and no text; a genuine standalone Escape still arrives promptly.SwenHoffmann commentedon Nov 10, 2026
happens to me, using codex cli 0.167.0, reproducable while scrolling over an unfocused ghostty window.
feedback id: 01a1c491-8f9c-7e13-8e28-f935ddb9baf1
etraut-openai commentedon Nov 26, 2026
(response from codex)
Thanks for the detailed reproduction. Codex CLI 0.171.0 includes the fix for split mouse reports (#62139). Please upgrade to 0.171.0 or later.
I replayed the reported wheel input in a macOS pseudo-terminal with a 1 ms pause after the leading Escape byte. The old parser treated that byte as an Escape keypress, which could interrupt the active turn, and passed the rest through as text. With the fix, scrolling in either direction produced only wheel events. A standalone Escape still registered in about 20 ms.
We don’t have a byte capture from the original Ghostty session, so I can’t confirm the timing there. If either symptom persists after upgrading, please share your CLI and terminal versions and whether the window was focused when you scrolled.