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) {