From 2a3440ae8e5f08a2f27179e85bfb92e0929c4ca6 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Tue, 11 Aug 2026 11:04:33 -0700 Subject: [PATCH] [eric] agents: drop the unreachable 504 branch; the manager already swallows an aux timeout and returns a fallback group meta --- backend/apps/agents/agents.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/backend/apps/agents/agents.py b/backend/apps/agents/agents.py index 704aee0a..03717b6c 100644 --- a/backend/apps/agents/agents.py +++ b/backend/apps/agents/agents.py @@ -268,12 +268,6 @@ async def generate_group_meta(session_id: str, body: dict): if not future.done(): future.set_result(result) return result - except asyncio.TimeoutError as e: - # A raw TimeoutError would bubble past the CORS layer as a headerless 500, which the - # renderer console mislabels as a CORS violation; a 504 keeps the failure legible. - if not future.done(): - future.set_exception(e) - raise HTTPException(status_code=504, detail="metadata generation timed out") from e except Exception as e: if not future.done(): future.set_exception(e)