tool_suggest causes slow turns by scanning local curated plugin details before model requests

Open 💬 1 comment Opened Jun 12, 2026 by leostewart

What version of Codex CLI is running?

codex-cli 0.139.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.5

What platform is your computer?

Linux 6.18.35 aarch64 unknown (UTM VM)

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

foot

Codex doctor report

{
  "schemaVersion": 1,
  "generatedAt": "1781281551s since unix epoch",
  "overallStatus": "fail",
  "codexVersion": "0.139.0",
  "checks": {
    "app_server.status": {
      "id": "app_server.status",
      "category": "app-server",
      "status": "ok",
      "summary": "background server is not running",
      "details": {
        "control socket": "/home/leo/.local/state/toolkit/personal/codex/app-server-control/app-server-control.sock",
        "daemon state dir": "/home/leo/.local/state/toolkit/personal/codex/app-server-daemon",
        "mode": "ephemeral",
        "pid file": "/home/leo/.local/state/toolkit/personal/codex/app-server-daemon/app-server.pid (missing)",
        "settings": "/home/leo/.local/state/toolkit/personal/codex/app-server-daemon/settings.json (missing)",
        "status": "not running",
        "update-loop pid file": "/home/leo/.local/state/toolkit/personal/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/leo/.local/state/toolkit/personal/codex/auth.json",
        "auth storage mode": "Keyring",
        "stored API key": "false",
        "stored ChatGPT tokens": "true",
        "stored agent identity": "false",
        "stored auth mode": "chatgpt"
      },
      "remediation": null,
      "durationMs": 8
    },
    "config.load": {
      "id": "config.load",
      "category": "config",
      "status": "ok",
      "summary": "config loaded",
      "details": {
        "CODEX_HOME": "/home/leo/.local/state/toolkit/personal/codex",
        "config.toml": "/home/leo/.local/state/toolkit/personal/codex/config.toml",
        "config.toml parse": "ok",
        "cwd": "/tmp/toolkit-codex.XkpON9",
        "enabled feature flags": "shell_tool, unified_exec, shell_snapshot, terminal_resize_reflow, sqlite, hooks, enable_request_compression, multi_agent, apps, 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, workspace_dependencies",
        "feature flag overrides": "tool_suggest=false",
        "feature flags enabled": "26",
        "log dir": "/home/leo/.local/state/toolkit/personal/codex/log",
        "mcp servers": "0",
        "model": "gpt-5.5",
        "model provider": "openai",
        "sqlite home": "/home/leo/.local/state/toolkit/personal/codex"
      },
      "remediation": null,
      "durationMs": 0
    },
    "git.environment": {
      "id": "git.environment",
      "category": "git",
      "status": "ok",
      "summary": "git version 2.54.0",
      "details": {
        ".git entry": "directory",
        "PATH git #1": "/etc/profiles/per-user/leo/bin/git",
        "PATH git entries": "1",
        "git build options": "git version 2.54.0; cpu: aarch64; no commit associated with this build; sizeof-long: 8; sizeof-size_t: 8; shell-path: /nix/store/zm75q602pac1pp3yv2za4zf9wj36dd76-bash-5.3p9/bin/bash; rust: enabled; gettext: enabled; libcurl: 8.20.0; OpenSSL: OpenSSL 3.6.2 7 Apr 2026; zlib-ng: 2.3.3; SHA-1: SHA1_DC; SHA-256: SHA256_BLK; default-ref-format: files; default-hash: sha1",
        "git exec path": "/nix/store/ixp98f9avf8ikpdrmp40cj33g0dazyp9-git-2.54.0/libexec/git-core",
        "git version": "git version 2.54.0",
        "repo detected": "true",
        "repo root": "/tmp/toolkit-codex.XkpON9",
        "selected git": "/etc/profiles/per-user/leo/bin/git"
      },
      "remediation": null,
      "durationMs": 23
    },
    "installation": {
      "id": "installation",
      "category": "install",
      "status": "ok",
      "summary": "installation looks consistent",
      "details": {
        "current executable": "/nix/store/iwbj16rn42b9g5w0rkvc8w7hq1pld26h-codex-0.139.0/bin/.codex-wrapped",
        "install context": "other",
        "managed by bun": "false",
        "managed by npm": "false",
        "managed package root": "not set"
      },
      "remediation": null,
      "durationMs": 0
    },
    "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 404)",
        "reachability mode": "ChatGPT auth"
      },
      "remediation": null,
      "durationMs": 139
    },
    "network.websocket_reachability": {
      "id": "network.websocket_reachability",
      "category": "websocket",
      "status": "ok",
      "summary": "Responses WebSocket handshake succeeded",
      "details": {
        "DNS": "2 IPv4, 2 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": 954
    },
    "runtime.provenance": {
      "id": "runtime.provenance",
      "category": "runtime",
      "status": "ok",
      "summary": "running local build on linux-aarch64",
      "details": {
        "commit": "unknown",
        "current executable": "/nix/store/iwbj16rn42b9g5w0rkvc8w7hq1pld26h-codex-0.139.0/bin/.codex-wrapped",
        "install method": "other",
        "platform": "linux-aarch64",
        "version": "0.139.0"
      },
      "remediation": null,
      "durationMs": 0
    },
    "runtime.search": {
      "id": "runtime.search",
      "category": "search",
      "status": "ok",
      "summary": "search is OK (system)",
      "details": {
        "search command": "rg",
        "search command readiness": "ripgrep 15.1.0",
        "search provider": "system"
      },
      "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/leo/.local/state/toolkit/personal/codex/tmp/arg0/codex-arg0RdrJbb/codex-linux-sandbox",
        "execve wrapper helper": "/home/leo/.local/state/toolkit/personal/codex/tmp/arg0/codex-arg0RdrJbb/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/leo/.local/state/toolkit/personal/codex (dir)",
        "active rollout files": "288 files, 215630484 total bytes, 748716 average bytes",
        "archived rollout files": "0 files, 0 total bytes, 0 average bytes",
        "goals DB": "/home/leo/.local/state/toolkit/personal/codex/goals_1.sqlite (file)",
        "goals DB integrity": "ok",
        "log DB": "/home/leo/.local/state/toolkit/personal/codex/logs_2.sqlite (file)",
        "log DB integrity": "ok",
        "log dir": "/home/leo/.local/state/toolkit/personal/codex/log (dir)",
        "memories DB": "/home/leo/.local/state/toolkit/personal/codex/memories_1.sqlite (file)",
        "memories DB integrity": "ok",
        "sqlite home": "/home/leo/.local/state/toolkit/personal/codex (dir)",
        "state DB": "/home/leo/.local/state/toolkit/personal/codex/state_5.sqlite (file)",
        "state DB integrity": "ok"
      },
      "remediation": null,
      "durationMs": 214
    },
    "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": "openai",
        "rollout DB active files": "288",
        "rollout DB active rows": "288",
        "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": "openai=288",
        "rollout DB rows": "288",
        "rollout DB scan cap reached": "false",
        "rollout DB scan errors": "0",
        "rollout DB sources": "cli=254, subagent:review=28, exec=6",
        "rollout DB stale rows": "0"
      },
      "remediation": null,
      "durationMs": 4033
    },
    "system.environment": {
      "id": "system.environment",
      "category": "system",
      "status": "ok",
      "summary": "OS language en-US",
      "details": {
        "EDITOR": "set",
        "LANG": "en_US.UTF-8",
        "PAGER": "set",
        "VISUAL": "set",
        "os": "NixOS 26.11.0 [64-bit]",
        "os language": "en-US",
        "os type": "NixOS",
        "os version": "26.11.0"
      },
      "remediation": null,
      "durationMs": 1
    },
    "terminal.env": {
      "id": "terminal.env",
      "category": "terminal",
      "status": "fail",
      "summary": "TERMINFO unreadable - terminal capabilities are unknown",
      "details": {
        "COLORTERM": "truecolor",
        "TERM": "foot",
        "TERMINFO": "/nix/store/31rkxp3d93fjxdmxs22fp2cr3x08mfjc-foot-1.27.0-terminfo/share/terminfo (dir)",
        "TERMINFO_DIRS entry": [
          "/home/leo/.nix-profile/share/terminfo (missing)",
          "/nix/profile/share/terminfo (missing)",
          "/home/leo/.local/state/nix/profile/share/terminfo (missing)",
          "/etc/profiles/per-user/leo/share/terminfo (dir)",
          "/nix/var/nix/profiles/default/share/terminfo (missing)",
          "/run/current-system/sw/share/terminfo (dir)"
        ],
        "WAYLAND_DISPLAY": "present",
        "color output": "disabled (stdout is not a terminal)",
        "effective locale": "en_US.UTF-8",
        "stderr is terminal": "true",
        "stdin is terminal": "true",
        "stdout is terminal": "false",
        "terminal": "unknown",
        "terminal size": "140x79"
      },
      "issues": [
        {
          "severity": "fail",
          "cause": "TERMINFO unreadable - terminal capabilities are unknown",
          "measured": null,
          "expected": "readable terminfo file or directory",
          "remedy": "check that $TERMINFO points to a readable directory",
          "fields": [
            "TERMINFO",
            "TERMINFO_DIRS entry"
          ]
        }
      ],
      "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": "toolkit-codex.XkpON9",
        "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.139.0",
        "check for update on startup": "true",
        "last checked at": "2026-06-12T10:42:58.218082577Z",
        "latest version": "0.139.0",
        "latest version status": "current version is not older",
        "update action": "manual or unknown",
        "version cache": "/home/leo/.local/state/toolkit/personal/codex/version.json"
      },
      "remediation": null,
      "durationMs": 111
    }
  }
}

