Skip to content

fix(runtime): disable Codex builtin web_search in SOP executors - #1457

Open
wcy12378 wants to merge 1 commit into
Tencent:mainfrom
wcy12378:codex/workbuddy-codex-websearch
Open

wcy12378 wants to merge 1 commit into
Tencent:mainfrom
wcy12378:codex/workbuddy-codex-websearch

Conversation

@wcy12378

Copy link
Copy Markdown

fix(runtime): disable Codex builtin web_search in SOP executors

This is the #1313 slice: prevent deterministic SOP-node 400s when Codex runs through a gateway that does not support its builtin web_search tool.

Problem

The Codex CLI always advertises its builtin web_search tool in /v1/responses requests. The chat path already passes -c web_search="disabled", but the built-in executor used for runs/SOP nodes did not. OpenAI-compatible gateways fronting non-OpenAI providers reject the whole request with 400 responses_feature_not_supported, so every SOP node behind such a gateway failed deterministically — surfaced misleadingly as exit status 1.

Run nodes route tools through MCP only, so the builtin should never be advertised there.

Change

Verification (Linux/amd64, Docker python:3.12)

  • Guard test RED before the fix / PASS after.
  • go vet on internal/repo/... and internal/runtime/...: clean; clilive-tagged vet, cmd cross-build and scripts/check-public.py pass.
  • Full regressions: repo/runtime failure sets identical to the unmodified baseline; engine failures are a strict subset of baseline (no new failures) — all pre-existing environment cases.

Scope / notes

Related

Part of #1313; does not close the issue.

The Codex CLI always advertises its builtin web_search tool in /v1/responses
requests. The chat path already passes -c web_search="disabled", but the
built-in executor used for runs/SOP nodes did not. Gateways fronting non-OpenAI
providers reject the whole request with 400 responses_feature_not_supported,
so every SOP node behind such a gateway failed deterministically, masked as
'exit status 1' (Tencent#1313).

Run nodes route tools through MCP only, so the builtin must stay disabled.
Add the same flag to the built-in Codex executor and the live CLI smoke argv,
with a guard test against accidental removal.

Part of Tencent#1313.

@Robert0622 Robert0622 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review & Deploy Test: PASS ✅

Reviewed changes: Adds -c web_search="disabled" to the built-in Codex executor and live smoke test arguments, matching the chat paths. BuiltInExecutor is read from code (not persisted) so existing deployments pick it up immediately.

Minor note (non-blocking):

  • P3: SOP nodes on OpenAI-native setups can no longer use Codex's built-in web search — intentional, but worth a changelog entry.

loopforge-pr-review:05d74f732d4cb28bf2411d556acf143e7a535f36

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants