Repository navigation
feat(desktop): mute a browser tab - #7252
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR introduces a new user-facing feature: mute/unmute controls for browser tabs with audio indicators. It adds new IPC methods, new state fields, new UI components, and significant new logic in the preview manager. New features with user-facing behavior changes warrant human review. You can add or adjust custom eligibility rules. Learn more. |
869c01c to
1679e7b
Compare
1679e7b to
a44b7c9
Compare
a44b7c9 to
d347f6f
Compare
left a comment
There was a problem hiding this comment.
reviewed at d347f6f. the desktop mute lifecycle, audibility reconciliation, runtime tab routing, ipc contract, and ui interactions look sound. targeted, desktop, and web test suites pass, all required checks pass, and i found no remaining blockers.
d347f6f to
861ea9e
Compare
left a comment
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 861ea9ef18f09d8aeff6fb63e09db054b039cd79. Configure here.
861ea9e to
08405c5
Compare
There was no way to silence a preview tab, or to tell which of several open tabs was making noise. Adds per-tab muting modelled on Chromium: "Mute tab"/"Unmute tab" in the tab's right-click menu, a speaker icon while a tab is playing sound that shows as crossed-out when muted, and click-to-toggle on that icon. Model: Claude Opus 4.5. Harness: T3 Code.
08405c5 to
0a2a3f4
Compare

What Changed
Preview tabs can now be muted, modelled on Chromium's behaviour.
crossed-out when muted.
Why
There was no way to silence a preview tab, or to tell which of several open
tabs was making noise.
UI Changes
CleanShot.2026-08-16.at.20.31.49-small.mp4
Checklist
Note
Medium Risk
Touches preview lifecycle, IPC state publishing, and race-prone audibility/mute reconciliation; behavior is heavily tested but errors from mute failures are still swallowed in the UI.
Overview
Adds per-tab mute for desktop preview webviews, wired end-to-end from contracts through IPC/preload to
PreviewManager.setAudioMuted, withaudioMuted(user intent) andaudible(Chromium observation) on preview tab state and the web overlay.The manager re-applies mute on webview attach/swap (like zoom), listens to
audio-state-changed, reconciles audibility after attach, rolls back failed mutes, and usesemitIfCurrentso concurrent audio updates are not overwritten.In the UI,
RightPanelTabsshows a volume control only while a tab is audible, adds mute/unmute to the tab context menu, and routes desktop calls throughpreviewRuntimeTabIdso actions use the Electron runtime tab id, not the server session id.Reviewed by Cursor Bugbot for commit 0a2a3f4. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add browser tab mute controls to desktop preview tabs
setAudioMuted(tabId, audioMuted)across the IPC stack: contracts, preload bridge, IPC channel, andPreviewManagerin Manager.ts.PreviewTabStategainsaudioMuted(user intent) andaudible(Chromium-reported) fields, persisted across navigation and webview swaps, with rollback on failure.RightPanelTabsthat toggles mute; a "toggle-mute" item is also added to the tab context menu.usePreviewBridgeintoDesktopPreviewOverlayso the web UI can reflect mute and audibility.Macroscope summarized 0a2a3f4.