fix(voice): prevent scheduling deadlock when pipeline task crashes#5678
fix(voice): prevent scheduling deadlock when pipeline task crashes#5678theomonnom merged 1 commit intomainfrom
Conversation
_mark_done() called _mark_generation_done() inside a suppress(InvalidStateError) block for _done_fut. When _done_fut was already resolved (e.g. interrupted speech), the InvalidStateError suppressed the entire block — skipping _mark_generation_done(). This left the generation future unresolved, so _wait_for_generation() in the scheduling task hung forever, blocking all subsequent turns. Fix: move _mark_generation_done() outside the _done_fut suppress block. Co-Authored-By: Théo Monnom <theo@livekit.io>
af1ad6f to
f1bdbd8
Compare
|
Note This is an automated Claude Code Routine created by @toubatbrian. Right now it is in experimentation stage. The automation will start porting this PR into agents-js automatically. This change touches the core voice runtime ( Porting now under branch Generated by Claude Code |
No description provided.