Repository navigation
Conversation
…ad of every upload tick
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously deployed
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.
Closes #4879
Every upload progress broadcast from the Chrome extension offscreen document re-wrote
webcamPreviewDismissedto session storage, checked offscreen contexts to disconnect camera previews, queried all open tabs, and broadcastoverlay-hideto every tab. User-initiated stops also ran a second overlapping hide alongside the uploading broadcast.Share one coalesced
ensureNonCaptureOverlaysHidden()path across both stop-recording and status broadcasts so non-capture cleanup runs once per transition out of a capture phase. Keep separate retry tracking for tab dismissal, camera preview disconnect, and any webcam preview that reopens while an earlier hide is in flight.Before / After
Measured with 20 open browser tabs and 10
"uploading"progress broadcasts after"recording":overlay-hidetab IPC messages sentchrome.storage.session.setdismissal writesgetContexts)Verification
bun run tsc-rs -b apps/chrome-extension/tsconfig.jsonbun run --cwd apps/chrome-extension vitest run src/background/service-worker.test.ts(26/26 passed, covering phase transitions, in-flight coalescing, storage failure retry, worker restart, stop+broadcast overlap, failed camera disconnect retry, and preview reopened mid-hide)bun run biome checkon touched files andnode scripts/test-lint/run.mjsConfidence Score: 5/5

The PR appears safe to merge.Summary
Shares overlay cleanup between stop requests and recording-status broadcasts.
No actionable issues found. Tests were inspected but not run.
Reviews (1) · Last reviewed commit: "perf(chrome-extension): hide overlays on..." · Reviewed by Greptile