fix(agent): increase smart auto timeout to avoid fallback summaries
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-02-19 02:19:08 +08:00
parent 0f3b562dc7
commit f03721b6f0

View File

@ -1305,7 +1305,7 @@ let globalStreamContext: ResumableStreamContext | null = null;
const inFlightChatRequests = new Map<string, number>();
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();