From 254267afa3511a63ca5f4adb98149c36a0a27520 Mon Sep 17 00:00:00 2001 From: Apple Date: Fri, 5 Dec 2025 03:25:30 -0800 Subject: [PATCH] fix: Add timeout to agents API fetch to prevent hanging --- apps/web/src/app/api/agents/list/route.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/web/src/app/api/agents/list/route.ts b/apps/web/src/app/api/agents/list/route.ts index 642aa0bc..8d202e54 100644 --- a/apps/web/src/app/api/agents/list/route.ts +++ b/apps/web/src/app/api/agents/list/route.ts @@ -21,6 +21,8 @@ export async function GET(req: NextRequest) { 'Content-Type': 'application/json', }, cache: 'no-store', + // Add timeout to prevent hanging + signal: AbortSignal.timeout(10000), // 10 seconds }); if (!response.ok) {