修复 Custom Responses 新任务缺失 Web Search / Restore Web Search for custom Responses tasks#1556
Open
Yuimi-chaya wants to merge 1 commit into
Open
修复 Custom Responses 新任务缺失 Web Search / Restore Web Search for custom Responses tasks#1556Yuimi-chaya wants to merge 1 commit into
Yuimi-chaya wants to merge 1 commit into
Conversation
中文:新版 Codex CLI 在 use_responses_lite=true 时不注册托管 web_search,而 API Key/第三方 Responses 场景通常没有对应的 web.run executor,导致模型元数据明明声明支持搜索,新任务仍完全没有联网工具。Codex++ 生成的第三方 Responses catalog 现在使用标准 Responses;外部 Lite catalog 会复制为管理副本,原文件不被修改,同时兼容 TOML 单引号 Windows 绝对路径。 English: New Codex CLI builds omit hosted web_search when use_responses_lite=true, while API-key and third-party Responses setups usually do not provide the separate web.run executor. Codex++ generated provider catalogs now use standard Responses. External Lite catalogs are copied into a managed compatible catalog without modifying the source, including TOML literal-string absolute Windows paths.
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.
中文
问题与影响
Codex App
26.715.2305.0内置的 Codex CLI0.144.1开始实际遵循 GPT-5.6 catalog 中的use_responses_lite=true。在 Responses Lite 模式下,Codex 不会注册托管的web_search,而是依赖另一套独立的web.runexecutor。这对官方运行环境可能成立,但 Codex++ 的主要用户场景是使用第三方 URL 与 API Key 接入标准 Responses API。这类供应商通常支持 OpenAI 托管 Web Search,却没有 Codex 内部的
web.runexecutor。最终会出现:supports_search_tool=true;web_search工具。这是新版 App/CLI 更新带来的静默能力回归。请求本身不会明显报错,用户只会发现模型突然无法联网,因此很容易被误判为供应商、模型或 Key 的问题。
修复方式
Codex++ 为第三方供应商生成的模型 catalog 强制使用标准 Responses:
use_responses_lite=false。保留
supports_search_tool和web_search_tool_type等搜索元数据。当用户已经配置外部 Lite catalog 时,不原地修改用户文件;复制为
model-catalogs/<profile>.json管理副本,只在副本中关闭 Lite,并更新当前 profile 指针。仅对自定义供应商且
wire_api="responses"的配置执行迁移;官方模型和官方登录路径保持不变。同时兼容 TOML 双引号基础字符串与单引号字面量字符串。后者对 Windows 绝对路径尤其重要,例如:
为什么不能只修改原 catalog
外部 catalog 可能由用户、其他工具或 Codex App 自身维护。原地修改会破坏所有权边界,也可能在下次更新时被覆盖。本 PR 使用 Codex++ 管理副本,使迁移可回滚、按供应商隔离,并保留原始文件作为来源。
验证
cargo fmt --all -- --checkgit diff --checkcargo test -p codex-plus-core --test model_suffix -j 2:14/14cargo test -p codex-plus-core --test relay_config -j 2:102/10226.715.2305.0的 API Key / Custom Responses 真人环境验证:重新启动并创建新任务后,联网工具成功恢复并暴露。希望尽快合并。若不处理,使用第三方 Responses API 的用户会在新版 App 中静默失去 Web Search,即使供应商和模型本身完全支持联网。
English
Problem and impact
The Codex CLI
0.144.1bundled with Codex App26.715.2305.0now honorsuse_responses_lite=truefrom the GPT-5.6 catalog. In Responses Lite mode, Codex does not register hostedweb_search; it expects a separate internalweb.runexecutor instead.That assumption may hold in the official runtime, but the primary Codex++ use case is connecting to a third-party URL with an API key through the standard Responses API. These providers can support hosted OpenAI Web Search while not providing Codex's internal
web.runexecutor. The result is:supports_search_tool=true;web_searchtool at all.This is a silent capability regression introduced by the newer App/CLI behavior. Requests do not necessarily fail with an obvious error, so users can easily misdiagnose the provider, model, or API key.
Fix
use_responses_lite=false.supports_search_toolandweb_search_tool_typeis retained.model-catalogs/<profile>.json, disables Lite only in that copy, and updates the active profile pointer.wire_api="responses"; official models and official-login behavior remain unchanged.Why not edit the original catalog
An external catalog may be owned by the user, another tool, or the Codex App. Editing it in place would violate that ownership boundary and could be overwritten by a later update. A Codex++ managed copy keeps the migration reversible and isolated per provider while preserving the original source file.
Validation
cargo fmt --all -- --checkgit diff --checkcargo test -p codex-plus-core --test model_suffix -j 2:14/14cargo test -p codex-plus-core --test relay_config -j 2:102/10226.715.2305.0with an API-key Custom Responses provider: after restart, a new task exposed the browsing tool again.An expedited merge would prevent third-party Responses users from silently losing Web Search on the newer Codex App even when their provider and model fully support it.