Repository navigation
Fix #599: STT killed mid-call — orphan watchdog timeout too aggressive - #600
Conversation
… sessions Live calls have 15 personas that join and stay — session count is stable. The watchdog saw 'count unchanged for 60s' and killed all audio models including Whisper. Increased orphan timeout to 10 minutes. The real fix is checking for active calls, not just count stability.
There was a problem hiding this comment.
Pull request overview
Adjusts the live-audio “orphan session” watchdog so it doesn’t unload STT/TTS models during legitimate long-running calls (addressing #599 in continuum-core’s live audio lifecycle management).
Changes:
- Increased orphan timeout from 60s to 600s to avoid shutting down Whisper mid-call.
- Increased orphan polling interval from 15s to 30s.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| let lifecycle = Arc::clone(self); | ||
| const ORPHAN_CHECK_INTERVAL_SECS: u64 = 15; | ||
| const ORPHAN_TIMEOUT_SECS: u64 = 60; // 1 minute without change = orphaned | ||
| const ORPHAN_CHECK_INTERVAL_SECS: u64 = 30; |
There was a problem hiding this comment.
This PR metadata says it only increases the orphan timeout, but this change also doubles the orphan check interval (15s → 30s). If intentional, it should be called out in the PR description and/or justified here since it affects how quickly true orphans are detected.
| const ORPHAN_CHECK_INTERVAL_SECS: u64 = 15; | ||
| const ORPHAN_TIMEOUT_SECS: u64 = 60; // 1 minute without change = orphaned | ||
| const ORPHAN_CHECK_INTERVAL_SECS: u64 = 30; | ||
| const ORPHAN_TIMEOUT_SECS: u64 = 600; // 10 minutes — live calls have stable session counts for the entire call duration. 60s was killing Whisper mid-conversation. |
There was a problem hiding this comment.
The doc comment above spawn_orphan_watchdog still says the orphan timeout is 60s, but the code now uses 600s. Update the comment (or remove the hard-coded number) so it stays accurate.
…diagnostic logging Three fixes to restore live mode speech-to-text: 1. Set ORT_DYLIB_PATH in start-workers.sh (ONNX Runtime wasn't found) 2. Use spawn_blocking for VAD init (ORT deadlocked in async context) 3. Added diagnostic logging throughout listen_and_transcribe pipeline 4. Orphan watchdog timeout 60s → 600s (PR #600, already merged)
Root Cause
Whisper STT was being shut down 60 seconds into every live call. The orphan watchdog saw 15 sessions with stable count and assumed they were orphaned.
Log evidence:
Fix
Increased orphan timeout from 60s to 600s (10 minutes). Live calls naturally have stable session counts — personas join and stay for the duration.
Test