650 think aloud audio mic mute on demand reminders#1147
Merged
Conversation
|
🪓 PR closed, deleted preview. |
Contributor
Author
|
Created a separate issue for provenance tracking of mic events: #1150 |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds “muted mic” reminders for think-aloud audio recording: a delayed visual mute warning (blinking mic + forced-open tooltip) and an “you are muted” notification when speech is detected while muted.
Changes:
- Introduces shared helper utilities for deciding when to monitor muted audio and for consistent muted-instruction copy.
- Extends recording hook state to (a) start a 5s “still muted” warning and (b) detect “speaking while muted” via an analyser on a cloned mic track.
- Updates the header mic control to blink/show tooltip after 5s muted and to show/hide a persistent notification while speaking muted; updates demo config to exercise the feature.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/utils/recordingWarnings.ts | New helpers for mute monitoring + instruction copy. |
| src/utils/recordingWarnings.spec.ts | Unit tests for the new helpers. |
| src/utils/notifications.ts | Makes showNotification return the notification id; adds hideNotification. |
| src/store/hooks/useRecording.ts | Adds muted-warning timer + analyser-based “speaking while muted” detection; exposes new state. |
| src/components/interface/AppHeader.tsx | Consumes new recording states to blink mic/force tooltip and show/hide a muted-speaking notification. |
| src/components/interface/AppHeader.module.css | Adds blink animation class for the mic button. |
| public/demo-screen-recording/config.json | Updates demo to include instructions and a click-to-record example. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
JackWilb
approved these changes
Mar 18, 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.
Does this PR close any open issues?
Closes #650
When mic is toggled off for more than 5 seconds, the mic icon starts blinking with tooltip shown until unmuted.

When mic is toggled off, but user is speaking, a message is displayed saying you are muted. This message goes away once unmuted or we hear no sound.

Give a longer description of what this PR addresses and why it's needed
Provenance Tracking of mic eventsDisplay mic events in replay timeline