Codex v0.140.0: @ unified mentions menu opens but cannot navigate or select items with arrow keys

Resolved 💬 3 comments Opened Jun 16, 2026 by binbjz Closed Jun 23, 2026

What version of Codex CLI is running?

v0.140.0

What subscription do you have?

yping @ opens the new unified mentions menu for files, plugins, and skills, but the list cannot be navigated with Up/Down arrow keys and items cannot be selected reliably.

Which model were you using?

_No response_

What platform is your computer?

macOS

What terminal emulator and version are you using (if applicable)?

warp dev v0.2026.06.10.09.27.stable_01

Codex doctor report

codex doctor --json
{
  "schemaVersion": 1,
  "generatedAt": "1781601928s since unix epoch",
  "overallStatus": "warning",
  "codexVersion": "0.140.0",
  "checks": {
    "app_server.status": {
      "id": "app_server.status",
      "category": "app-server",
      "status": "ok",
      "summary": "background server is not running",
      "details": {
        "control socket": "/Users/zhaobin/.codex/app-server-control/app-server-control.sock",
        "daemon state dir": "/Users/zhaobin/.codex/app-server-daemon",
        "mode": "ephemeral",
        "pid file": "/Users/zhaobin/.codex/app-server-daemon/app-server.pid (missing)",
        "settings": "/Users/zhaobin/.codex/app-server-daemon/settings.json (missing)",
        "status": "not running",
        "update-loop pid file": "/Users/zhaobin/.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/zhaobin/.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/zhaobin/.codex",
        "config.toml": "/Users/zhaobin/.codex/config.toml",
        "config.toml parse": "ok",
        "cwd": "/Users/zhaobin/Documents/WorkData/Fameex_info/fameex性能测试/挂撤单-外部做市商",
        "enabled feature flags": "shell_tool, unified_exec, shell_snapshot, terminal_resize_reflow, sqlite, memories, hooks, enable_request_compression, multi_agent, apps, tool_suggest, plugins, 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, prevent_idle_sleep, remote_compaction_v2, workspace_dependencies",
        "feature flag overrides": "memories=true, mentions_v2=false, prevent_idle_sleep=true",
        "feature flags enabled": "30",
        "log dir": "/Users/zhaobin/.codex/log",
        "mcp servers": "1",
        "model": "gpt-5.5",
        "model provider": "openai",
        "sqlite home": "/Users/zhaobin/.codex"
      },
      "remediation": null,
      "durationMs": 0
    },
    "git.environment": {
      "id": "git.environment",
      "category": "git",
      "status": "ok",
      "summary": "git version 2.54.0",
      "details": {
        "PATH git #1": "/opt/homebrew/bin/git",
        "PATH git #2": "/usr/bin/git",
        "PATH git entries": "2",
        "git build options": "git version 2.54.0; cpu: arm64; no commit associated with this build; sizeof-long: 8; sizeof-size_t: 8; shell-path: /bin/sh; rust: disabled; feature: fsmonitor--daemon; gettext: enabled; libcurl: 8.7.1; zlib: 1.2.12; SHA-1: SHA1_DC; SHA-256: SHA256_BLK; default-ref-format: files; default-hash: sha1",
        "git exec path": "/opt/homebrew/opt/git/libexec/git-core",
        "git version": "git version 2.54.0",
        "repo detected": "false",
        "selected git": "/opt/homebrew/bin/git"
      },
      "remediation": null,
      "durationMs": 168
    },
    "installation": {
      "id": "installation",
      "category": "install",
      "status": "ok",
      "summary": "installation looks consistent",
      "details": {
        "PATH codex #1": "/Users/zhaobin/.nvm/versions/node/v22.14.0/bin/codex",
        "current executable": "/Users/zhaobin/.nvm/versions/node/v22.14.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/bin/codex",
        "install context": "npm (package /Users/zhaobin/.nvm/versions/node/v22.14.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin, bin /Users/zhaobin/.nvm/versions/node/v22.14.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/bin, resources /Users/zhaobin/.nvm/versions/node/v22.14.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-resources, path /Users/zhaobin/.nvm/versions/node/v22.14.0/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 package root": "/Users/zhaobin/.nvm/versions/node/v22.14.0/lib/node_modules/@openai/codex",
        "npm update target": "/Users/zhaobin/.nvm/versions/node/v22.14.0/lib/node_modules/@openai/codex"
      },
      "remediation": null,
      "durationMs": 145
    },
    "mcp.config": {
      "id": "mcp.config",
      "category": "mcp",
      "status": "ok",
      "summary": "MCP configuration is locally consistent",
      "details": {
        "configured servers": "1",
        "disabled servers": "0",
        "stdio servers": "1"
      },
      "remediation": null,
      "durationMs": 1
    },
    "network.env": {
      "id": "network.env",
      "category": "network",
      "status": "ok",
      "summary": "network-related environment looks readable",
      "details": {
        "proxy env vars present": "HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, NO_PROXY, http_proxy, https_proxy, all_proxy, no_proxy"
      },
      "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": 1472
    },
    "network.websocket_reachability": {
      "id": "network.websocket_reachability",
      "category": "websocket",
      "status": "ok",
      "summary": "Responses WebSocket handshake succeeded",
      "details": {
        "DNS": "1 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 present": "HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, NO_PROXY, http_proxy, https_proxy, all_proxy, no_proxy",
        "reasoning header": "false",
        "server model present": "false",
        "supports websockets": "true",
        "wire API": "responses"
      },
      "remediation": null,
      "durationMs": 2924
    },
    "runtime.provenance": {
      "id": "runtime.provenance",
      "category": "runtime",
      "status": "ok",
      "summary": "running npm on macos-aarch64",
      "details": {
        "commit": "unknown",
        "current executable": "/Users/zhaobin/.nvm/versions/node/v22.14.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/bin/codex",
        "install method": "npm (package /Users/zhaobin/.nvm/versions/node/v22.14.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin, bin /Users/zhaobin/.nvm/versions/node/v22.14.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/bin, resources /Users/zhaobin/.nvm/versions/node/v22.14.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-resources, path /Users/zhaobin/.nvm/versions/node/v22.14.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-path)",
        "platform": "macos-aarch64",
        "version": "0.140.0"
      },
      "remediation": null,
      "durationMs": 0
    },
    "runtime.search": {
      "id": "runtime.search",
      "category": "search",
      "status": "ok",
      "summary": "search is OK (bundled)",
      "details": {
        "search command": "/Users/zhaobin/.nvm/versions/node/v22.14.0/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/zhaobin/.codex/tmp/arg0/codex-arg0qubo7I/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/zhaobin/.codex (dir)",
        "active rollout files": "459 files, 993527432 total bytes, 2164547 average bytes",
        "archived rollout files": "20 files, 173638883 total bytes, 8681944 average bytes",
        "goals DB": "/Users/zhaobin/.codex/goals_1.sqlite (file)",
        "goals DB integrity": "ok",
        "log DB": "/Users/zhaobin/.codex/logs_2.sqlite (file)",
        "log DB integrity": "ok",
        "log dir": "/Users/zhaobin/.codex/log (dir)",
        "memories DB": "/Users/zhaobin/.codex/memories_1.sqlite (file)",
        "memories DB integrity": "ok",
        "sqlite home": "/Users/zhaobin/.codex (dir)",
        "state DB": "/Users/zhaobin/.codex/state_5.sqlite (file)",
        "state DB integrity": "ok"
      },
      "remediation": null,
      "durationMs": 2055
    },
    "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": "459",
        "rollout DB active rows": "459",
        "rollout DB archive mismatches": "0",
        "rollout DB archived files": "20",
        "rollout DB archived rows": "19",
        "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": "1",
        "rollout DB missing archived sample": "/Users/zhaobin/.codex/archived_sessions/rollout-2026-06-15T13-15-46-019ec9b5-0bfc-7882-9bca-91039429f114.jsonl",
        "rollout DB model providers": "openai=478",
        "rollout DB rows": "478",
        "rollout DB scan cap reached": "false",
        "rollout DB scan errors": "0",
        "rollout DB sources": "cli=398, vscode=53, subagent:review=26, exec=1",
        "rollout DB stale rows": "0"
      },
      "issues": [
        {
          "severity": "warning",
          "cause": "rollout files are missing from the state DB",
          "measured": "0 active, 1 archived",
          "expected": "every rollout file has a matching threads row",
          "remedy": null,
          "fields": []
        }
      ],
      "remediation": null,
      "durationMs": 3987
    },
    "system.environment": {
      "id": "system.environment",
      "category": "system",
      "status": "ok",
      "summary": "OS language en-CN",
      "details": {
        "EDITOR": "not set",
        "LANG": "en_US.UTF-8",
        "LC_ALL": "en_US.UTF-8",
        "LC_CTYPE": "UTF-8",
        "VISUAL": "set",
        "os": "Mac OS 26.5.1 [64-bit]",
        "os language": "en-CN",
        "os type": "Mac OS",
        "os version": "26.5.1"
      },
      "remediation": null,
      "durationMs": 3
    },
    "terminal.env": {
      "id": "terminal.env",
      "category": "terminal",
      "status": "ok",
      "summary": "terminal metadata was detected",
      "details": {
        "COLORTERM": "truecolor",
        "TERM_PROGRAM": "WarpTerminal",
        "color output": "enabled",
        "effective locale": "en_US.UTF-8",
        "stderr is terminal": "true",
        "stdin is terminal": "true",
        "stdout is terminal": "true",
        "terminal": "Warp",
        "terminal size": "103x51",
        "terminal version": "v0.2026.06.10.09.27.stable_01"
      },
      "remediation": null,
      "durationMs": 0
    },
    "terminal.title": {
      "id": "terminal.title",
      "category": "title",
      "status": "ok",
      "summary": "terminal title configured",
      "details": {
        "terminal title activity": "true",
        "terminal title items": "activity, project-name",
        "terminal title project source": "cwd",
        "terminal title project value": "挂撤单-外部做市商",
        "terminal title source": "configured"
      },
      "remediation": null,
      "durationMs": 0
    },
    "updates.status": {
      "id": "updates.status",
      "category": "updates",
      "status": "ok",
      "summary": "update configuration is locally consistent",
      "details": {
        "cached latest version": "0.139.0",
        "check for update on startup": "true",
        "last checked at": "2026-06-15T15:25:05.128928Z",
        "latest version": "0.140.0",
        "latest version status": "current version is not older",
        "npm update target": "/Users/zhaobin/.nvm/versions/node/v22.14.0/lib/node_modules/@openai/codex",
        "update action": "npm install -g @openai/codex",
        "version cache": "/Users/zhaobin/.codex/version.json"
      },
      "remediation": null,
      "durationMs": 2173
    }
  }
}

