fix(voice): preserve interrupted searches and report used sources
Retain and revalidate interrupted searches, resolve abandoned provider calls, recover invalid source reports privately, and expose only declared sources. Improve Persian delivery and provider event replay capacity. Include regression coverage and contract updates.
This commit is contained in:
+1
-1
@@ -210,7 +210,7 @@ async def handle_stream_websocket(websocket, session_id, auth_service, lifecycle
|
||||
else:
|
||||
if event['type'] == 'sources':
|
||||
for response, call in runtime.calls.values():
|
||||
if call['ref'] == event['tool_call_id']:
|
||||
if response.turn.ref == event['turn_ref'] and call['ref'] == event['tool_call_id']:
|
||||
await store.delivery(call, response.turn.execution)
|
||||
if event['type'] == 'turn_interrupted':
|
||||
await blocking(lifecycle_service.cancel_tools, user, session_id, event['cancelled_tool_call_ids'])
|
||||
|
||||
Reference in New Issue
Block a user