mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 22:35:51 +00:00
docs: 添加 ToolSearch 设计指南 + 禁用 turn-zero 工具推荐弹窗
- 新增 docs/design/tool-search-design-guide.md,涵盖架构、搜索算法、执行管道、演进历史 - 禁用 getTurnZeroSearchExtraToolsPrefetch,消除用户输入时的频繁弹窗 - inter-turn 发现机制保持不变 Co-Authored-By: glm-5-turbo <zai-org@claude-code-best.win>
This commit is contained in:
@@ -2942,7 +2942,7 @@ async function run(): Promise<CommanderCommand> {
|
||||
|
||||
// Prefetch MCP resources after trust dialog (this is where execution happens).
|
||||
// Interactive mode only: print mode defers connects until headlessStore exists
|
||||
// and pushes per-server (below), so ToolSearch's pending-client handling works
|
||||
// and pushes per-server (below), so SearchExtraTools's pending-client handling works
|
||||
// and one slow server doesn't block the batch.
|
||||
const localMcpPromise = isNonInteractiveSession
|
||||
? Promise.resolve({ clients: [], tools: [], commands: [] })
|
||||
@@ -3220,8 +3220,8 @@ async function run(): Promise<CommanderCommand> {
|
||||
setSdkBetas(filterAllowedSdkBetas(betas));
|
||||
|
||||
// Print-mode MCP: per-server incremental push into headlessStore.
|
||||
// Mirrors useManageMCPConnections — push pending first (so ToolSearch's
|
||||
// pending-check at ToolSearchTool.ts:334 sees them), then replace with
|
||||
// Mirrors useManageMCPConnections — push pending first (so SearchExtraTools's
|
||||
// pending-check at SearchExtraToolsTool.ts:334 sees them), then replace with
|
||||
// connected/failed as each server settles.
|
||||
const connectMcpBatch = (configs: Record<string, ScopedMcpServerConfig>, label: string): Promise<void> => {
|
||||
if (Object.keys(configs).length === 0) return Promise.resolve();
|
||||
|
||||
Reference in New Issue
Block a user