feat: notify when a track stops growing mid-recording - #6
Open
jayfrid-bot wants to merge 1 commit into
Open
Conversation
Both .caf files grow continuously while capture is healthy. A session-level watchdog polls their sizes every 15s; a track frozen for 45s while recording fires a user notification (and another on recovery), so a silently dying track is surfaced during the meeting instead of being discovered in a one-sided transcript afterward. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
🤖 Grok (xAI) PR Review — model: grok-4.5verdict: LGTM Issues (must-fix)
Suggestions
Next steps: merge when green | keep companion #2 for auto-restart |
FernandoGomes83
added a commit
to FernandoGomes83/quill
that referenced
this pull request
Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Companion to #2. That PR fixes the specific way a track can silently die (a call app reconfiguring the input device); this one adds a safety net for the general case — any track that stops being written mid-session, for any reason, should be surfaced to the user during the meeting, not discovered afterward in a one-sided transcript.
What it does
RecordingSessionnow runs a lightweight liveness watchdog while recording:.caffiles grow continuously while their capture is healthy, so a 15s timer polls their sizes.notifyUserhelper: "quill: mic track stalled — no mic audio written for 45s — the recording may be incomplete."No new dependencies, no work when nothing is wrong (two
statcalls per 15s).Verification
Tested against the real failure mode from #2: a build with the mic auto-restart disabled, recording during a live FaceTime call. The mic track died when the call connected (27s into a 2:01 session) and the stall notification fired within the expected window. Also verified the timer is torn down on stop and that healthy sessions produce no notifications.
🤖 Generated with Claude Code