fix: increase session supervisor resilience for cloud STT models#3583
Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Open
fix: increase session supervisor resilience for cloud STT models#3583devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Conversation
- Increase max_restarts from 3 to 15 to handle transient cloud service failures
- Increase max_window from 15s to 60s to allow more recovery time
- Add exponential backoff (500ms, 1s, 2s, 4s, 8s, capped at 10s) for listener retries
This fixes the 'Session failed: Meltdown { reason: max_restarts exceeded }' error
that users experience when using cloud STT models with temporary connectivity issues.
Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
✅ Deploy Preview for hyprnote canceled.
|
✅ Deploy Preview for hyprnote-storybook canceled.
|
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the "Session failed: Meltdown { reason: 'max_restarts exceeded' }" error that users experience when using cloud STT models (Deepgram, AssemblyAI, etc.) with temporary connectivity issues.
Changes:
max_restartsfrom 3 to 15 to handle transient cloud service failuresmax_windowfrom 15s to 60s to allow more recovery timeThe previous settings were too aggressive for cloud services, causing sessions to fail after just 3 connection issues within 15 seconds. The new settings align better with the local-stt plugin's approach (which uses 100 restarts in 180s).
Review & Testing Checklist for Human
(500 * 2^(count-1)).min(10000)for counts 1-5+Recommended test plan: Start a recording session with a cloud model, then temporarily disable network connectivity for 10-20 seconds. The session should recover when connectivity returns instead of showing "Session failed: Meltdown".
Notes
Link to Devin run: https://app.devin.ai/sessions/0e124d772936441e8647f42d920d510b
Requested by: @ComputelessComputer