Repository navigation
feat(window): make macOS window blur a real glass effect, with opt-in Interface Glass - #24359
pawel-kotowski wants to merge 14 commits into
Conversation
|
This run was cancelled 🛑 The workflow was cancelled before completion. Please check the link below for details. |
|
|
Important Review skippedWe couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting You can disable this status message by setting the Use the checkbox below for a quick retry:
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to
|
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Docstring Coverage | Docstring coverage is 19.35% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 31 functions across 25 files. (3 skipped:… | Write docstrings for the functions missing them to satisfy the coverage threshold. |
✅ Passed checks (4 passed)
-
Check name Status Explanation Title check ✅ Passed The title clearly describes the main change: macOS window blur becomes a glass effect, with opt-in Interface Glass. Description check ✅ Passed The description covers the required sections with detailed change rationale, visual proof, testing, linked issue context, and compatibility notes. It also states that full lint, test, and build checks… Linked Issues check ✅ Passed Issue [ #8482] is closed and provides historical context only. No active directly linked issue remains, so no linked-issue coding requirements apply.Out of Scope Changes check ✅ Passed The window creation, renderer glass surfaces, settings, platform-specific copy, and tests all support the PR’s stated macOS glass feature. The reviewed changes show no unrelated work.
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 19.35% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 31 functions across 25 files. (3 skipped: 3 unsupported.)
- Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Autopilot is currently an internal CodeRabbit preview.
Comment @coderabbitai help to get the list of available commands.
e794616 to
a4e647a
Compare
There was a problem hiding this comment.
ℹ️ No critical issues — one minor cross-client gating gap inline.
Reviewed changes
- macOS window creation —
createMainWindownow mapswindowBackgroundBluron darwin tovibrancy: 'under-window'+visualEffectState: 'active'+ a clearbackgroundColor, and nevertransparent: true; Windows keeps acrylic and Linux is unchanged. - Glass capability wiring — new
--orca-window-glassargument stamped at window creation, read back in the sandboxed preload asplatform.get().windowGlass, and exposed to the renderer. - Renderer glass CSS —
html.window-glassclearsbody, tints.native-chat-pane-shell, clears xterm's redundant background layers, clears the split root under a chat pane, and re-applies the terminal tint to sibling panes. - Pane divider —
applyRootBackgroundnow tags the rootpane-split-rootand publishes--pane-split-backgroundfor the glass rules. - Settings — new macOS-only
nativeChatGlassOpacitysetting plus per-OS Window Blur / Background Opacity copy; Linux disables the blur switch; the search index adds the chat-glass entry only on macOS. - Tests —
window-glass.test.ts(new), updatedcreateMainWindow.test.ts,pane-divider.test.ts, andterminal-search.test.ts. All pass locally, as do the localization-catalog verification and the changed-code quality gate.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
ℹ️ No critical issues — one minor follow-up inline.
Reviewed changes
- Gated the Chat Glass Opacity control on
darwin && !isWebClientLocation(), matchingAppearancePane'sisDesktopMacpredicate. - Changed
getTerminalWindowSearchEntries's default so the Chat Glass Opacity search entry only appears on desktop macOS.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
15529b0 to
2765ecd
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Added a
webglass-copy platform so any browser web client renders its own Window Blur copy instead of macOS copy, and returns it before the OS mapping. - Routed the control, both descriptions, and the search-entry default through the single
getGlassCopyPlatformgate, removing the redundant!isWebClientLocation()check inTerminalWindowSection. - Added
terminal-window-glass-copy.test.tscovering the desktop platform mappings and the macOS-web-client case.
Both prior threads are addressed at 2765ecdd and resolved: on a macOS browser web client getGlassCopyPlatform() now returns web, so the Chat Glass control and its search hit stay hidden, windowBlurDescription no longer references the hidden control, and backgroundOpacityDescription no longer claims the desktop shows through. The affected suites (terminal-window-glass-copy.test.ts, terminal-search.test.ts, window-glass.test.ts) pass locally.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
2765ecd to
431701c
Compare
|
Rebased on current main and pushed @coderabbitai full review |
✅ Action performedFull review finished. |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
2e552fee-64e5-4bc8-8691-40dace645ecb
📥 Commits
Reviewing files that changed from the base of the PR and between b752131 and 431701c7c7f3bee48c21f71e8f4f679b36284a73.
📒 Files selected for processing (33)
src/main/window/createMainWindow.test.tssrc/main/window/createMainWindow.tssrc/preload/api/app-api.tssrc/preload/api/platform-bridge.tssrc/renderer/src/app-shell/AppRootSurfaces.tsxsrc/renderer/src/app-shell/AppWorkspaceShell.tsxsrc/renderer/src/app-shell/use-document-appearance.test.tsxsrc/renderer/src/app-shell/use-document-appearance.tssrc/renderer/src/assets/main.csssrc/renderer/src/components/right-sidebar/index.tsxsrc/renderer/src/components/settings/MacWindowGlassSettings.tsxsrc/renderer/src/components/settings/TerminalWindowSection.tsxsrc/renderer/src/components/settings/terminal-search.test.tssrc/renderer/src/components/settings/terminal-window-glass-copy.test.tssrc/renderer/src/components/settings/terminal-window-glass-copy.tssrc/renderer/src/components/settings/terminal-window-setup-search.tssrc/renderer/src/components/sidebar/index.tsxsrc/renderer/src/components/status-bar/StatusBarSurface.tsxsrc/renderer/src/components/tab-bar/drop-indicator.tssrc/renderer/src/i18n/en-runtime-required.jsonsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/lib/pane-manager/pane-divider.test.tssrc/renderer/src/lib/pane-manager/pane-divider.tssrc/renderer/src/web/preload-api/web-platform-api.tssrc/shared/default-global-settings.tssrc/shared/global-settings-types.tssrc/shared/window-glass.test.tssrc/shared/window-glass.ts
💤 Files with no reviewable changes (5)
- src/renderer/src/i18n/locales/ko.json
- src/renderer/src/i18n/locales/es.json
- src/renderer/src/i18n/locales/fr.json
- src/renderer/src/i18n/locales/ja.json
- src/renderer/src/i18n/locales/zh.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
|
Glass now also covers structured chat sessions (3956c5fef): they mount outside the terminal pane, so the 🤖 Generated with Claude Code |
fe18026 to
9429258
Compare
… terminals Window Blur on macOS produced nothing visible: stablyai#10682 removed the vibrancy because `transparent: true` burned GPU power while the opaque renderer hid it. Create the glass window with vibrancy over a clear backgroundColor instead (never `transparent: true`), keep it active when unfocused, and let only the native chat and terminal surfaces clear their layers down to one tint. - New Chat Glass Opacity setting (macOS) tints the native chat - Terminal Background Opacity now paints a single layer in glass mode - Window settings copy explains behavior per macOS / Windows / Linux Co-Authored-By: Claude Opus 5.5 <[email protected]>
… settings - Clear the pane-manager root (which owns the inline split background) when it hosts a chat pane, not only the chat's direct split parent - Only list Chat Glass Opacity in settings search on macOS, where it renders - Show Window Blur as off on Linux even if a saved value says true Co-Authored-By: Claude Opus 5.5 <[email protected]>
A browser web client on macOS reports darwin but never has a glass window, so gate the control and its search entry on desktop macOS like AppearancePane. Co-Authored-By: Claude Opus 5.5 <[email protected]>
getGlassCopyPlatform now returns 'web' for a browser client, so the control, its descriptions, and the search entry share one gate and the web client never shows macOS copy that points at the hidden Chat Glass Opacity control. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Native chat surfaces moved to bg-chat-canvas (stablyai#25651), a token resolved on :root, so clearing --background no longer made them transparent and the chat lost its glass. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Window Blur and Background Opacity copy moved to the glass keys, leaving three unused entries that the runtime English catalog check flags. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…als and chat Window Blur keeps glass on terminals and the chat UI only. Interface Glass (macOS, off by default) also clears the sidebars, titlebar, tab strip, status bar and full pages such as Settings to a single tint over the backdrop, set by Interface Glass Opacity. Each region keeps its own theme color at that alpha, and anything nested in a tinted region clears so layers never stack. Editors, dialogs and content cards stay solid. It applies live once the glass window exists. Also regenerates the runtime English catalog, which was missing the glass copy. Requested in stablyai#25068. Co-Authored-By: Claude Opus 5.5 <[email protected]>
With the activity bar on the side, its icon strip kept an opaque bg-sidebar next to the translucent panel. Panels that repeat the sidebar fill (AI Vault) and sidebar sticky headers/footers (Source Control) also stacked a second layer. The strip now shares the panel tint, nested repeats of either sidebar's fill clear, and sticky rows clear with a backdrop blur. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…m main Chat contrast (stablyai#25659) re-derives the chat palette on the appearance root from --background, which glass clears in chat panes. Text and faint colors mixed against transparent came out part-transparent, and each layer painting the re-derived canvas laid a faint foreground veil over the glass. Resolve the palette on the root against the solid theme surface and clear the canvas only below it, so the glass tint is the one layer that paints. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…at Glass) Under Window Blur, terminals tint with their theme background at Background Opacity. A mid-dark theme such as Gruvbox (#282828) at 60% reads as mid-grey over the vibrancy, and Color Contrast can't help because it measures against the opaque theme color. The new macOS switch (off by default) gives terminals the chat glass color and Chat Glass Opacity instead, so terminals and chat read as one material. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…hat Glass The split root got the chat tint, but xterm still painted its theme background at Background Opacity on top, so terminals stayed grey. With the option on, panes get a transparent theme background (allowTransparency on); the composed theme with the real background still feeds OSC 11 replies and the contrast floor. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Structured chat sessions mount outside the terminal pane, so the .native-chat-pane-shell glass rules never matched and they painted the opaque chat canvas. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lass global-settings-types.ts sits at its 300-line ceiling on main, and the glass settings pushed it over. The see-through backdrop settings (background opacity, blur and the four glass settings) now live in one WindowGlassGlobalSettings type in shared/window-glass.ts, which GlobalSettings intersects as it does NativeChatGlobalSettings. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…der glass Interface Glass cleared every sticky header and footer in both sidebars and relied on a backdrop blur to hide the rows scrolling beneath them. The blur does not hide them over the window vibrancy, so the docked Commits panel, worktree section headers, AI Vault group headers and checks headers showed the list through. Sticky surfaces now keep their own fill. Window glass also cleared --chat-canvas for overlays positioned over the transcript (the file-drop scrim, attachment controls); they now keep the solid chat canvas. Co-Authored-By: Claude Opus 5.5 <[email protected]>
16173ee to
0930302
Compare
|
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. |

ELI5
On macOS, Window Blur did nothing: the blur sat behind a wall Orca painted solid. This makes the native chat and terminals actually see-through glass. The window no longer goes into the "transparent" mode that heated laptops in #8482. You choose how much shows through. A separate, opt-in Interface Glass switch extends the glass to the rest of the window (sidebars, tab bar, status bar, full pages), as requested in #25068.
What Changed
createMainWindow.ts). When Window Blur is on, the window getsvibrancy: 'under-window'withvisualEffectState: 'active'and a clearbackgroundColor, and nevertransparent: true. A--orca-window-glassargument tells the renderer whether this window was created with glass, which only takes effect after a restart (src/shared/window-glass.ts, preloadplatform.get().windowGlass).--pane-split-background.backdrop-filterso the list doesn't show through crisply. It applies live once the window was created with glass. Hooks are semantic classes (worktree-sidebar-panel,right-sidebar-panel,status-bar-surface,workspace-page-column,tab-strip-tab), all styled from the one glass block inmain.css.--chat-canvastoken, the chat lost its glass because the token resolves on:root. The glass shell now clears--chat-canvastoo and tints from it.Why
#10682 fixed #8482 by deleting the macOS effect. Its trade-off note said making blur really render would need "an alpha-capable
backgroundColor, a non-opaque renderer root, andvisualEffectStatetuning". This PR is that feature work.The GPU cost in #8482 came from
transparent: true, which forces full-window alpha compositing on every frame. That flag also suppresses vibrancy (#8797). Vibrancy over a clearbackgroundColordoesn't need it.The aim is readability: a tunable frosted backdrop behind the chat UI and terminals.
Linked Issue
Related #8482 (follow-up to #10682's trade-off #1/#2: the macOS Window Blur toggle was a no-op)
Implements #25068 (full-interface glass, as an opt-in on top of the chat/terminal glass)
Visual Proof
Native chat on macOS 26, dev build, same conversation. Window Blur off (before) vs. on (after), Chat Glass Opacity 0.6. The sidebars and tab bar stay opaque; the composer is part of the chat surface and turns translucent with it.
Terminal glass: Gruvbox Dark Hard theme, Background Opacity 0.6, Window Blur on. The blurred desktop shows through the terminal; the sidebars stay opaque.
Testing
Manually tested on macOS 26 (Apple Silicon) with a dev build (separate
orca-devprofile):GPU power (
sudo powermetrics --samplers gpu_power,cpu_power -i 2000, 10–20 samples per condition, window ~full built-in display at 1646×1072 of 1710×1107, restart between conditions). "Heavy" means 27 terminals all printing continuously: 20 background tabs plus a visible 2×2 split.transparent: true+ vibrancy), reporter's numbersCPU power was the same in both heavy runs (~12.4 W, almost all from the shell loops). The old blur's absolute cost was about 60× higher. Caveats:
These are single runs on one machine, with other apps running.
I didn't recreate [Bug]: Window Blur causes sustained high GPU power and heat on macOS #8482's 158 sessions or the Workspace Board view, which peaked at 15 W there.
A larger external display or busy content behind the window will cost more.
I manually tested these changes locally
Automated tests added/updated
createMainWindow.test.ts: the [Bug]: Window Blur causes sustained high GPU power and heat on macOS #8482 guard still forbidstransparent: trueon every platform. It now expects macOS vibrancy and the glass argument only when blur is on, and opaque creation when blur is off.window-glass.test.tscovers the shared helpers.use-document-appearance.test.tsx:interface-glassis only set on a glass window, follows the setting live, and publishes the opacity.terminal-search.test.ts: the chat and interface glass entries are listed only on desktop macOS.pnpm tcand the changed-code quality gate pass, as do the affected suites (main window, settings, pane-manager, i18n, preload, document appearance). Windows and Linux were not tested at runtime; their window creation paths are byte-identical except for the added copy.AI Disclosure
Implemented with Claude Code (Claude Opus 5.5), reviewed and manually tested by the author.
Review
Agent skill upstream boundary
Notes
darwin, and Windows acrylic and Linux are unchanged. Per-OS copy useswindow.api.platform, and the web client reportswindowGlass: false.nativeChatGlassOpacity,interfaceGlassandinterfaceGlassOpacityare clamped on read; Interface Glass is off by default. Existing users with blur on will see glass after updating; previously the toggle did nothing on macOS.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (typecheck, changed-file lint, and affected suites pass locally; full lint/test/build left to CI)🤖 Generated with Claude Code