Skip to content

SCA-557: self-recover silent pendant capture in mobile - #18858

Merged
Git-on-my-level merged 6 commits into
BasedHardware:mainfrom
Git-on-my-level:agent/m1-studio-devin-fusion-gpt-6-s/254043bf0b80
Sep 25, 2026
Merged

Git-on-my-level merged 6 commits into
BasedHardware:mainfrom
Git-on-my-level:agent/m1-studio-devin-fusion-gpt-6-s/254043bf0b80

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Detect silent hardware capture through per-device zero-byte live WebSocket sessions and short BLE reconnect cycles; try one bounded BLE reconnect, then keep a localized repair banner visible until capture resumes.
  • Open Device Settings directly from capture_recovery / repair_device notification taps, including cold-start and foreground Android taps; unknown typed pushes do nothing.
  • Add capture recovery telemetry, restore valid live-link RSSI on Device Connected, and include a mobile changelog fragment.

Rollout and safety

  • PostHog flag: mobile-capture-recovery-v1, default off; missing flag, consent, or settled identity fails closed. Push deep-link routing is ungated.
  • Zero-byte threshold: 3 consecutive connected/closed sessions with zero binary audio enqueued, within 10 minutes, per device. Rapid BLE threshold: 3 connected-to-dropped sessions strictly under 15 seconds within 5 minutes. Recovery resolves on the first positive-byte session within 30 minutes of detection.
  • Hardware scope: app source omi or friend_com (the latter is the actual friend pendant source; no pendant enum value). Phone-mic, onboarding, batch, and custom-STT paths do not trigger; retry never unpairs or changes saved device identity.
  • Capture Wedge Detected: source, consecutive_zero_byte_sessions, trigger (zero_byte_streak or rapid_reconnects), app_build, platform. Capture Recovery Prompt Shown: source, trigger. Capture Recovery Actioned: surface (banner or push). Capture Recovery Resolved: source, trigger. Device Connected: meaningful negative rssi in addition to existing hashed identity.

Verification

  • bash app/test.sh: 3,123 tests passed (5 skips).
  • bash app/scripts/analyze_ratchet.sh: passed without new warnings.
  • python3 app/scripts/l10n.py check: passed (49 locales, 3,363 keys).
  • make preflight: 22 checks passed.
  • No physical-device or live UI session was run; behavior is covered by hermetic unit, provider, socket, and widget tests.

Line-Count-Exception: app/lib/services/capture/capture_controller.dart | 3459 -> 3509 | 50 lines attach per-socket hardware-only wedge observation to existing capture lifecycle; session ownership and teardown stay at their authoritative boundary.
Line-Count-Exception: app/lib/utils/analytics/analytics_manager.dart | 2720 -> 2744 | 24 lines add fail-closed consent/identity-fenced PostHog flag access and restore a bounded RSSI field on Device Connected.

Failure-Class: none

Generated with Devin

Review in cubic

Git-on-my-level and others added 5 commits September 25, 2026 02:57
… telemetry

Failure-Class: none

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: multica-agent <[email protected]>
Failure-Class: none

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: multica-agent <[email protected]>
Failure-Class: none

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: multica-agent <[email protected]>
Failure-Class: none

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: multica-agent <[email protected]>
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: multica-agent <[email protected]>
Preserve upstream live capture labels and controls alongside the localized recovery prompt.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: multica-agent <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit 3dc809b into BasedHardware:main Sep 25, 2026
30 checks passed
Git-on-my-level added a commit that referenced this pull request Sep 25, 2026
Collected all 20 app/changelog/unreleased fragments (13 release lines,
7 internal-only) into app/changelog/releases/1.0.560.json via
.github/scripts/mobile-changelog.py collect --version 1.0.560.

Required by the mobile-store-promote lane (CONFIRM=submit-for-review)
for the v1.0.560 iOS release. Includes the capture-recovery line from
#18858: 'Get help reconnecting your pendant when audio stops reaching
the app'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant