From 712dba45e7deaf4e8b82b92b50feff55469c8e4f Mon Sep 17 00:00:00 2001 From: coso Date: Wed, 18 Mar 2026 10:56:41 +0800 Subject: [PATCH] fix: resolve v0.90.0 frontend build errors --- src/components/agent/chat/index.tsx | 5 +++-- src/lib/api/agentRuntime.ts | 2 +- src/lib/api/memory.ts | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/agent/chat/index.tsx b/src/components/agent/chat/index.tsx index fa2ee6344..13585f3e1 100644 --- a/src/components/agent/chat/index.tsx +++ b/src/components/agent/chat/index.tsx @@ -5046,9 +5046,10 @@ export function AgentChatPage({ }, }); logAgentDebug("AgentChatPage", "switchTopic.decision", { - createdDefault: decision.createdDefault, + createdDefault: + decision.status === "ok" ? decision.createdDefault : false, decisionStatus: decision.status, - projectId: decision.status === "ready" ? decision.projectId : null, + projectId: decision.status === "ok" ? decision.projectId : null, topicId, }); diff --git a/src/lib/api/agentRuntime.ts b/src/lib/api/agentRuntime.ts index a8e0d813d..00dce5c40 100644 --- a/src/lib/api/agentRuntime.ts +++ b/src/lib/api/agentRuntime.ts @@ -224,7 +224,7 @@ export async function createAgentRuntimeSession( export async function listAgentRuntimeSessions(): Promise { const startedAt = Date.now(); let settled = false; - const slowTimer: ReturnType | null = + const slowTimer: number | null = typeof window !== "undefined" ? window.setTimeout(() => { if (settled) { diff --git a/src/lib/api/memory.ts b/src/lib/api/memory.ts index 333508346..eacff2fdd 100644 --- a/src/lib/api/memory.ts +++ b/src/lib/api/memory.ts @@ -264,7 +264,7 @@ export async function getProjectMemory( ): Promise { const startedAt = Date.now(); let settled = false; - const slowTimer: ReturnType | null = + const slowTimer: number | null = typeof window !== "undefined" ? window.setTimeout(() => { if (settled) {