fix: resolve agent crash and expand settings sheet
Rebuild & Deploy / rebuild (push) Successful in 55s
Rebuild & Deploy / rebuild (push) Successful in 55s
- Move task_dir assignment before VoiceAssistant construction in handle_job; UnboundLocalError was crashing every agent job before it joined the room, leaving the UI stuck on 'Opening a secure room' - Make settings sheet full-window height (100dvh) to match tasks panel
This commit is contained in:
1 parent
360e3276b0
commit
a66f09eb28
2 files changed
+7
-7
No files matched your search
+4
-3
@@ -652,6 +652,10 @@ async def handle_job(ctx: JobContext) -> None:
|
||||
return
|
||||
logger.info("Resolved voice user %s", user_id)
|
||||
|
||||
# Every room gets a private event directory. This prevents concurrent or
|
||||
# reconnecting sessions from consuming and announcing each other's tasks.
|
||||
task_dir = f"/tmp/tasks/{ctx.room.name}"
|
||||
|
||||
# Azure STT — streaming, reads AZURE_SPEECH_KEY / AZURE_SPEECH_REGION from env
|
||||
stt = azure.STT(
|
||||
speech_key=AZURE_KEY,
|
||||
@@ -799,9 +803,6 @@ async def handle_job(ctx: JobContext) -> None:
|
||||
logger.info("user state -> %s", ev.new_state)
|
||||
|
||||
# ── Background task events → UI and spoken result ──────────────────────
|
||||
# Every room gets a private event directory. This prevents concurrent or
|
||||
# reconnecting sessions from consuming and announcing each other's tasks.
|
||||
task_dir = f"/tmp/tasks/{ctx.room.name}"
|
||||
try:
|
||||
from agent.task_registry import TaskRegistry
|
||||
except ImportError:
|
||||
|
||||
Reference in new issue
Block a user