Repository navigation
Conversation
…ware#4706) Heal silent mic death when Stage Manager / YouTube stops capture without an AVAudioSession interruption: rebuild a dead engine on foreground, always probe resume when an interruption ends, and trip the Dart stall path after suspended timers so the UI no longer stays stuck on Listening. Co-authored-by: Cursor <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…re#4706) Detect Hermetic Backend Scope hit the 2m job timeout (cancelled); Merge Gate fail-closed on SCOPE_RESULT=cancelled. App-only PR — no backend scope change. Co-authored-by: Cursor <[email protected]>
|
CI note: Backend Hermetic Merge Gate red is not from this PR’s app changes. Same flake as #11144: |
There was a problem hiding this comment.
1 issue found and verified against the latest diff
Confidence score: 5/5
- In
app/lib/pages/conversations/widgets/processing_capture.dart, the new non-callRecordingState.interruptedpath is unguarded by a widget regression test, so a future UI refactor could silently stop showingPaused(or its paused affordance) forisCallActive == false, confusing users about capture state — add a widget test that asserts both elements for that scenario.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="app/lib/pages/conversations/widgets/processing_capture.dart">
<violation number="1" location="app/lib/pages/conversations/widgets/processing_capture.dart:364">
P3: The new non-call `RecordingState.interrupted` rendering has no widget regression test; add one with `isCallActive == false` that asserts `Paused` and the paused affordance so this UI contract cannot regress.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| bool isCallInterrupted = provider.recordingState == RecordingState.interrupted && provider.isCallActive; | ||
| // Any audio-session interruption (call, other-app audio, system alert) is | ||
| // treated as paused so the UI does not claim "Listening" while mute (#4706). | ||
| bool isAudioInterrupted = provider.recordingState == RecordingState.interrupted; |
There was a problem hiding this comment.
P3: The new non-call RecordingState.interrupted rendering has no widget regression test; add one with isCallActive == false that asserts Paused and the paused affordance so this UI contract cannot regress.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At app/lib/pages/conversations/widgets/processing_capture.dart, line 364:
<comment>The new non-call `RecordingState.interrupted` rendering has no widget regression test; add one with `isCallActive == false` that asserts `Paused` and the paused affordance so this UI contract cannot regress.</comment>
<file context>
@@ -346,37 +350,39 @@ class _ConversationCaptureWidgetState extends State<ConversationCaptureWidget> {
- bool isCallInterrupted = provider.recordingState == RecordingState.interrupted && provider.isCallActive;
+ // Any audio-session interruption (call, other-app audio, system alert) is
+ // treated as paused so the UI does not claim "Listening" while mute (#4706).
+ bool isAudioInterrupted = provider.recordingState == RecordingState.interrupted;
bool isPaused = false;
if (isDeviceRecording) {
</file context>
There was a problem hiding this comment.
Addressed in 6d695a2 — see PR comment for details.
There was a problem hiding this comment.
Strengthened in the follow-up push: the #4706 widget test now asserts Paused text, the orange paused status dot, and the play (resume) affordance for isCallActive == false.
Also fixed Dart Analyze: test doubles implementing IMicRecorderService now stub probeStallAfterForeground() (that was the red CI).
Address cubic review: foreground must not race native rebuild or false- restart healthy sessions. Soft-rearm the stall clock instead of escalating immediately; add widget coverage for non-call interrupted → Paused; reformat Dart for CI. Co-authored-by: Cursor <[email protected]>
Follow-up @6d695a20 (cubic + Formatting)Addressed all three cubic findings:
Also re-ran |
…rdware#4706) Dart Analyze CI failed: FakeMic / _ContendedMic missing the new IMicRecorderService method. Also tighten BasedHardware#4706 widget coverage to assert Paused text plus orange status-dot and play affordance. Co-authored-by: Cursor <[email protected]>
CI fixDart Analyze & Tests failed because Fixed + pushed; widget test also asserts paused affordance (orange status dot + play icon) per cubic P3. |
|
Thanks for this — clean, well-scoped fix for a real iPadOS edge case (#4706: other-app audio silently killing the phone-mic engine without an A few notes from review:
I see the prior cubic-dev-ai findings (dual-recovery race, false-stall on suspended timers, missing UI test) were all addressed in the follow-up commit, and CI is green. One thing a maintainer should confirm on a physical iPad before merge: the Leaving for a human maintainer to verify the on-device behavior and merge. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
@Git-on-my-level Thanks for the positive signal. Agreed on the iPad smoke gap — no physical iPad in this environment, so that path stays an honest verification hole for a maintainer with device access (Omi recording → YouTube/Stage Manager → return → frames resume). No further author code changes pending on this head; CI green @b82fb8ca including the soft-rearm + widget-affordance follow-ups. |
|
@Git-on-my-level need human response Head Merge still blocked solely on write-access APPROVE. Could a human maintainer with device access smoke + APPROVE/merge when you have a moment? No further author work pending. |
kodjima33
left a comment
There was a problem hiding this comment.
Rebuilds the dead phone-mic engine on foreground and always retries on interruptionEnded; covers the iPadOS other-app-audio stall.
What changed and why
On iPadOS (Stage Manager / windowed apps), playing YouTube (or other audio) while Omi phone-mic records can stop mic frames without an AVAudioSession interruption. The UI stayed on “Listening”, Dart stall timers may not fire while suspended, and
appBecameActiveonly resumed if already.interrupted. Fixes #4706.appBecameActivewhile.running, rebuild if the engine is dead; oninterruptionEnded, alwaysattemptResume()once (other-app audio often ends withoutshouldResume).probeStallAfterForeground()soft-rearms the stall clock from home lifecycle resume (does not immediately stop→start — native owns dead-engine rebuild; the periodic watchdog escalates only if frames still don’t arrive).RecordingState.interruptedshows Paused (not only call-active).Product invariants affected
none
How it was verified
Could not reproduce on a physical iPad in this environment. Native dead-engine rebuild is covered by the existing PhoneMic control path + unit tests for the Dart timer-suspension gap.
Tests
app/test/unit/native_mic_recorder_service_test.dart— soft-rearm / watchdog foreground-stall casesapp/test/widgets/transcription_paused_warning_test.dart— non-call interrupted → Paused + paused affordanceprobeStallAfterForegroundFailure class (fixes)
Failure-Class: none
Scoped cleanups (optional)
n/a