Repository navigation
Conversation
…ndow Blur (partial) macOS configured no vibrancy surface at all, and an opaque fill sat between the desktop and the terminal, so Background Opacity and Window Blur both looked like no-ops. Adds a platform-gated blur surface (`resolveMainWindowBlurSurface`, covering macOS vibrancy / Windows acrylic / Linux fallback) and a root class that drops the opaque fill so the opacity token reaches the compositor. > [!WARNING] > **This does not close #8797 — it is deliberately `Refs`, not `Fixes`.** > I measured it on macOS with a dedicated isolated profile, identical app state, same wallpaper and window geometry, native `screencapture`, toggling only `windowBackgroundBlur` with a restart between runs: > > | Region | Blur OFF | Blur ON | Mean abs diff | > | --- | --- | --- | --- | > | Terminal pane | RGB(48.0, 53.0, 61.0) | RGB(50.0, 55.0, 63.1) | 2.0 / 255 | > | Sidebar | RGB(46.3, 46.4, 46.4) | RGB(46.3, 46.4, 46.4) | 0 — pixel-identical | > > The renderer half provably works (`window-blur` class applied; `html`/`body`/`#root` compute to `rgba(0,0,0,0)`; `.xterm` at `rgba(40,44,52,0.55)`), but the native vibrancy never reaches the screen, so the setting is still not visibly effective. Most likely Electron keeps an opaque window backing without `transparent: true`, which #8482 removed on purpose. > > Kept because it is a correct, unit-tested prerequisite. Merge or hold at your discretion — one machine, one macOS version, external display. Refs #8797 Co-authored-by: Orca <[email protected]>
|
Warning Review limit reached
Next review available in: 21 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
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 |
Visual proof — and why this is
|
| Region | Blur OFF | Blur ON | Mean abs diff |
|---|---|---|---|
| Terminal pane | RGB(48.0, 53.0, 61.0) | RGB(50.0, 55.0, 63.1) | 2.0 / 255 |
| Sidebar | RGB(46.3, 46.4, 46.4) | RGB(46.3, 46.4, 46.4) | 0 — pixel-identical |
The renderer half provably works — with blur on, documentElement carries window-blur, html/body/#root compute to rgba(0,0,0,0), and .xterm is rgba(40, 44, 52, 0.55). But the native vibrancy never reaches the screen, so the user-visible result is still "no effect" — exactly what #8797 reports.
Most likely cause: Electron keeps an opaque backing on the BrowserWindow unless transparent: true, which #8482 removed deliberately for a compositing-cost reason. Dropping backgroundColor is necessary but not sufficient, and resolving that tradeoff is bigger than a bug-bash change.
So #8797 stays open. The code here is a correct, unit-tested prerequisite (resolveMainWindowBlurSurface covers macOS vibrancy / Windows acrylic / Linux fallback and the dark/light fill) — merge or hold at your discretion.
Warning
One machine, one macOS version, external display. Worth a second pair of eyes before concluding the approach is a dead end.
|
Pausing merge pending performance validation. This changes a known GPU/compositor-sensitive path: macOS This PR correctly avoids This is a hold for evidence, not a rejection of the direction. |
|
Closing as superseded by #36580, which adds Opaque, Translucent and Blurred window materials on macOS, Windows and Linux (plus Reduce Visual Effects) and fixes the transparent-terminal flicker. Thank you for this PR, it shaped the design. |

macOS configured no vibrancy surface at all, and an opaque fill sat between the desktop and the terminal, so Background Opacity and Window Blur both looked like no-ops.
Fix
Adds a platform-gated blur surface (
resolveMainWindowBlurSurface, covering macOS vibrancy / Windows acrylic / Linux fallback) and a root class that drops the opaque fill so the opacity token reaches the compositor.Warning
This does not close #8797 — it is deliberately
Refs, notFixes.I measured it on macOS with a dedicated isolated profile, identical app state, same wallpaper and window geometry, native
screencapture, toggling onlywindowBackgroundBlurwith a restart between runs:The renderer half provably works (
window-blurclass applied;html/body/#rootcompute torgba(0,0,0,0);.xtermatrgba(40,44,52,0.55)), but the native vibrancy never reaches the screen, so the setting is still not visibly effective. Most likely Electron keeps an opaque window backing withouttransparent: true, which #8482 removed on purpose.Kept because it is a correct, unit-tested prerequisite. Merge or hold at your discretion — one machine, one macOS version, external display.
Verification
pnpm typecheckclean on this branchRefs #8797
Made with Orca 🐋