Skip to content

Codex saying it don't have tool access #35765

Description

@NikoPit

What version of Codex CLI is running?

codex-cli 0.144.4

What subscription do you have?

external

Which model were you using?

gpt-5.6-sol

What platform is your computer?

Linux 7.1.3 x86_64 unknown

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

ghostty

Codex doctor report

{
  "schemaVersion": 1,
  "generatedAt": "1785242337s since unix epoch",
  "overallStatus": "fail",
  "codexVersion": "0.144.4",
  "checks": {
    "app_server.status": {
      "id": "app_server.status",
      "category": "app-server",
      "status": "ok",
      "summary": "background server is not running",
      "details": {
        "control socket": "/home/elysia/.codex/app-server-control/app-server-control.sock",
        "daemon state dir": "/home/elysia/.codex/app-server-daemon",
        "mode": "ephemeral",
        "pid file": "/home/elysia/.codex/app-server-daemon/app-server.pid (missing)",
        "settings": "/home/elysia/.codex/app-server-daemon/settings.json (missing)",
        "status": "not running",
        "update-loop pid file": "/home/elysia/.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/elysia/.codex/auth.json",
        "auth storage mode": "File",
        "stored API key": "true",
        "stored ChatGPT tokens": "false",
        "stored agent identity": "false",
        "stored auth mode": "api_key"
      },
      "remediation": null,
      "durationMs": 0
    },
    "config.load": {
      "id": "config.load",
      "category": "config",
      "status": "ok",
      "summary": "config loaded",
      "details": {
        "CODEX_HOME": "/home/elysia/.codex",
        "config.toml": "/home/elysia/.codex/config.toml",
        "config.toml parse": "ok",
        "cwd": "/home/elysia/projects",
        "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, browser_use, browser_use_full_cdp_access, browser_use_external, computer_use, remote_plugin, plugin_sharing, image_generation, resize_all_images, skill_mcp_dependency_install, 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": "35",
        "log dir": "/home/elysia/.codex/log",
        "mcp servers": "4",
        "model": "gpt-5.6-sol",
        "model provider": "e-flowcode",
        "sqlite home": "/home/elysia/.codex"
      },
      "remediation": null,
      "durationMs": 0
    },
    "git.environment": {
      "id": "git.environment",
      "category": "git",
      "status": "ok",
      "summary": "git version 2.54.0",
      "details": {
        "PATH git #1": "/etc/profiles/per-user/elysia/bin/git",
        "PATH git entries": "1",
        "git build options": "git version 2.54.0; cpu: x86_64; no commit associated with this build; sizeof-long: 8; sizeof-size_t: 8; shell-path: /nix/store/v8llyqw71lygr2llhmcc8ya5bdlzq45v-bash-5.3p9/bin/bash; rust: enabled; gettext: enabled; libcurl: 8.21.0; OpenSSL: OpenSSL 3.6.3 9 Jun 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/1k2lblqlj39azh6wn1sffa2869vrg3mr-git-2.54.0/libexec/git-core",
        "git version": "git version 2.54.0",
        "repo detected": "false",
        "selected git": "/etc/profiles/per-user/elysia/bin/git"
      },
      "remediation": null,
      "durationMs": 22
    },
    "installation": {
      "id": "installation",
      "category": "install",
      "status": "ok",
      "summary": "installation looks consistent",
      "details": {
        "PATH codex #1": "/etc/profiles/per-user/elysia/bin/codex",
        "current executable": "/nix/store/6sjx2737hdrpljxwgw7h0y0icl2vjrg6-codex-0.144.4/bin/.codex-wrapped",
        "install context": "other",
        "managed by bun": "false",
        "managed by npm": "false",
        "managed by pnpm": "false",
        "managed package root": "not set"
      },
      "remediation": null,
      "durationMs": 0
    },
    "mcp.config": {
      "id": "mcp.config",
      "category": "mcp",
      "status": "ok",
      "summary": "MCP configuration is locally consistent",
      "details": {
        "configured servers": "4",
        "disabled servers": "0",
        "stdio servers": "4"
      },
      "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": {
        "e-flowcode API base URL": "https://e-flowcode.cc/v1 reachable (HTTP 404)",
        "e-flowcode API route probe": "https://e-flowcode.cc/v1/<redacted> route exists (HTTP 401)",
        "reachability mode": "API key auth"
      },
      "remediation": null,
      "durationMs": 822
    },
    "network.websocket_reachability": {
      "id": "network.websocket_reachability",
      "category": "websocket",
      "status": "ok",
      "summary": "Responses WebSocket is not enabled for the active provider",
      "details": {
        "model provider": "e-flowcode",
        "provider name": "e-flowcode",
        "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 local build on linux-x86_64",
      "details": {
        "commit": "unknown",
        "current executable": "/nix/store/6sjx2737hdrpljxwgw7h0y0icl2vjrg6-codex-0.144.4/bin/.codex-wrapped",
        "install method": "other",
        "platform": "linux-x86_64",
        "version": "0.144.4"
      },
      "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": 1
    },
    "sandbox.helpers": {
      "id": "sandbox.helpers",
      "category": "sandbox",
      "status": "ok",
      "summary": "sandbox configuration is readable",
      "details": {
        "approval policy": "Never",
        "codex-linux-sandbox helper": "/home/elysia/.codex/tmp/arg0/codex-arg0xsdfB2/codex-linux-sandbox",
        "execve wrapper helper": "/home/elysia/.codex/tmp/arg0/codex-arg0xsdfB2/codex-execve-wrapper",
        "filesystem sandbox": "unrestricted",
        "network sandbox": "enabled"
      },
      "remediation": null,
      "durationMs": 0
    },
    "state.paths": {
      "id": "state.paths",
      "category": "state",
      "status": "ok",
      "summary": "state paths and databases are inspectable",
      "details": {
        "CODEX_HOME": "/home/elysia/.codex (dir)",
        "active rollout files": "11 files, 2172051 total bytes, 197459 average bytes",
        "archived rollout files": "0 files, 0 total bytes, 0 average bytes",
        "goals DB": "/home/elysia/.codex/goals_1.sqlite (file)",
        "goals DB integrity": "ok",
        "log DB": "/home/elysia/.codex/logs_2.sqlite (file)",
        "log DB integrity": "ok",
        "log dir": "/home/elysia/.codex/log (missing)",
        "memories DB": "/home/elysia/.codex/memories_1.sqlite (file)",
        "memories DB integrity": "ok",
        "sqlite home": "/home/elysia/.codex (dir)",
        "state DB": "/home/elysia/.codex/state_5.sqlite (file)",
        "state DB integrity": "ok"
      },
      "remediation": null,
      "durationMs": 121
    },
    "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": "e-flowcode",
        "rollout DB active files": "11",
        "rollout DB active rows": "11",
        "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": "e-flowcode=11",
        "rollout DB rows": "11",
        "rollout DB scan cap reached": "false",
        "rollout DB scan errors": "0",
        "rollout DB sources": "cli=11",
        "rollout DB stale rows": "0"
      },
      "remediation": null,
      "durationMs": 40
    },
    "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": 0
    },
    "terminal.env": {
      "id": "terminal.env",
      "category": "terminal",
      "status": "fail",
      "summary": "TERMINFO unreadable - terminal capabilities are unknown",
      "details": {
        "COLORTERM": "truecolor",
        "DISPLAY": "present",
        "TERMINFO": "/nix/store/znqms41g7lgxzxmgcvah7jvv5kcc51v0-ghostty-1.3.1/share/terminfo (dir)",
        "TERMINFO_DIRS entry": [
          "/home/elysia/.nix-profile/share/terminfo (missing)",
          "/nix/profile/share/terminfo (missing)",
          "/home/elysia/.local/state/nix/profile/share/terminfo (missing)",
          "/etc/profiles/per-user/elysia/share/terminfo (dir)",
          "/nix/var/nix/profiles/default/share/terminfo (missing)",
          "/run/current-system/sw/share/terminfo (dir)"
        ],
        "TERM_PROGRAM": "ghostty",
        "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": "Ghostty",
        "terminal size": "111x53",
        "terminal version": "1.3.1"
      },
      "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": 7
    },
    "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": "projects",
        "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.145.0",
        "check for update on startup": "true",
        "last checked at": "2026-07-28T00:57:15.128035054Z",
        "latest version": "0.145.0",
        "latest version status": "newer version is available",
        "update action": "manual or unknown",
        "version cache": "/home/elysia/.codex/version.json"
      },
      "remediation": null,
      "durationMs": 130
    }
  }
}

What issue are you seeing?

When asking codex to do something, sometimes (completely randomly) it might say that it doesn't have tool access. When i force him to do something like running the command pwd, it will just return. Like for example:

User: please run the command pwd

Codex: i don't have tool access.

User: Do it anyways.

Codex: Ok, i will run the command `pwd` now.

[Session returns to user even when codex should've ran pwd]

User: (Sesssion returned to user)

What steps can reproduce the bug?

Don't have a stable way of reproducing it yet

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't workingcustom-modelIssues related to custom model providers (including local models)model-behaviorIssues related to behaviors exhibited by the modeltool-callsIssues related to tool calling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions