fix: harden realtime pipeline lifecycle

This commit is contained in:
Xin Wang
2026-09-07 08:27:52 +08:00
parent 43f2cc445e
commit 8025ed8aa0
12 changed files with 445 additions and 42 deletions
+4 -1
View File
@@ -145,7 +145,10 @@ async def http_offer(request: Request, payload: dict = Body(...)):
# Client capabilities have one canonical transport: the request header.
"client_tool_names": client_tool_names,
}
answer = await _handle_offer_payload(offer_payload, _http_peers)
try:
answer = await _handle_offer_payload(offer_payload, _http_peers)
except ValueError as exc:
raise HTTPException(status_code=400, detail=str(exc)) from exc
return answer