Codex ignores an explicit known-good tool entrypoint and invents incompatible API calls

Open 💬 2 comments Opened Aug 2, 2026 by luxueliu
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What issue are you seeing?

A repository's durable instructions specified one exact local executable wrapper as the only supported entrypoint for calling a local OpenAI-compatible model gateway. The wrapper was already known to work because another installed coding agent used the same provider configuration successfully.

Codex repeatedly bypassed that explicit entrypoint and improvised alternate request code, parameters, and result parsing.

Observed failure modes included:

  • sending an unsupported explicit temperature to one model, causing HTTP 400;
  • reading only message.content while a provider returned the useful answer in reasoning_content, causing a false "empty response";
  • sending an oversized review packet that timed out after 300 seconds;
  • treating an HTTP/process-level success as a completed review even when no usable answer or artifact existed;
  • continuing to reason about a special Codex-specific protocol after the user explicitly instructed it to copy the known-good provider path.

After the shared wrapper was corrected, direct calls through that wrapper succeeded for all three target models, but another Codex task still failed to reliably choose and execute the canonical entrypoint.

Steps to reproduce

  1. Provide a known-good local wrapper command for an OpenAI-compatible endpoint.
  2. Put an explicit instruction in AGENTS.md that Codex must use only that command and must not create a new dispatcher or client.
  3. Ask Codex to send a small review task through the wrapper.
  4. In affected runs, Codex reasons about or constructs a different invocation path instead of executing the supplied command.

Expected behavior

When the user supplies a precise, executable, known-good tool entrypoint, Codex should call it as written. It should not invent provider-specific parameters or a parallel protocol unless the supplied command actually fails and the user authorizes debugging.

Tool success should also require usable response content/artifacts, not merely HTTP 200 or process exit 0.

Environment:

  • OpenAI Codex Desktop 26.727.6591.0 (x64 MSIX)
  • Windows 10.0.26200.8875
  • Model observed: GPT-5.6 Sol

No private workspace files or transcripts are attached.

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 26 days ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #35719

Powered by Codex Action

xiedongqingxiao-ops · 26 days ago

Exact measured incident impact

This symptom occurred within the same August 1–2 incident documented in #34477 and #36555. The figures below describe shared incident severity; they are not all attributed exclusively to this one symptom.

Local rollout reconstruction, using each rollout's final payload.info.total_token_usage.total_tokens and the root/child parent_thread_id graph, produced:

  • Initial task family: 11 sessions, 420,775,426 tokens
  • Reopened task family: 5 sessions, 61,684,846 tokens
  • Recovery/harness task families: 76,001,530 tokens
  • Original incident total: 558,461,802 tokens
  • Later failed reattempt: 25,544,534 tokens
  • Cumulative affected/recovery total: 584,006,336 tokens
  • User-visible loss during the original incident: approximately 80% of the weekly allowance (about 60% in the first run and another 20% after reopening)
  • At least one no-progress segment ran for approximately 35 minutes before manual interruption
  • Original implementation outcome: zero planned features completed

Private project transcripts are not attached. Redacted event counts and relevant log-field samples can be supplied if maintainers request them.