Repository navigation
Conversation
igor-popov-dev
force-pushed
the
fix/speech-profile-graceful-skip
branch
from
August 22, 2026 20:53
26e1a2d to
a372859
Compare
closeCode 1011 with no captured speech means the STT backend is down, not a transient socket hiccup. The onboarding reconnect loop (added in BasedHardware#11704) kept retrying it every 5s forever, repeatedly popping the "Connection Lost" dialog with no way out besides force-quitting, even though "Skip for now" sits right next to it in the same flow. After 3 consecutive 1011 closes with zero user segments, give up reconnecting and surface a distinct STT_UNAVAILABLE error so the onboarding widget can route to the existing skip path instead. Failure-Class: none
igor-popov-dev
force-pushed
the
fix/speech-profile-graceful-skip
branch
from
August 22, 2026 22:11
a372859 to
ec4902d
Compare
Member
|
Thanks @igor-popov-dev — this is a well-scoped fix for a real onboarding trap, and the regression tests pin exactly the right behaviors. Verified against the head; notes below. What checks out:
Two minor, non-blocking notes for a possible follow-up:
Neither blocks merge from my side — leaving for human maintainer review. 🤖 This comment was AI-generated on behalf of the Omi maintainer team. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
approved these changes
Aug 23, 2026
kodjima33
left a comment
Collaborator
There was a problem hiding this comment.
Verified: confirmed via git history the underlying issue is not already fixed on main; CI green; scoped bug fix with regression tests. Merging (confidence gate met).
formed2forge
pushed a commit
to formed2forge/omi
that referenced
this pull request
Aug 24, 2026
…ead (BasedHardware#12070) closeCode 1011 with no captured speech means the STT backend is down, not a transient socket hiccup. The onboarding reconnect loop (added in BasedHardware#11704) kept retrying it every 5s forever, repeatedly popping the "Connection Lost" dialog with no way out besides force-quitting, even though "Skip for now" sits right next to it in the same flow. After 3 consecutive 1011 closes with zero user segments, give up reconnecting and surface a distinct STT_UNAVAILABLE error so the onboarding widget can route to the existing skip path instead. Failure-Class: none
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.
What changed and why
closeCode1011 with zero captured user segments means the onboarding speech-profilesocket's STT backend is down server-side, not that the socket merely hiccuped. The reconnect
loop added in #11704 retried this every 5s forever: each failed reconnect re-triggers
onClosed, which re-shows the "Connection Lost" dialog (speech_profile_widget.dart/page.dart) and reschedules another attempt, even though the same screen already has aworking "Skip for now" link (
speech_profile_widget.dart:487-496) right next to it.After 3 consecutive 1011 closes with no captured speech,
SpeechProfileProvidernow stopsscheduling reconnects and surfaces a distinct
STT_UNAVAILABLEerror instead ofSOCKET_DISCONNECTED. The onboarding widget routes that to the existing skip path(
provider.close()+widget.onSkip()) instead of a dialog whose only button just poppedthe screen without marking the step skipped.
Product invariants affected
none
How it was verified
flutter test test/providers/speech_profile_provider_test.dart— 7/7 passed, including3 new regression tests (gives up and surfaces
STT_UNAVAILABLEafter 3×1011-with-no-speech;keeps retrying on an ordinary 1006 disconnect; does not give up once real speech was already
captured).
dart format --line-length 120 --set-exit-if-changedon the 4 changed files — clean.flutter analyzeon the 4 changed files — no issues found.Tests
Bug fix — regression tests added in
test/providers/speech_profile_provider_test.dartcovering the new give-up threshold, that an ordinary disconnect is unaffected, and that
already-captured speech prevents a false give-up.
Failure class (fixes)
Failure-Class: none
Scoped cleanups (optional)
none