Repository navigation
fix(app): bound pendant voice playback setup and cleanup - #23609
Conversation
|
Verdict: the fix is correct and well scoped — bounded admission, request-scoped cleanup, and lifecycle-fenced teardown all check out against the diff; nothing blocking found. By file:
UX: the pendant tutorial no longer strands on "Processing" when spoken-output setup or cleanup hangs; retry just works. Blast radius: only the pendant device-button voice path — the chat-screen mic path passes USER IMPACT: if a spoken answer's audio setup or cleanup gets stuck, the pendant tutorial now recovers on its own — the question can be retried instead of hanging on "Processing". Still wanted before merge: the PR checklist's own open items — record the exact-head unit/widget/analyzer results in the PR, and keep the post-release customer retest (question → answer → Continue and retry) as the incident-closure gate. CI's Dart Analyze & Tests is green on this head and covers both new test files; mark ready-for-review when you consider the checklist recorded. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
The pendant tutorial can remain on Processing with spoken replies enabled after #23466: native playback setup was awaited before starting the voice-stream deadline, and failed replies awaited native audio cleanup before releasing the voice busy guard.
Bound spoken-output admission with the existing voice-reply budget and revoke late admission after failure. Finish failed questions independently of best-effort, request-scoped cleanup, using a unique playback identity. Cleanup follows the admitted playback lifecycle: a skipped mode-off, missing-headphone or revoked-admission attempt owns no new playback and must leave existing cleanup intact. An actually admitted replacement retires old cleanup after asynchronous boundaries.
Refs #23385 and merged #23466. This builds on the merged outcome pipeline rather than reapplying #23391. Preserve recordings, WAL custody, settings, firmware and backend contracts. No backend deployment is needed. Keep the customer incident open until a mobile release contains the complete fix and the reporter confirms question → answer → Continue and retry.
Review correction
The initial head
385422f01aincorrectly guarded cleanup with_beginAttemptSeq, which advances even when playback is skipped. The three review regressions pass on baseline and fail on that head. The revisions throughd87ea9ea8ee1467160fa3493f91115a64d7725d1use the existing_lifecycleTokenas cleanup ownership in bothinterruptand an admitted begin that is clearing prior audio. Six committed regressions cover all three skips at each cleanup entry point. The existing admitted-replacement regression is preserved unchanged. Earlier green CI/no-blocker notes for385422f01ado not certify this revision.Verification
0cedebcf1bbefore that path is corrected and now pass in the final focused suite.d87ea9ea8ee1467160fa3493f91115a64d7725d1: 105 targeted provider, tutorial/widget and voice-playback tests pass. The production service, capture → external-actions → MessageProvider → tutorial owners execute with synthetic native/audio/provider I/O. No physical pendant or live-provider acceptance claim.d87ea9ea8ee1467160fa3493f91115a64d7725d1: analyzer ratchet and bounded pre-push passed, including 27 selected manifest/preflight checks. The local 90-day historical guard explicitly skipped in the shallow clone; full-history CI must enforce it. The affected tutorial integration flow was rerun successfully on the dedicated iPhone 16 Pro/iOS26.5 simulator via attach/hot restart and driver. Reused native debug host with current Dart and synthetic native/audio/provider I/O; no fresh native binary, physical BLE or live-provider claim. Current-head CI and maintainer re-review remain required; keep draft.Product invariants affected
Failure-Class: new
Line-Count-Exception: app/lib/providers/message_provider.dart | 1203 -> 1208 | keeps request-local playback authorization, unique ownership and best-effort cleanup beside the existing voice-stream result/finally guard without another global owner or capture pipeline.
UI-Evidence: none -- layout is unchanged; the existing tutorial UI is exercised through the production-owner simulator fixture documented in app/docs/pendant-tutorial-question.md.