This commit is contained in:
Kevin
2026-04-28 10:41:48 +08:00
parent 482b016872
commit 15884bd68e
60 changed files with 2092 additions and 1994 deletions

View File

@@ -98,7 +98,18 @@ def build_container(
voice_confirmation=voice,
session_factory=sf,
)
voice_hub = VoiceTerminalHub(s)
voice_hub = VoiceTerminalHub(
s,
pending_head_fetcher=pipeline.get_pending_confirmation_for_client,
)
async def _on_pending_queue_advanced(surgery_id: str) -> None:
tid = camera_mgr.get_voice_terminal_id_if_active(surgery_id)
if tid:
voice_hub.schedule_notify_pending_head(tid, surgery_id)
voice.set_on_pending_queue_advanced(_on_pending_queue_advanced)
camera_mgr.set_voice_terminal_hub(voice_hub)
return AppContainer(
settings=s,
consumable_vision_algorithm_service=vision,