Repository navigation
Conversation
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
approved these changes
Nov 26, 2026
Robert0622
left a comment
Collaborator
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_searchtool in/v1/responsesrequests. 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 with400 responses_feature_not_supported, so every SOP node behind such a gateway failed deterministically — surfaced misleadingly asexit status 1.Run nodes route tools through MCP only, so the builtin should never be advertised there.
Change
internal/repo/catalog.go— add-c web_search="disabled"to the built-in Codex executor args, matching the chat path (with a [Bug]: Codex executor always advertises its builtin web_search, so every SOP node 400s behind an OpenAI-compatible gateway #1313 comment).internal/runtime/cli_live_config.go— mirror the same flag in the live CLI smoke argv.internal/repo/builtin_codex_websearch_test.go(new) — guard test ensuring the flag and its-cprefix stay present.Verification (Linux/amd64, Docker
python:3.12)go vetoninternal/repo/...andinternal/runtime/...: clean;clilive-tagged vet, cmd cross-build andscripts/check-public.pypass.Scope / notes
Related
Part of #1313; does not close the issue.