What issue are you seeing?

Version:
Codex CLI v0.140.0

Platform:
macOS

Issue:
Typing @ opens the new unified mentions menu for files, plugins, and skills, but the list cannot be navigated with Up/Down arrow keys and items cannot be selected reliably.

Steps to reproduce:

  1. Start Codex CLI v0.140.0.
  2. In the composer, type @.
  3. Observe that the unified mentions menu opens and displays files/plugins/skills.
  4. Press Up/Down arrow keys.
  5. Try to select an item with Enter.

Expected:
The Up/Down arrow keys should move the active selection in the mentions menu, and Enter should insert/select the highlighted item.

Actual:
The mentions menu opens, but keyboard navigation does not work. The user cannot select a candidate from the menu.

Impact:
This blocks the main keyboard workflow for referencing files/plugins/skills from the composer. I

What steps can reproduce the bug?

Version:
Codex CLI v0.140.0

Platform:
macOS

Issue:
Typing @ opens the new unified mentions menu for files, plugins, and skills, but the list cannot be navigated with Up/Down arrow keys and items cannot be selected reliably.

Steps to reproduce:

  1. Start Codex CLI v0.140.0.
  2. In the composer, type @.
  3. Observe that the unified mentions menu opens and displays files/plugins/skills.
  4. Press Up/Down arrow keys.
  5. Try to select an item with Enter.

Expected:
The Up/Down arrow keys should move the active selection in the mentions menu, and Enter should insert/select the highlighted item.

Actual:
The mentions menu opens, but keyboard navigation does not work. The user cannot select a candidate from the menu.

Impact:
This blocks the main keyboard workflow for referencing files/plugins/skills from the composer. I

What is the expected behavior?

The Up/Down arrow keys should move the active selection in the mentions menu, and Enter should insert/select the highlighted item.

Additional information

Workaround / Additional confirmation:

After running:

codex features disable mentions_v2

and restarting Codex, the @ file mention menu works normally again. I can navigate the file list with the Up/Down arrow keys and select files as expected.

This suggests the issue is specific to the new mentions_v2 / unified mentions menu introduced in v0.140.0, rather than a terminal or keyboard environment problem.

Another Workaround / Additional confirmation:
After switching to ghostty or iTerm, both work fine — I can use @ and the arrow keys to navigate and choose the file or directory I want.

_No response_

View original on GitHub ↗

3 Comments

MakenRosa · 2 months ago

A focused place to look: on current main, the mentions_v2 popup path does already route navigation/selection keys through ChatComposer::handle_key_event_with_mentions_v2_popup:

  • ActivePopup::MentionV2(_) dispatches into that handler from handle_key_event.
  • The handler maps Up / Ctrl-P to popup.move_up(), Down / Ctrl-N to popup.move_down(), and Tab / Enter to popup.selected().
  • mentions_v2::popup::Popup keeps the selected row in ScrollState, and set_query / set_candidates call clamp_selection() rather than obviously resetting selection on every render.

So if this is reproducible in v0.140.0, I think the useful next split is:

  1. Do Ctrl-N / Ctrl-P move the highlighted row while arrow keys do not? If yes, this is likely terminal key decoding / Warp-specific input rather than the popup selection model.
  2. Does Tab insert the selected item when Enter does not? If yes, selection is probably valid and the failure is specific to the Enter/submit interaction.
  3. Does the same repro happen outside Warp, or with a plain TERM=xterm-256color shell?

One small test gap I noticed: the current snapshots cover rendering of the unified mention popup/footer, but I did not find an obvious regression test that drives @..., Down, then Enter/Tab against ActivePopup::MentionV2. Adding that would make this easier to pin down and would distinguish “keys are not delivered” from “popup state is not preserved.”

nekowasabi · 2 months ago

Same.

binbjz · 2 months ago

Version: codex-cli 0.142.0, warp dev v0.2026.06.17.09.49.stable_02.
Enabled v2: codex features enable mentions_v2
Verified that up/down/left/right navigation can correctly select files, directories, or other items.