Repository navigation
Warn when a voice note can't start, and stop the Safari client error - #374
Merged
Merged
Conversation
A blocked mic stored its error with no note, and only the note's audio strip shows errors, so the sidebar Voice note button failed silently. Map each getUserMedia error name to a plain message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Safari sends this benign notice as a window error event while a voice note opens, and the overlay treated it as a crash. Add a launchArgs option to the browser-check kit for fake-mic checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review fixes: a note created before startDocAudio failed was left orphaned, a throwing AudioContext left the recorder stuck in starting, and a mic error from the sidebar also showed in the open note's strip. Drop the anchor on the ResizeObserver filter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Code review (medium): 4 findings, all fixed in 991ea04.
|
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.
Two voice note fixes. Voice note now tells you why it cannot start, for example when the microphone is blocked. In Safari, a new voice note no longer opens the "Client exception" dialog.
Before: With the mic blocked, tapping Voice note did nothing. When a voice note did open in Safari, the "Client exception" dialog appeared every time.
After: A toast shows "Could not start the voice note" and the reason. The note opens and records with no dialog.
Cause
errorevent while the recording strip lays out. The app's global handler treated every window error as a crash. Chrome does not send it on this page, which is why it did not reproduce on desktop Chrome.Proof
Production build,
getUserMediarejected withNotAllowedError(what a blocked site permission gives). The toast names the problem and the fix.Safari engine (Playwright WebKit) on the production build: start a voice note from the sidebar, then wait 8 seconds.
Opening an existing note in WebKit, by reload or by a link click, showed no error before the fix either, so the notice comes from the recording flow. Chromium record, wait 12 s, then stop, at 1440 px and 390 px: 0 page errors.
pnpm lint,pnpm type-checkand related tests pass.Limits
🤖 Generated with Claude Code