Skip to content

GPT-5.5 tool calls fail with "unsupported call: exec_commandexec_command" — model sends self-referential namespace on built-in tool calls #31665

Not planned

Description

@growthringsadvisory

Title

GPT-5.5 tool calls fail with unsupported call: exec_commandexec_command — model sends self-referential namespace on built-in tool calls

Environment

  • macOS, Apple Silicon
  • Codex CLI: 0.143.0 (Homebrew cask, /opt/homebrew/bin/codex)
  • Model affected: gpt-5.5
  • Known-working model: gpt-5.4
  • Reproduces in both Codex Desktop and codex exec

Problem

Every tool call GPT-5.5 makes is rejected by the local tool router:

codex_core::tools::router: error=unsupported call: exec_commandexec_command

GPT-5.5 retries indefinitely; every attempt fails identically. gpt-5.4 works with the identical binary, repo, and sandbox settings.

Minimal reproduction

codex exec -m gpt-5.5 --sandbox read-only "You must use the shell tool to run: pwd"

→ error=unsupported call: exec_commandexec_command, retried until exhausted.

codex exec -m gpt-5.4 --sandbox read-only "You must use the shell tool to run: pwd"

→ succeeds normally.

Root cause (confirmed via rollout logs + source trace)

I diffed the raw function_call items actually recorded in the local session rollout JSONL for a failing GPT-5.5 run against a working GPT-5.4 run (~/.codex/sessions/<date>/rollout-*.jsonl):

GPT-5.5 (failing):

"type":"function_call","name":"exec_command","namespace":"exec_command","arguments":"{...}"

GPT-5.4 (working):

"type":"function_call","name":"exec_command","arguments":"{...}"

(no namespace field at all)

GPT-5.5's Responses API output is attaching a self-referential namespace: "exec_command" to calls on the built-in exec_command tool. GPT-5.4 never sets this field for built-in tools.

Tracing what the client does with that field (at rust-v0.143.0):

  1. codex-rs/core/src/tools/router.rs (build_tool_call) takes the model's ResponseItem::FunctionCall { name, namespace, .. } and does ToolName::new(namespace, name) directly — no validation against what's actually registered.
  2. codex-rs/core/src/tools/registry.rs (dispatch_any_with_terminal_outcome → self.tool(&tool_name)) looks up the handler by an exact {name, namespace} match. The built-in shell tool is registered as ToolName::plain("exec_command") (namespace: None), so the incoming {name:"exec_command", namespace:Some("exec_command")} matches nothing and falls into the "unsupported call" branch.
  3. codex-rs/protocol/src/tool_name.rs, impl fmt::Display for ToolName:
    match &self.namespace {
        Some(namespace) => write!(f, "{namespace}{}", self.name),
        None => f.write_str(&self.name),
    }
    There's no separator between namespace and name, which is why the error text is the tool name glued to itself: exec_commandexec_command.

I also confirmed via diff (rust-v0.142.0...rust-v0.143.0) that registry.rs, router.rs, and tool_name.rs are unchanged between those two releases, and the namespace field already existed on ResponseItem::FunctionCall in 0.142.0. So this isn't a client-side regression in 0.143.0 — the trigger is server-side GPT-5.5 behavior, and the client has apparently never validated/sanitized an unrecognized namespace on a built-in tool call.

Two distinct bugs here

  1. (Likely server-side / model-behavior) GPT-5.5's Responses API attaches a spurious self-referential namespace to built-in (non-MCP) tool calls, which no other model does.
  2. (Client-side, codex-rs) build_tool_call / the tool registry have no fallback when a call's namespace doesn't match any registered namespace for that tool name — worth at least falling back to a name-only match for built-in tools, or logging a clear diagnostic instead of a silently-mangled error string. Separately, ToolName's Display impl should insert a separator (e.g. {namespace}.{name} or {namespace}/{name}) so error messages involving a namespaced tool are legible instead of concatenated.

Workaround

Force gpt-5.4:

codex -m gpt-5.4

or in ~/.codex/config.toml:

model = "gpt-5.4"

Related but not identical

