Repository navigation
fix(claude): clarify how the Tool Search override is cleared - #10225
Merged
YUZHEthefool merged 1 commit intoDec 3, 2026
Merged
YUZHEthefool merged 1 commit into
YUZHEthefool merged 1 commit into
Conversation
Collaborator
|
核查确认本 PR 对应真实用户反馈 Issue #9442(此前 Claude Code 合入前请顺便确认一个小细节:开关标题由「启用 Tool Search」调整为「显式启用 Tool Search」(英文由 本 PR 维持开放状态,Ready for merge review。感谢修正! |
Contributor
Author
|
@funkpopo,核对了当前 main 里这个开关的读写逻辑。勾上会给这张供应商卡写入 所以这里保留「显式启用 Tool Search」和 |
Collaborator
|
LGTM,感谢修复! 已在 Claude 供应商表单中实测确认:文案已更新为「显式启用 Tool Search」,帮助说明准确区分了勾选写入 "true"、取消勾选删除该项恢复默认以及在 JSON env 中设为 "false" 显式关闭三种行为;多语言与手册同步完整,且与 #10188 零冲突。可以直接合入。 |
funkpopo
approved these changes
Dec 3, 2026
YUZHEthefool
approved these changes
Dec 3, 2026
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.
Human Note / 本人说明
提交者原话:「我从很久很久之前就在使用 CC Switch,很想为 CC Switch 做贡献。」
#9442 中维护者指出的问题:「开关下面「第三方地址默认关闭」的说明也已经过时了」。
取消勾选之后,Tool Search 到底关了没(Codex 受托说明)
在 Claude 供应商编辑页点一下开关,JSON 里会多出
"ENABLE_TOOL_SEARCH": "true"。再点一下,这行就消失了。旧提示却写着“第三方地址默认关闭”,容易让人以为已经为这张卡强制关闭了 Tool Search。这里把开关改名为“显式启用 Tool Search”。提示讲清楚取消勾选会恢复 Claude Code 的默认行为。要明确关闭,可以在下方 JSON 的
env中将ENABLE_TOOL_SEARCH设为字符串"false"。八种语言的开关和提示、三份手册的开关说明一起更新,翻译由 AI 辅助完成。Claude Code 从 v2.1.304 起调整了使用网关时的默认行为。这里修的是设置页的错误提示。#9442 里的 DeepSeek 422 和请求兼容性继续在原 issue 跟踪。Claude Code 的网关与工具搜索说明
Refs #9442
实际核对
在中文组件中打开帮助,逐次检查勾选、取消勾选和手填
"false"。写入、移除和明确关闭三种状态与说明一致,旁边原有的环境变量也保留了。编辑器 8 项、语言一致性 45 项和这次的中文交互验证通过。
pnpm typecheck、pnpm format:check、pnpm build:renderer均通过。