From f03721b6f01ed099b702009a4662fde0b4973d49 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 19 Feb 2026 02:19:08 +0800 Subject: [PATCH] fix(agent): increase smart auto timeout to avoid fallback summaries --- app/(chat)/api/chat/route.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/(chat)/api/chat/route.ts b/app/(chat)/api/chat/route.ts index 2014f206a..769de525a 100644 --- a/app/(chat)/api/chat/route.ts +++ b/app/(chat)/api/chat/route.ts @@ -1305,7 +1305,7 @@ let globalStreamContext: ResumableStreamContext | null = null; const inFlightChatRequests = new Map(); const IN_FLIGHT_REQUEST_TTL_MS = 5 * 60 * 1000; const DUPLICATE_REQUEST_WAIT_MS = 2 * 60 * 1000; -const SMART_AUTO_GRAPH_TIMEOUT_MS = 18000; +const SMART_AUTO_GRAPH_TIMEOUT_MS = 45000; const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); @@ -1812,7 +1812,7 @@ export async function POST(request: Request) { context: undefined, }), "fallbackAnalyzeIntent", - 8000, + 15000, ); if (rescueAnalysis.conversationalReply?.trim()) { smartAutoFriendlyMessage = rescueAnalysis.conversationalReply.trim(); @@ -1854,7 +1854,7 @@ export async function POST(request: Request) { context: typeof autoContext === "string" ? autoContext : undefined, }), "fallbackVisualSummary", - 8000, + 15000, ); if (summary?.trim()) { fallbackVisualSummary = summary.trim();