IDE context could not be enabled
Open 💬 8 comments Opened May 26, 2026 by xuanswe
💡 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.133.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.5
What platform is your computer?
Ubuntu 26: Linux 7.0.0-15-generic x86_64
What terminal emulator and version are you using (if applicable)?
VS Code
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1779762988s since unix epoch",
"overallStatus": "ok",
"codexVersion": "0.133.0",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "/home/.../.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/home/.../.codex/app-server-daemon",
"mode": "ephemeral",
"pid file": "/home/.../.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/home/.../.codex/app-server-daemon/settings.json (missing)",
"status": "not running",
"update-loop pid file": "/home/.../.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": "/home/.../.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": "/home/.../.codex",
"config.toml": "/home/.../.codex/config.toml",
"config.toml parse": "ok",
"cwd": "...",
"enabled feature flags": "shell_tool, unified_exec, shell_snapshot, terminal_resize_reflow, sqlite, hooks, enable_request_compression, multi_agent, apps, tool_suggest, plugins, plugin_hooks, in_app_browser, browser_use, browser_use_external, computer_use, plugin_sharing, 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": "none",
"feature flags enabled": "28",
"log dir": "/home/.../.codex/log",
"mcp servers": "0",
"model": "gpt-5.5",
"model provider": "openai",
"sqlite home": "/home/.../.codex"
},
"remediation": null,
"durationMs": 0
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "/home/.../.local/share/mise/installs/node/24/bin/codex",
"current executable": "/home/.../.local/share/mise/installs/node/24.15.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin/codex",
"install context": "npm (package /home/.../.local/share/mise/installs/node/24.15.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl, bin /home/.../.local/share/mise/installs/node/24.15.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin, resources /home/.../.local/share/mise/installs/node/24.15.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-resources, path /home/.../.local/share/mise/installs/node/24.15.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-path)",
"managed by bun": "false",
"managed by npm": "true",
"managed package root": "/home/.../.local/share/mise/installs/node/24.15.0/lib/node_modules/@openai/codex",
"npm update target": "/home/.../.local/share/mise/installs/node/24.15.0/lib/node_modules/@openai/codex"
},
"remediation": null,
"durationMs": 54
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "no MCP servers configured",
"details": {},
"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": {
"ChatGPT base URL": "https://chatgpt.com/backend-api/ reachable (HTTP 403)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 158
},
"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",
"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": 579
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running npm on linux-x86_64",
"details": {
"commit": "unknown",
"current executable": "/home/.../.local/share/mise/installs/node/24.15.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin/codex",
"install method": "npm (package /home/.../.local/share/mise/installs/node/24.15.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl, bin /home/.../.local/share/mise/installs/node/24.15.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin, resources /home/.../.local/share/mise/installs/node/24.15.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-resources, path /home/.../.local/share/mise/installs/node/24.15.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-path)",
"platform": "linux-x86_64",
"version": "0.133.0"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (bundled)",
"details": {
"search command": "/home/.../.local/share/mise/installs/node/24.15.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/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": "/home/.../.codex/tmp/arg0/codex-arg0f27fRt/codex-linux-sandbox",
"execve wrapper helper": "/home/.../.codex/tmp/arg0/codex-arg0f27fRt/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": "/home/.../.codex (dir)",
"active rollout files": "69 files, 20857909 total bytes, 302288 average bytes",
"archived rollout files": "0 files, 0 total bytes, 0 average bytes",
"goals DB": "/home/.../.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "/home/.../.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/home/.../.codex/log (dir)",
"sqlite home": "/home/.../.codex (dir)",
"state DB": "/home/.../.codex/state_5.sqlite (file)",
"state DB integrity": "ok"
},
"remediation": null,
"durationMs": 2953
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"COLORTERM": "truecolor",
"DISPLAY": "present",
"TERM_PROGRAM": "vscode",
"WAYLAND_DISPLAY": "present",
"color output": "enabled",
"effective locale": "en_US.UTF-8",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "true",
"terminal": "VS Code",
"terminal size": "97x52",
"terminal version": "1.121.0"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.133.0",
"check for update on startup": "true",
"last checked at": "2026-05-25T10:37:17.180655054Z",
"latest version": "0.133.0",
"latest version status": "current version is not older",
"npm update target": "/home/.../.local/share/mise/installs/node/24.15.0/lib/node_modules/@openai/codex",
"update action": "npm install -g @openai/codex",
"version cache": "/home/.../.codex/version.json"
},
"remediation": null,
"durationMs": 302
}
}
}
What issue are you seeing?
╭─────────────────────────────────────────────────────────╮
│ >_ OpenAI Codex (v0.133.0) │
│ │
│ model: gpt-5.5 xhigh /model to change │
│ directory: ... │
│ permissions: YOLO mode │
╰─────────────────────────────────────────────────────────╯
• IDE context could not be enabled. Open this project in VS Code or Cursor with the Codex extension active.
What steps can reproduce the bug?
- Open a project in VScode
- Open Codex vscode extension and verify that the "IDE context" is working fine
- Open Codex CLI insde a vscode terminal
- Run slash command
/ide - Error: IDE context could not be enabled. Open this project in VS Code or Cursor with the Codex extension active.
Code CLI cannot see which file and text I am editing/selecting in vscode to add to the context automatically.
Codex vscode extension "IDE context" is working fine.
What is the expected behavior?
Both Codex CLI and Codex vscode extension should see which file and text I am editing/selecting in vscode and add to the context automatically.
Additional information
_No response_
8 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
This is not a duplicated issue. The other one was closed without any reason.
I'm very interested in upgrading to the Pro subscription, but Codex still has some major issues. For example, this bug and Issue #6465. I really hope OpenAI can address these problems soon and bring Codex closer to the level of Claude Code. Once that happens, I'll be ready to switch.
The
/idefeature requires that you're running the CLI on the same machine as your IDE. Is that the case, or are you running the CLI on a different (remote) machine?Or are they running in separate containers or otherwise isolated from each other?
It is on the same machine, no container, no isolated environment. I enable even YOLO mode. VSCode integrated terminal.
Codex extension is already active and used.
Codex VSCode extension, Claude Code CLI, Claude Code VSCode extension: all works fine.
@xuanswe, this must be something specific to your system. Perhaps you could clone the codex source locally and ask codex to help you debug it. If you find the root cause, let us know.
How could you conclude that? Did you try to reproduce it?
Yes, I'm unable to repro this, and we haven't received reports from other users about this problem.