From 5f9d05135d468a31a55f0776292441cb6a4edcdd Mon Sep 17 00:00:00 2001 From: gongzhiyong Date: Mon, 13 Apr 2026 00:28:04 +0800 Subject: [PATCH] fix(searcher): remove card_id from search-result ui.push props MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SearchResultProps does not declare a card_id field, so passing it caused TS2769 type errors. search-result cards do not need loading→done dedup (each google_search/web_search_deep call produces a complete result in one push), so the card_id and associated local variables are unnecessary. Co-Authored-By: Claude Sonnet 4.6 --- langgraph/src/agent/searcher/nodes/tool-executor.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/langgraph/src/agent/searcher/nodes/tool-executor.ts b/langgraph/src/agent/searcher/nodes/tool-executor.ts index 342a12d..f816cd0 100644 --- a/langgraph/src/agent/searcher/nodes/tool-executor.ts +++ b/langgraph/src/agent/searcher/nodes/tool-executor.ts @@ -59,7 +59,6 @@ export async function toolExecutorNode( switch (name) { case "google_search": { const parsed = googleSearchSchema.parse(args); - const googleCardId = `google-search-${tc.id}`; let results: Array<{ title: string; url: string; snippet: string }>; let knowledgeGraph: { title: string; description: string } | undefined; let fallbackUsed = false; @@ -104,7 +103,6 @@ export async function toolExecutorNode( { name: "search-result", props: { - card_id: googleCardId, query: parsed.query, total: results.length, results, @@ -141,7 +139,6 @@ export async function toolExecutorNode( case "web_search_deep": { const parsed = webSearchDeepSchema.parse(args); - const deepCardId = `web-search-deep-${tc.id}`; let enriched: Array<{ title: string; url: string; snippet: string }>; let fallbackUsed = false; let readerAllFailed = false; @@ -205,7 +202,6 @@ export async function toolExecutorNode( { name: "search-result", props: { - card_id: deepCardId, query: parsed.query, total: enriched.length, results: enriched,