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:
|
||||
|
||||
+3
-4
@@ -989,17 +989,16 @@ body[data-mode="text"] .mic-meter {
|
||||
|
||||
.settings-sheet {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 50%;
|
||||
bottom: 0;
|
||||
z-index: var(--z-sheet);
|
||||
width: min(660px, 100%);
|
||||
max-height: min(76vh, 680px);
|
||||
height: 100dvh;
|
||||
padding: 0.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border: 1px solid var(--line-strong);
|
||||
border-bottom: 0;
|
||||
border-radius: 16px 16px 0 0;
|
||||
border-radius: 16px;
|
||||
background: #101e31;
|
||||
transform: translate(-50%, 102%);
|
||||
transition: transform 240ms var(--ease-out);
|
||||
|
||||
Reference in new issue
Block a user