CLI slows to a crawl after a few minutes of use.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- rust
- Domain
- cli, performance
Research direction
No source file, test, or entry point is named. Start by reproducing the slowdown with Codex CLI 0.146.1 on macOS using Terminal.app, then trace the CLI behavior after several minutes of use. Done means the cause is identified, the crawl is no longer reproducible, and a regression check covers the observed failure.
Written by the indexing model from the issue text.
Description
What version of Codex CLI is running?
codex-cli 0.146.1
What subscription do you have?
I have one, no idea what it is. my company manages it
Which model were you using?
All the things
What platform is your computer?
Darwin 25.6.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
Terminal.app
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1786055427s since unix epoch",
"overallStatus": "ok",
"codexVersion": "0.146.1",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "/Users/super-secret/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/Users/super-secret/.codex/app-server-daemon",
"mode": "ephemeral",
"pid file": "/Users/super-secret/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/Users/super-secret/.codex/app-server-daemon/settings.json (missing)",
"status": "not running",
"update-loop pid file": "/Users/super-secret/.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 provided by the active model provider",
"details": {
"auth file": "/Users/super-secret/.codex/auth.json",
"auth storage mode": "File",
"model provider requires OpenAI auth": "false",
"provider auth env var": "PORTKEY_API_KEY (present)"
},
"remediation": null,
"durationMs": 0
},
"config.load": {
"id": "config.load",
"category": "config",
"status": "ok",
"summary": "config loaded",
"details": {
"CODEX_HOME": "/Users/super-secret/.codex",
"config.toml": "/Users/super-secret/.codex/config.toml",
"config.toml parse": "ok",
"cwd": "/Users/super-secret",
"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, 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": "38",
"log dir": "/Users/super-secret/.codex/log",
"mcp servers": "2",
"model": "gpt-5.5",
"model provider": "portkey_com",
"sqlite home": "/Users/super-secret/.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git version 2.50.1 (Apple Git-155)",
"details": {
"PATH git #1": "/usr/bin/git",
"PATH git entries": "1",
"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": "false",
"selected git": "/usr/bin/git"
},
"remediation": null,
"durationMs": 27
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "/Users/super-secret/.local/bin/codex",
"current executable": "/Users/super-secret/.local/bin/codex",
"install context": "standalone (unix, package /Users/super-secret/.codex/packages/standalone/releases/0.146.1-aarch64-apple-darwin, bin /Users/super-secret/.codex/packages/standalone/releases/0.146.1-aarch64-apple-darwin/bin, resources /Users/super-secret/.codex/packages/standalone/releases/0.146.1-aarch64-apple-darwin/codex-resources, path /Users/super-secret/.codex/packages/standalone/releases/0.146.1-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": 3
},
"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": {
"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": {
"portkey_com API base URL": "https://portkey.shield.ai/v1 reachable (HTTP 401)",
"portkey_com API route probe": "https://portkey.shield.ai/v1/<redacted> route exists (HTTP 401)",
"reachability mode": "provider auth"
},
"remediation": null,
"durationMs": 795
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket is not enabled for the active provider",
"details": {
"model provider": "portkey_com",
"provider name": "Portkey (Comm)",
"proxy env vars": "none",
"supports websockets": "false",
"wire API": "responses"
},
"remediation": null,
"durationMs": 0
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running standalone on macos-aarch64",
"details": {
"commit": "unknown",
"current executable": "/Users/super-secret/.local/bin/codex",
"install method": "standalone (unix, package /Users/super-secret/.codex/packages/standalone/releases/0.146.1-aarch64-apple-darwin, bin /Users/super-secret/.codex/packages/standalone/releases/0.146.1-aarch64-apple-darwin/bin, resources /Users/super-secret/.codex/packages/standalone/releases/0.146.1-aarch64-apple-darwin/codex-resources, path /Users/super-secret/.codex/packages/standalone/releases/0.146.1-aarch64-apple-darwin/codex-path)",
"platform": "macos-aarch64",
"version": "0.146.1"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (bundled)",
"details": {
"search command": "/Users/super-secret/.codex/packages/standalone/releases/0.146.1-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/super-secret/.codex/tmp/arg0/codex-arg0Fqm9Nq/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/super-secret/.codex (dir)",
"active rollout files": "37 files, 72635858 total bytes, 1963131 average bytes",
"archived rollout files": "0 files, 0 total bytes, 0 average bytes",
"goals DB": "/Users/super-secret/.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "/Users/super-secret/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/Users/super-secret/.codex/log (missing)",
"memories DB": "/Users/super-secret/.codex/memories_1.sqlite (file)",
"memories DB integrity": "ok",
"sqlite home": "/Users/super-secret/.codex (dir)",
"standalone release cache": "2 entries in /Users/super-secret/.codex/packages/standalone/releases",
"state DB": "/Users/super-secret/.codex/state_5.sqlite (file)",
"state DB integrity": "ok",
"thread history DB": "/Users/super-secret/.codex/thread_history_1.sqlite (missing)",
"thread history DB integrity": "skipped (missing)"
},
"remediation": null,
"durationMs": 1506
},
"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": "portkey_com",
"rollout DB active files": "37",
"rollout DB active rows": "37",
"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": "portkey_com=36, openai=1",
"rollout DB rows": "37",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "cli=24, subagent:thread_spawn=8, vscode=4, exec=1",
"rollout DB stale rows": "0"
},
"remediation": null,
"durationMs": 27
},
"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.6.0 [64-bit]",
"os language": "en-US",
"os type": "Mac OS",
"os version": "26.6.0"
},
"remediation": null,
"durationMs": 1
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"COLORTERM": "truecolor",
"TERM_PROGRAM": "Apple_Terminal",
"color output": "enabled",
"effective locale": "en_US.UTF-8",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "true",
"terminal": "Apple Terminal",
"terminal size": "80x24",
"terminal version": "470.2"
},
"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": "super-secret",
"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.146.1",
"check for update on startup": "true",
"last checked at": "2026-08-06T19:34:21.361206Z",
"latest version": "0.146.1",
"latest version status": "current version is not older",
"update action": "standalone installer",
"version cache": "/Users/super-secret/.codex/version.json"
},
"remediation": null,
"durationMs": 539
}
}
}
What issue are you seeing?
Codex cli slows to a crawl the longer its left open. this started happening today after an update.
What steps can reproduce the bug?
Just open a CLI, use it, eventually characters show up about 5 seconds after typing them.
What is the expected behavior?
Instant gratification
Additional information
No response
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- Avg merge
- 1m
- Merged PRs (30d)
- 1k
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openai/codex
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug CLI windows-os
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
macOS sandbox blocks hw.optional.arm64 sysctl, causing Flutter to misdetect Apple Silicon as x64 Openbug CLI sandbox
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug CLI TUI
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
CLI config enhancement skills
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
A-linter
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oxc-project/oxc#26863 ·