fix(CF-1170): Fix STT by correcting agent dispatch flow

Three fixes for voice agent not responding to speech:
1. Agent name: add --agent-name matrix-ai to CLI (was empty, dispatch couldnt match)
2. Move dispatch from on_invite to on_unknown call handler (dispatch when call starts, not on room join)
3. Use LiveKit room name from foci_preferred instead of raw Matrix room ID

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Christian Gick
2026-02-15 17:21:32 +02:00
parent 7032fef5c4
commit d5af90c7c7
2 changed files with 23 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
services:
agent:
build: .
command: python agent.py start
command: python agent.py start --agent-name matrix-ai
env_file: .env
restart: unless-stopped
network_mode: host