fix(app): a lost worker drops a waiting wake word
A wake word said alone waited without a time limit once the speaker's next utterance started. If the worker connection ended meanwhile, that final never came and the restarted worker's utterances (numbered from 1 again) were joined to it, so a later sentence without a wake word was answered. The core now reports WorkerLost; the conversation drops waiting wake words and forgets utterances in progress then and on leave. An utterance in progress is tracked until its own final arrives instead of by comparing utterance numbers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -63,7 +63,9 @@ a space between, and judges the joined text as one utterance (so "자비스" the
|
||||
the speaker's next utterance already started when the wake word's final came, or starts within
|
||||
`call.followUpMs` of it, the wake word waits for that utterance's final however long it takes;
|
||||
otherwise, after `call.followUpMs`, the wake word alone is the request. Other speakers' utterances
|
||||
never join it, and a stop (voice, slash command or leaving) drops it. Chat messages are not joined:
|
||||
never join it, and a stop (voice, slash command or leaving) drops it. So does a lost worker
|
||||
connection (`WorkerLost`): the final it waited for will not come, and the restarted worker's
|
||||
utterances are not continuations of it. Chat messages are not joined:
|
||||
a message is complete as sent.
|
||||
|
||||
## Response policy
|
||||
|
||||
Reference in New Issue
Block a user