Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
🚧 Files skipped from review as they are similar to previous changes (8)
📝 WalkthroughWalkthroughThe change centralizes main-window background and blur configuration in Merge Risk: ⚪ Minimal · up to This localized change removes the opaque native fill only when blur is enabled so macOS vibrancy and Windows acrylic can show through, while preserving opaque behavior elsewhere; no actionable merge-blocking risk remains after normal checks. 🚥 Pre-merge checks | ✅ 1 | ❌ 4❌ Failed checks (4 warnings)
✅ Passed checks (1 passed)
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 |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
src/main/window/main-window-chrome-options.ts (1)
1-6: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueCondense the explanatory file banners.
src/main/window/main-window-chrome-options.ts#L1-L6: reduce to the essential blur-surface rationale.src/main/window/repro-8797-blur-opacity-noop.test.ts#L1-L14: retain a short issue reference and move rerun instructions elsewhere if needed.As per coding guidelines, comments must be concise, non-obvious, and preferably one line.
Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 2ef71bae-c897-418f-8b29-8293b641fe44
📥 Commits
Reviewing files that changed from the base of the PR and between 981653f and 358f64be49905bbbf0a6c92dcda11fa2001f983b.
📒 Files selected for processing (4)
src/main/window/createMainWindow.tssrc/main/window/main-window-chrome-options.test.tssrc/main/window/main-window-chrome-options.tssrc/main/window/repro-8797-blur-opacity-noop.test.ts
358f64b to
ebf2b72
Compare
Sync update (
|
ebf2b72 to
e0f28fe
Compare
Sync update (
|
1c2c4c4 to
7ca44fa
Compare
7ca44fa to
241d9c8
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
Follow-up for the Windows report on #8797. Rebased onto current
Preserves: #8482 (no macOS vibrancy/transparent). This PR is now the Windows half of #8797, not a claim to close the macOS visual no-op. |
Window Blur + terminal Background Opacity looked like no-ops on macOS because BrowserWindow always painted a solid #0a0a0a/#ffffff fill over vibrancy. When blur materials are active, use a transparent window fill (and Darwin visualEffectState: active) so lowered terminal alpha can reveal the blur layer. Fixes stablyai#8797
CodeRabbit: wiring test should prove the resolver call and platformBlurOptions spread, not only the import name.
Set transparent:true with backgroundMaterial acrylic so Windows blur composites under titleBarStyle:hidden, and cover the path in unit tests.
Window Blur already requested backgroundMaterial:acrylic on win32, but the opaque BrowserWindow fill and renderer root covered it, so the setting looked like a no-op. Use a transparent fill (Electron only honors #AARRGGBB alpha with transparent:true) and drop the desktop root paint so acrylic can show through. Preserves stablyai#8482: do not reintroduce macOS vibrancy or transparency. Refs stablyai#8797
241d9c8 to
6e7a4c4
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
Rebased onto current main after the App shell split. The window-blur root class is now driven from Validation: focused window/chrome/blur tests 21 passed. |
|
Closing this in favor of #12470. That maintainer PR already covers the Windows acrylic half this branch isolated: it drops the opaque The fork portfolio mirror will be closed to match. |

Description
User-facing: On macOS (and Windows acrylic), Window Blur + Background Opacity could look completely broken — the window stayed fully opaque even after enabling blur and lowering opacity.
Technical:
createMainWindowalways set an opaquebackgroundColor(#0a0a0a/#ffffff) even when blur enabled platform materials. That solid fill covered macOS vibrancy / Windows acrylic, so loweringterminalBackgroundOpacityonly revealed the same solid chrome color — never the desktop.Fixes #8797
Impact / ELI5
Orca was putting a solid painted board behind the glass. Turning on “blur” and lowering opacity only made the terminal more see-through to that solid board. This removes the solid board when blur is on, so you can actually see the frosted desktop through a translucent terminal.
Root cause
From the has_repro handoff (
docs/bug-reproductions/8797.md):vibrancy: 'under-window'+transparent: true(Darwin) orbackgroundMaterial: 'acrylic'(Windows).backgroundColor: dark ? '#0a0a0a' : '#ffffff'.rgba(...)— it never changed the BrowserWindow fill.Fix
New pure helper
resolveMainWindowChromeOptions:#00000000+vibrancy: under-window+visualEffectState: active+transparent: true#00000000+backgroundMaterial: acryliccreateMainWindowconsumes the helper instead of hard-coding the opaque fill.Evidence
pnpm exec vitest run --config config/vitest.config.ts \ src/main/window/main-window-chrome-options.test.ts \ src/main/window/repro-8797-blur-opacity-noop.test.tsResult: 8/8 passed.
Manual (macOS):
1.User-regression-tradeoffs
Checklist notes
AI review summary
ELI5
Window Blur plus lower opacity looked fully solid on macOS/Windows acrylic because an opaque background covered the platform material. The solid fill is removed when blur is on so blur and transparency actually show.