What issue are you seeing?

Codex turns become extremely slow when tool_suggest is enabled. The delay occurs before the model response starts, making the CLI appear stuck.

What steps can reproduce the bug?

Run this script

#!/usr/bin/env bash
set -eu

BIN=${BIN:-/nix/store/iwbj16rn42b9g5w0rkvc8w7hq1pld26h-codex-0.139.0/bin/codex}
export CODEX_HOME=${CODEX_HOME:-/home/leo/.local/state/toolkit/personal/codex}

PROMPT='Reply with exactly OK.'
WORKDIR=${WORKDIR:-$(mktemp -d)}

run() {
  label=$1
  shift

  printf '\n== %s ==\n' "$label"
  start=$SECONDS

  "$BIN" \
    "$@" \
    exec --skip-git-repo-check \
    -C "$WORKDIR" \
    "$PROMPT"

  printf 'elapsed_seconds=%s\n' "$((SECONDS - start))"
}

run "tool_suggest enabled" --enable apps --enable plugins --enable tool_suggest
run "tool_suggest disabled" --enable apps --enable plugins --disable tool_suggest

Output:

== tool_suggest enabled ==
OpenAI Codex v0.139.0
--------
workdir: /tmp/tmp.GXQTctbNWm
model: gpt-5.5
provider: openai
approval: never
sandbox: workspace-write [workdir, /tmp, $TMPDIR]
reasoning effort: high
reasoning summaries: none
session id: 019ebca2-cf10-7271-89fc-2906ebac1332
--------
user
Reply with exactly OK.
codex
OK
tokens used
1,744
elapsed_seconds=9

== tool_suggest disabled ==
OpenAI Codex v0.139.0
--------
workdir: /tmp/tmp.GXQTctbNWm
model: gpt-5.5
provider: openai
approval: never
sandbox: workspace-write [workdir, /tmp, $TMPDIR]
reasoning effort: high
reasoning summaries: none
session id: 019ebca2-f231-7d02-b365-066f9bfe31e4
--------
user
Reply with exactly OK.
codex
OK
tokens used
1,962
elapsed_seconds=2

What is the expected behavior?

_No response_

Additional information

The delay happens before the model request starts.

Tracing showed tool_suggest reading local curated plugin details/skills for 173 plugins, while only 14 suggestions were returned.

A local patch that skipped non-fallback plugin detail reads when no app connectors were configured reduced the run from ~21s to ~7s. Disabling tool_suggest removes the delay.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