Repository navigation
fix(onboarding): route pendant tutorial question outcomes and failures directly (#23385) - #23387
Conversation
f01390f to
e6082b1
Compare
e6082b1 to
4d037eb
Compare
|
Hey @ocakciomursel-pixel 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
Fixes #23385
UI-Evidence: none -- routes onboarding voice question outcomes and existing localized retry/limit strings directly from DeviceOnboardingProvider without visual layout changes
Failure-Class: none
Line-Count-Exception: app/lib/services/capture/capture_controller.dart | 4507 -> 4604 | routes tutorial voice-question outcomes, transcriptions, and terminal drop/failure signals directly to DeviceOnboardingProvider (#23385)
Product invariants affected
Summary
Routes pendant tutorial question outcomes, transcriptions, and failures directly to
DeviceOnboardingProviderinstead of relying on globalMessageProvider.messagesheuristics inSinglePressStep.Root Cause
MessageProvider.sendVoiceMessageStreamToServerintentionally routes voice turns to a detachedvoiceMessageslist whenevershouldDisplayInCurrentChat('omi', '')is false (e.g., when a past chat session, persona/app chat, or fresh chat session is active in the background).SinglePressSteppreviously listened only toMessageProvider.messages, leaving the tutorial stuck onProcessing your question…even when the voice turn succeeded.emptyFramesandno_speechleftDeviceOnboardingProvider.questionSent = truewith no failure signal.deviceOnboardingProvider.onButtonEvent(buttonState)beforeCaptureControlleradmitted the session start caused an ignored press during the 2-secondautoEndGracewindow (or an overlapping press whilequestionSentwas pending) to desynchronize tutorial UI state from actual capture session state.Changes
capture_external_actions.dart,provider_capture_external_actions.dart,message_provider.dart):VoiceQuestionFailure(noSpeech,offline,server,timeout,quota,notSignedIn,failed) andVoiceQuestionOutcome(answered/failed), returned bysendVoiceMessageStreamToServeracross all paths while keeping background chat history isolated.onQuestionTranscribedcallback when the human question chunk arrives so the tutorial displays the transcribed question regardless of active chat context.device_onboarding_provider.dart,capture_controller.dart,single_press_step.dart):activeQuestionAttemptIdwith a bounded pending-request timeout (questionPendingTimeout) and automatic retirement when navigating away or disposing.CaptureControlleradmits the session start (preventingautoEndGraceor overlapping presses whilequestionSentis pending from desynchronizing UI/session state).actionsDisabled,emptyFrames,noDevice,codecLookupFailed,cancelled) and stream/transport failure back toDeviceOnboardingProvider.onVoiceQuestionFailed.MessageProviderlistener fromSinglePressStepand rendered localized failure/limit explanations fromprovider.questionFailure.device_onboarding_provider_test.dart,omi_button_actions_controller_test.dart,message_provider_voice_test.dart, anddevice_onboarding_question_revisit_test.dart.