Activity

  1. added
    bug
    CLI
    app
    exec
    tool-calls
    model-behavior
    on Jul 8, 2026
  2. growthringsadvisory commented on Jul 8, 2026

    @growthringsadvisory
    Author

    Thanks for the duplicate flags — confirming and adding what I've found since filing, in case it's useful for triage.

    Cross-referencing: #31609 is the same bug with the same error text. #31656 is valuable extra evidence — it shows this isn't exec_command-specific: on Codex App Remote SSH the same self-namespacing hits list_mcp_resources and list_mcp_resource_templates too (unsupported call: list_mcp_resourceslist_mcp_resources, etc.), which matches the client-side mechanism below (any built-in tool call is vulnerable, not just the shell tool). #31617 and #31611 independently report that downgrading Codex CLI fixes it, which I want to correct/refine below since I initially assumed a downgrade wouldn't help.

    Root cause (client-side mechanism, confirmed via source + my own rollout logs):

    Comparing a failing GPT-5.5 session against a working GPT-5.4 session in my local ~/.codex/sessions/**/rollout-*.jsonl, the raw function_call items differ like this:

    • GPT-5.5: "type":"function_call","name":"exec_command","namespace":"exec_command",...
    • GPT-5.4: "type":"function_call","name":"exec_command",... (no namespace field)

    GPT-5.5 is attaching a self-referential namespace (equal to the tool name) to built-in tool calls; GPT-5.4 never does. Tracing what Codex does with that:

    1. codex-rs/core/src/tools/router.rs (build_tool_call) builds ToolName::new(namespace, name) straight from the model's ResponseItem::FunctionCall, with no validation against what's actually registered.
    2. codex-rs/core/src/tools/registry.rs (self.tool(&tool_name)) does an exact {name, namespace} match. Built-in tools are registered as ToolName::plain(name) (namespace: None), so the incoming {name:"exec_command", namespace:Some("exec_command")} matches nothing → falls into the "unsupported call" branch.
    3. codex-rs/protocol/src/tool_name.rs's Display impl for ToolName does write!(f, "{namespace}{}", self.name) — no separator — which is why the error text is the tool name glued to itself.

    Correction on the regression window: I originally diffed rust-v0.142.0...rust-v0.143.0 and found registry.rs/tool_name.rs/router.rs unchanged, and concluded downgrading wouldn't help. That was wrong — I was diffing against the wrong baseline. #31617 downgraded to codex-cli 0.142.5 and #31611 downgraded to @openai/[email protected], both npm/version numbers that predate rust-v0.143.0. Diffing rust-v0.142.5...rust-v0.143.0 instead, codex-rs/core/src/tools/router.rs did change in that window (a TurnContext → StepContext refactor, plus CustomToolCall gaining namespace handling it didn't have before), alongside the "MCP tools now use tool search by default" feature landing in 0.143.0. I can't fully pin from client-side diffs alone whether it's that router refactor, the tool-search-default flip changing what's presented to the Responses API, or a GPT-5.5-side rollout coinciding with the same date — but empirically:

    I downgraded my own Homebrew install (macOS arm64) straight to the rust-v0.142.5 release binary (swapped /opt/homebrew/bin/codex to point at the rust-v0.142.5 codex-aarch64-apple-darwin asset, bypassing the cask) and re-ran the exact repro:

    codex exec -m gpt-5.5 --sandbox read-only "You must use the shell tool to run: pwd"
    

    This now succeeds — GPT-5.5 runs the shell tool correctly, no unsupported call error. So the downgrade reports in #31617/#31611 check out and are the best current workaround, better than pinning -m gpt-5.4 if you want GPT-5.5's quality with tool use.

    Suggested fix directions, independent of pinning down the exact server-side trigger:

    • Client: registry lookup should fall back to a plain (unnamespaced) match when the exact {name, namespace} lookup misses and the name matches a registered built-in tool — turns a guaranteed failure into a successful dispatch, and is safe since it only ever fires on a call that would otherwise hard-fail anyway.
    • Client: ToolName's Display should insert a separator between namespace and name regardless, so future instances of this class of error are legible instead of concatenated.
    • Worth checking whether the tool_search-default-on rollout in 0.143.0 ([codex] Use tool search for MCP tools by default #29486) is what's nudging GPT-5.5 into emitting namespaced calls for tools that were never registered under a namespace.

    Happy to help verify a fix against 0.143.0 + gpt-5.5 once one's up — my original detailed writeup with more session-log samples is above.

  3. rckmcnll commented on Jul 8, 2026

    @rckmcnll

    Same: Title: Agent shell calls fail with "unsupported call: exec_commandexec_command"

    Product: Codex
    Severity: Blocker — agent cannot execute any shell command

    Observed behavior:
    Every agent-initiated shell call, including pwd, fails before execution with:

    unsupported call: exec_commandexec_command

    Expected behavior:
    The shell tool should execute pwd and return the working directory.

    Important distinction:
    Running pwd through <user_shell_command> succeeds:
    Exit code: 0
    Output: /home/examiner/projects/get-lost-in-portland

    Troubleshooting completed:

    • Restarted Codex several times
    • Opened a new terminal window
    • Uninstalled and reinstalled Codex
    • Reproduces in fresh sessions

    This suggests tool registration or backend dispatch is combining the
    namespace/function name incorrectly.

    Environment:

    • Codex version: [paste version]
    • Codex surface: [CLI / desktop / VS Code]
    • OS and version: [paste]
    • Shell: bash
    • Model: [paste model]
    • Approximate occurrence time and timezone: [paste]
    • Account email: provide only through private OpenAI Support
  4. pzy19-prog commented on Jul 9, 2026

    @pzy19-prog

    I can independently reproduce this issue on Ubuntu under WSL.

    Environment

    • Codex CLI failing version: 0.143.0
    • Codex CLI working version after downgrade: 0.140.0
    • Install method: global npm package (@openai/codex)
    • Model: gpt-5.5
    • Reasoning effort: medium
    • Node.js: v22.22.1
    • npm: 10.9.4
    • Client: interactive Codex TUI
    • Working directory: /home/user/project

    Failure on 0.143.0

    In a fresh Codex session, I asked Codex to run only basic read-only commands:

    pwd
    git status --short --branch
    git rev-parse HEAD
    git rev-list --left-right --count origin/main...HEAD
    true

    The first captured rejected tool call was:

    • requested tool: exec_command
    • requested command:
    git status --short --branch && git rev-parse HEAD && git rev-list --left-right --count origin/main...HEAD
    • working directory: /home/user/project

    The raw rejection was:

    unsupported call: exec_commandexec_command
    

    The rejected call was also reported as:

    exec_command.exec_command
    

    Subsequent attempts with trivial commands such as:

    pwd
    git status --short --branch
    ls
    true

    were all rejected before the shell command actually ran.

    Fresh-session confirmation

    I then opened a completely new Codex session on 0.143.0 and repeated a minimal execution-tool smoke test.

    The new session also failed to execute the basic commands.

    So this was not limited to one corrupted conversation/thread.

    A/B downgrade test

    I downgraded only the Codex CLI package:

    npm install -g @openai/[email protected]

    Then I opened another fresh Codex session in the same environment and repeated:

    pwd
    git status --short --branch
    git rev-parse HEAD
    git rev-list --left-right --count origin/main...HEAD
    true

    All commands executed successfully.

    Observed successful behavior included:

    pwd
    /home/user/project
    
    git status --short --branch
    ## main...origin/main
    
    git rev-list --left-right --count origin/main...HEAD
    0    0
    

    and:

    true
    exit code 0
    

    Local A/B result

    Codex CLI 0.143.0 + GPT-5.5
    → tool execution fails
    → raw error: unsupported call: exec_commandexec_command
    
    Codex CLI 0.140.0 + GPT-5.5
    → same environment
    → fresh session
    → basic command execution works
    

    This looks like a regression affecting tool-call routing or tool-name construction rather than a shell, Git, repository, or command-specific failure.

    I have not attached auth files, local state databases, conversation history, or private repository contents. I can provide additional sanitized diagnostics if useful.

  5. rckmcnll commented on Jul 9, 2026

    @rckmcnll

    downgrade to 0.140.0 worked for me.

  6. yuanchangsai77 commented on Jul 9, 2026

    @yuanchangsai77

    I'm encountering the same issue in a local Codex CLI session.

    The command does not appear to reach the shell at all. Even simple commands such as pwd and ls fail before execution.

    Codex shows the tool call as:

    exec_command.exec_command
    

    With arguments similar to:

    {
      "cmd": "pwd",
      "workdir": "<project-directory>"
    }

    But the returned error is:

    unsupported call: exec_commandexec_command
    

    I also reproduced the same failure with commands such as:

    ls
    pwd && rg --files -g 'AGENTS.md' ...
    

    All of them fail with the same unsupported call: exec_commandexec_command error before the command is actually executed.

    This looks like a tool routing or tool-name serialization issue, where exec_command.exec_command is being collapsed or duplicated into exec_commandexec_command. It does not appear to be related to the shell command itself, project path, permissions, or proxy configuration, since no command reaches the terminal.

    Environment:

    Codex CLI: 0.143.0
    OS: Linux on WSL
    Model: GPT-5.5
    
  7. aNGeL4me commented on Jul 9, 2026

    @aNGeL4me

    I can confirm the same issue on my machine.

    Environment:

    • OS: Ubuntu 20.04 x86_64
    • Codex CLI: 0.143.0
    • Install method: npm global install
    • Auth mode: ChatGPT

    Minimal repro:

    codex -a never -s read-only exec --json --skip-git-repo-check -m gpt-5.5 -c 'model_reasoning_effort="high"' "You must use the shell tool to run: pwd"
    
    Observed:
    
    - router logs unsupported call: exec_commandexec_command
    - failing session records name="exec_command" and namespace="exec_command" on the built-in tool call
    - local failing sessions correlate with model=gpt-5.5, multi_agent_version=v2, comp_hash=3000
    - local working sessions with gpt-5.4 use name-only tool calls and work normally
    - --disable multi_agent did not change the outcome locally; reproduced sessions still recorded multi_agent_version=v2 and the same malformed tool call shape
    
    This does not look project-specific on my side. I reproduced it across multiple working directories.
  8. rymalia commented on Jul 9, 2026

    @rymalia

    Confirmed on macOS 26.5 arm64 with Codex CLI 0.143.0 installed globally
    through npm/NVM (Node 24.18.0, npm 11.18.0).

    Two fresh sessions failed before process creation. One rendered:

    unsupported call: exec_commandexec_command
    

    and the next rendered:

    unsupported call: exec_command
    

    Both pwd and a read-only sed command failed with no exit code. Restarting
    while remaining on 0.143.0 did not help. Downgrading only the CLI to 0.142.5
    immediately restored built-in command execution.

    Originally reported as #31740; closing that report as a duplicate.

  9. gruuprasad commented on Jul 9, 2026

    @gruuprasad

    Confirming and adding two data points not yet in this thread:

    1. Still broken on the latest alpha. Reproduced identically on 0.144.0-alpha.4 (not just 0.143.0), so whatever's in that alpha didn't touch this path.

    2. Not scoped to unified_exec. Ran with --disable unified_exec on gpt-5.5 — the malformed call just renames itself: unsupported call: shell_commandshell_command instead of exec_commandexec_command. Same self-referential-namespace shape, different built-in tool. So this isn't something users can dodge via feature flags; the router has no fallback for any built-in tool once namespace == name.

    3. Confirms the false-negative risk worth flagging loudly: I tested with a canary file (cat a file containing a random string only the shell could read). Under gpt-5.5 it failed 3x and correctly reported it couldn't verify the contents. But a plain pwd request under the same broken model returned the correct answer without ever executing anything — it inferred cwd from context already visible in the session banner. So affected users may not notice command execution is fully broken unless they test with something the model can't guess. Given @rymalia and @yuanchangsai77's reports above that downgrading the CLI (not just the model) to 0.142.5/0.140.0 restores execution while staying on gpt-5.5 — that seems like the most promising lead for a workaround that doesn't require giving up gpt-5.5, worth digging into what capability the newer CLI is advertising that the older one isn't (possibly the model only emits the malformed namespace when the client signals support for namespaced/nested tool calls).

    Env: Codex CLI 0.143.0 and 0.144.0-alpha.4, npm global install, Ubuntu 24.04 x86_64, sandbox_mode = "danger-full-access".

  10. 7 remaining items

  11. Echolonius commented on Jul 11, 2026

    @Echolonius

    The 0.142.5 → 0.143.0 trigger, pinned from source: gpt-5.5's model-catalog entry newly sets include_skills_usage_instructions: true, and the instructions it injects teach dotted-namespace tool addressing

    Building on @growthringsadvisory's trace (which pinned the dispatch mechanism and the regression window but left the trigger open between the router refactor, the tool-search flip, and a server-side rollout) — I diffed the window file-by-file and believe the trigger can be pinned to one model-catalog field.

    1. The dispatch path is byte-identical across the window — so the regression is in what the client sends, not how it dispatches.

    2. The only bundled model-catalog change for gpt-5.5 in this window is a single field. Diffing models-manager/models.json between the tags, the gpt-5.5 entry changes in exactly one way: include_skills_usage_instructions: (absent) → true. Cross-checks: gpt-5.4 has it false/absent (works); on current main, all three gpt-5.6-* models have it false — and none of the 5.6 reports show this particular failure — while gpt-5.5 still has it true.

    3. The field is brand-new in 0.143.0 — a 0.142.5 client cannot even parse it. include_skills_usage_instructions appears nowhere in the rust-v0.142.5 tree (not in models.json, not in protocol/src/openai_models.rs). So even if model info is refreshed from a remote catalog, downgraded clients are structurally immune. That makes every "downgrade fixes it" report (here, #31617, #31611, #31639) consistent with a client-shipped trigger, with no need to assume a coincident server-side model change.

    4. What the flag injects is instruction text that demonstrates dotted-namespace tool calls. When the flag is true, core/src/context/available_skills_instructions.rs appends SKILLS_HOW_TO_USE_WITH_ABSOLUTE_PATHS / ..._WITH_ALIASES to a developer-role context fragment. That text repeatedly addresses tools in namespace.name form: "must be accessed through skills.list and skills.read", "call skills.list with {"authority":{"kind":"orchestrator"}}", "pass its main_resource to skills.read". This is a new source of dotted tool addressing in the default context for gpt-5.5 sessions, introduced in exactly the failing window, gated to exactly the failing model.

    Putting it together: gpt-5.5 sessions on ≥0.143.0 receive instructions demonstrating namespace.name addressing; the model generalizes the convention to plain built-in tools and emits a self-referential namespace — visible as "namespace":"exec_command" in the rollout logs above, and literally rendered dotted as exec_command.exec_command in @pzy19-prog's report. The unchanged exact-match registry lookup then rejects the call, and the separator-less Display prints the glued exec_commandexec_command. #31656's list_mcp_resourceslist_mcp_resources is the same mechanism hitting another plain tool.

    Falsifiable predictions, checkable by anyone affected:

    • Failing gpt-5.5 sessions' rollout JSONLs should contain the skills-instructions block (the fragment with the skills.list / skills.read text); gpt-5.4 sessions on the same client should not.
    • The failure should not reproduce with gpt-5.6-sol/terra/luna on the same client (flag is false for those) — consistent with reports so far.

    Fix directions this supports (each independently sufficient):

    • Catalog: set include_skills_usage_instructions: false for gpt-5.5, or reword SKILLS_HOW_TO_USE_* so it stops demonstrating dotted addressing to models that over-generalize it. (The 5.6 models shipping with false suggests the per-model targeting is deliberate and cheap to revise.)
    • Client hardening, as proposed above: a plain-name fallback in the ToolRegistry lookup when the exact {name, namespace} lookup misses (only fires on calls that would otherwise hard-fail), plus a separator in ToolName's Display so future instances of this class stay legible. As of current main, the lookup is still exact-match-only and Display still concatenates without a separator.

    Caveat: this is static analysis over the tagged sources plus the logs already in this thread — I haven't run a live gpt-5.5 session. Happy to be corrected by anyone who can flip the flag locally and observe the behavior change.

  12. IsidoreSong commented on Jul 27, 2026

    @IsidoreSong

    I have a related but distinct Codex Desktop reproduction: reading a user-level
    skill can push the model away from available native codex_app.* task tools
    and toward generic MCP resource tools. The bad tool-selection pattern can then
    appear in another task after it reads the affected task.

    Environment

    • Windows Codex Desktop 26.721.4979.0
    • Bundled runtime 0.146.0-alpha.3.1
    • gpt-5.6-sol, high reasoning
    • Native codex_app task tools were present and worked in the same sessions.

    Observed failure modes

    After contamination, I observed three outcomes:

    1. Repeated read_mcp_resource / list_mcp_resources calls, even after
      explicit correction.
    2. The task becomes effectively stuck: cross-task messages do not go through
      because the model keeps selecting the wrong tool path.
    3. General task quality degrades: it follows instructions less reliably and
      becomes worse at distinguishing tool surfaces or recovering from errors.

    There is also a qualitative trigger-strength difference:

    • With a strong DISABLED / DO NOT USE warning, and when the skill is read
      only as non-authoritative evidence, Codex can sometimes recover native tool
      use.
    • When that warning is removed and the skill is treated as an important
      operating reference, the task commonly enters one of the three states above.

    Raw call difference

    Working:

    {
      "name": "read_thread",
      "namespace": "codex_app",
      "arguments": "{\"threadId\":\"<task-id>\",\"turnLimit\":12}"
    }

    Wrong call emitted shortly afterward:

    {
      "name": "read_mcp_resource",
      "arguments": "{\"threadId\":\"<task-id>\",\"turnLimit\":10}"
    }

    The wrong call has no namespace and retains read_thread-shaped arguments.
    The rollout therefore records the model selecting a different function; it is
    not the host translating a native call into MCP.

    Two-task sequence

    Persisted rollout JSONL shows:

    Task A 23:12:23  loads operator/SKILL.md
    Task A 23:12:48  codex_app.read_thread         works twice
    Task A 23:13:00  read_mcp_resource             wrong tool
    
    Task A 23:49:21  read_mcp_resource(Task B)
    Task A 23:49:34  read_mcp_resource(Task B)
    Task A 23:50:39  read_mcp_resource(Task B)
    
    Task B 23:53:52  codex_app.read_thread(Task A) works
    Task B 23:54:12  read_mcp_resource             wrong
    Task B 23:54:24  read_mcp_resource             wrong
    Task B 23:54:31  read_mcp_resource             wrong
    Task B 00:03:06  list_mcp_resources            wrong
    

    Correct native calls and wrong MCP calls coexist in the same tasks, so this is
    not explained by the native tools simply being absent.

    Difference from the existing namespace report

    The existing analysis in this issue already shows that skill-related
    instructions may bias namespace formatting. This reproduction adds a
    different failure shape:

    • the suspected trigger is a specific user-level skill body;
    • the model selects another valid built-in function instead of emitting
      namespace == name;
    • native and wrong tool families alternate in one task;
    • the same pattern is observed after another task reads the affected task.

    A fix that only normalizes self-referential namespaces would not handle
    read_mcp_resource, because it is a real registered function with the wrong
    semantics. This may also relate to #18233, where compaction temporarily clears
    a history-induced MCP tool-use failure.

    Why testing stopped

    I intended to continue a controlled warning/no-warning matrix, but the task
    preparing this report became contaminated as well. After loading the complete
    skill, its intended next operation was to wait for a background research
    agent; the emitted call was instead list_mcp_resources. A local
    PreToolUse hook blocked it.

    I stopped repeated testing to avoid creating more polluted tasks. The
    warning-strength behavior above is therefore an observed A/B pattern, not a
    completed statistical test matrix.

    The hook is only a mitigation: it can deny the wrong MCP call, but it cannot
    atomically replace it with codex_app.read_thread.

    Attachment

    The complete current operator/SKILL.md
    is provided separately. It now includes the DISABLED — DO NOT USE warning
    added after these failures; the triggering body remains present.

  13. IsidoreSong commented on Jul 27, 2026

    @IsidoreSong

    Follow-up clarification and broader reproduction:

    When I previously described calls as being "rerouted", I did not mean that
    the Codex App host received a correct call and rewrote it. The persisted call
    record shows that the model directly emitted the wrong function name.

    The problem also escaped the original codex_app task-management scenario:

    1. The intended operation was multi_agent_v1.wait_agent, to wait for a
      background research agent. The emitted call was instead:

      {"name":"list_mcp_resources","arguments":"{}"}
    2. During the GitHub-reporting workflow, the Browser plugin required its
      specific mcp__node_repl.js execution tool. One intended operation was to
      read the plugin's local file-upload documentation:

      nodeRepl.write(await agent.documentation.get("file-uploads"));

      The first attempt emitted list_mcp_resources instead. A later explicit
      mcp__node_repl.js call succeeded and returned the documentation.

    3. After that successful documentation read, the next browser-session steps
      should also have used the same specific mcp__node_repl.js tool. Three
      consecutive attempts instead emitted list_mcp_resources({}).

    All wrong calls were blocked by the local PreToolUse hook.

    This distinction matters because mcp__node_repl.js is itself a legitimate,
    specific MCP tool required by the Browser plugin. The failure was not simply
    "native App tool becomes MCP". It was a broader tool-selection collapse toward
    the generic MCP resource enumerator, replacing unrelated valid tools from
    multiple families:

    codex_app.read_thread
    multi_agent_v1.wait_agent
    mcp__node_repl.js
            ↓
    list_mcp_resources / read_mcp_resource
    

    This happened in the same reporting task after the full attached skill had
    been loaded. It strengthens the context-contamination hypothesis, while still
    not proving that the skill text is the sole cause.

  14. TYYearn commented on Aug 4, 2026

    @TYYearn

    Additional confirmed reproduction: gpt-5.6-terra

    I can confirm that the same self-referential namespace failure still reproduces on gpt-5.6-terra, while gpt-5.6-sol works normally in the same Windows Codex Desktop project/environment.

    Environment detail available from the bundled runtime:

    • Windows Codex Desktop
    • Bundled Codex runtime: codex-cli 0.146.0-alpha.9.2
    • Failing model: gpt-5.6-terra
    • Working control: gpt-5.6-sol

    The failed replay contains:

    {
      "type": "function_call",
      "name": "exec",
      "namespace": "exec",
      "arguments": "..."
    }

    The ordinary built-in exec tool is registered without a namespace. Because Codex resolves the full {namespace, name} pair, {namespace:"exec", name:"exec"} does not match the plain registered tool and falls through to the unsupported custom-tool-call path in registry.rs. The displayed error is:

    unsupported custom tool call: execexec
    

    The duplicated display text is consistent with ToolName rendering the namespace and name by direct concatenation without a separator.

    This was isolated by model switching: the project MCP configuration, permissions, sandbox, and workspace were unchanged; switching from Terra to SOL removed the failure. This extends the original report beyond GPT-5.5 and indicates that the same malformed built-in-tool namespace can still be emitted by the current Terra model path.

    A client-side defensive check for a self-referential namespace on an otherwise plain registered built-in tool, plus a separator in ToolName display output, would make this failure both recoverable and diagnosable.

  15. etraut-openai commented on Nov 29, 2026

    @etraut-openai
    Contributor

    (response from codex)

    Thanks for the rollout excerpts and the downgrade check. I’ve closed this as not planned.

    The GPT‑5.5 call in the report used exec_command as both the tool name and the namespace. Codex had advertised exec_command as a top-level tool. The error message joined the two fields together, which explains the confusing exec_commandexec_command text.

    I replayed the same call on CLI 0.142.5, 0.143.0, and 0.172.0. All three rejected it and ran pwd successfully when I omitted the namespace. That points to a difference in the calls Codex received. The replay doesn’t establish why the extra namespace appeared or whether it’s specific to GPT‑5.5.

    We won’t add a fallback that ignores an unknown namespace. The namespace is part of the tool’s identity, and dropping it could cause Codex to run a different tool than the one requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIappbugexecmodel-behaviortool-calls

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions