Repository navigation
Conversation
|
Thanks @Aj2280 - clean, well-scoped fix for #20786, with the right recovery design and real unit tests. File-by-file:
Two non-blocking notes:
Nice work - this resolves the reported bug directly. Feedback generated by AI on behalf of the maintainer team. |
|
Thanks @Aj2280 — verified this fixes the stuck "Listening…" path from #20786. Reviewed file by file:
Two non-blocking notes:
Nice, tight fix. This feedback is AI-generated on behalf of the maintainers. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Thanks for the tutorial-timeout fix. The same behavior landed in #20806, which is now merged. Closing this as a duplicate. |
|
Hey @Aj2280 👋 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! |
Summary
Fixes #20786.
In the pendant tutorial's "Ask Omi a Question" step (
SinglePressStep), if a user presses the pendant button once, speaks, and does not press again, the capture service's 15 s timeout automatically ends and submits the question stream to the backend. Previously,DeviceOnboardingProvideronly transitioned toquestionSent = trueupon a second button press, andSinglePressStep._onMessagesChanged()discarded new messages whilequestionSentwas false. Consequently, the step remained stuck on "Listening…" indefinitely even after the question was answered in chat.Fix
DeviceOnboardingProviderAuto-Submit Recovery:onQuestionSubmitted()which marksvoiceSessionActive = falseandquestionSent = true._startAutoSubmitTimer()) mirroring the capture auto-submit timeout.onVoiceResponseReceivedto ensure active sessions resolve cleanly when answers arrive.SinglePressStepActive-Session Message Handling:_onMessagesChanged(), if new messages arrive whileprovider.voiceSessionActiveis true, immediately callsprovider.onQuestionSubmitted()so the step processes the question and received answer rather than ignoring them.app/test/providers/device_onboarding_provider_test.dartverifying button state transitions,onQuestionSubmitted()state transitions, response arrival, and timer cancellation on reset.app/changelog/unreleased/20261007-pendant-tutorial-timeout-question.json.Product Invariants
none
Failure Class
Failure-Class: none
UI-Evidence: none -- state recovery and timeout handling in onboarding step without new visual layout changes
Verification
app/test/providers/device_onboarding_provider_test.dart.dart format --line-length 120.make preflight.Bounty Proposal