From 2e2b26ecc8be97ad87f563bca9458a88e7f0179b Mon Sep 17 00:00:00 2001 From: ddCat <2695092045@qq.com> Date: Thu, 20 Aug 2026 13:46:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(canvas):=20=E6=9E=84=E5=BB=BA=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=20-=20=E4=BF=AE=E5=A4=8D=20Agent=20=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E9=94=AE=E4=B8=8E=E9=80=80=E5=87=BA=E4=BC=9A=E8=AF=9D=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/canvas/canvas-assistant-panel.tsx | 2 +- web/src/hooks/use-workspace-logout.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/canvas/canvas-assistant-panel.tsx b/web/src/components/canvas/canvas-assistant-panel.tsx index 6c045a8f2..cc1734227 100644 --- a/web/src/components/canvas/canvas-assistant-panel.tsx +++ b/web/src/components/canvas/canvas-assistant-panel.tsx @@ -1578,7 +1578,7 @@ function toolCallToResponseInput(call: ResponseToolCall): ResponseInputMessage { return { type: "function_call", call_id: call.id, name: call.function.name, arguments: call.function.arguments, ...(call.thoughtSignature ? { thoughtSignature: call.thoughtSignature } : {}) }; } -async function requestOnlineAgentModel(config: AiConfig, messages: ResponseInputMessage[], toolChoice: "auto" | "required", prompt: string, onDelta: (text: string) => void, promptCacheKey: string) { +async function requestOnlineAgentModel(config: AiConfig, messages: ResponseInputMessage[], toolChoice: "auto" | "required", prompt: string, onDelta: (text: string) => void, promptCacheKey?: string) { if (logicalModelIDForConfig(config)) { const result = await runBackendToolGenerationTask({ prompt, config, messages, tools: ONLINE_AGENT_TOOLS, toolChoice }); if (result.content.trim()) onDelta(result.content); diff --git a/web/src/hooks/use-workspace-logout.ts b/web/src/hooks/use-workspace-logout.ts index f2916de03..c1b156df9 100644 --- a/web/src/hooks/use-workspace-logout.ts +++ b/web/src/hooks/use-workspace-logout.ts @@ -19,7 +19,7 @@ export function useWorkspaceLogout() { setLoggingOut(true); try { await logout(); - await applyUserSession({ user: null, systemChannels: [] }); + await applyUserSession({ user: null, logicalModels: [] }); message.success("已退出登录"); navigate("/login", { replace: true }); } catch (error) {