Skip to content

perf(renderer): keep modal blur with independent source regions - #33799

Merged
OrcaWin merged 5 commits into
mainfrom
ram/no-fullscreen-blur
Oct 26, 2026
Merged

OrcaWin merged 5 commits into
mainfrom
ram/no-fullscreen-blur

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​135 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​135
Prod 12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​94 $\color{#cf222e}{\Huge{\mathbf{−}}}$​53 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​41

Modal backgrounds keep their 2px blur while avoiding full-window backdrop filtering. The workspace and status bar blur independently, so a status-bar animation cannot invalidate the workspace's filtered surface. Dialog text remains sharp and the original scrim opacity is restored.

Onboarding and notifications render outside the filtered regions. Nested confirmations blur the underlying dialog; closing the final overlay releases all source filters, including after exit animations. Window controls retain their existing stacking. Onboarding render failures keep Retry within the viewport, beneath the automatic crash-report dialog. The no-data usage-chip pulse removal and the removal of nearly opaque panels' redundant backdrop filters remain.

Also removes one stale, unused context-menu import left by an upstream merge, restoring the full CI lint gate.

Where the cheaper blur applies

This is shared main-app modal behavior, rather than an onboarding-only optimization:

Surface Behavior
Dialogs, including Add a project and feature tips Use independent source-region blur behind the modal.
Command and worktree-jump palettes Reuse the shared dialog overlay and source-region blur.
Modal sheets/drawers Use the same source-region blur while their overlay is mounted.
Dialogs in the separate Space window Reuse the same source-region blur; dialog hosts and notifications stay outside the filtered page.
Onboarding and nested confirmations Blur the app; a nested modal also blurs the underlying modal surface.

The shared CSS watches body-level dialog, sheet, and onboarding overlays and filters the main app's layout regions or the separate Space window's page. Nonmodal sheets without an overlay do not trigger app blur. Small/local backdrop effects in menus, popovers, selects, hover cards, browser controls, and pane-local overlays retain their existing blur.

Resource measurements

Built app, Linux software compositor, hidden 1710×1073 window at 2× scale, fresh isolated profiles. Two interleaved runs per variant, with a rotating status-bar marker. Memory is Linux PSS, which avoids double-counting shared buffers.

Variant GPU process Total app
Original scrim + panel backdrop blur 163–264 MiB 517–651 MiB
Independent source-region blur 93–96 MiB 493–524 MiB
Blur disabled, measurement control 87–88 MiB 461–475 MiB

Each run warmed for 10 seconds, then sampled for 10 seconds. A 256×160 JPEG preview every tenth frame kept hidden rendering active. The new blur delivered 50–52 previews during the sample; the original delivered 6–7. This is a controlled rendering workload, not an idle-CPU measurement. There is no capture, image cache, timer, or new subscription in the implementation.

These are Linux software-rendering measurements. Native macOS/Windows RAM savings remain unmeasured; the prior description's Mac figures measured disabling blur and do not describe this implementation.

Validation

  • ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --maxWorkers=2
  • Hidden desktop E2E tests: light/dark dialogs and command palettes, Space-window dialog blur and cleanup, nested onboarding, onboarding render-failure recovery, and paired-client toast stacking/dismissal with input preservation.
  • The recovery regression test fails on the previous unpositioned fallback and verifies that Retry restores onboarding after a forced render failure.
  • Onboarding language-catalog retry passed after moving its surface to a portal.
  • Modal sheet fixtures rendered and inspected in both themes.

Visual proof

The screenshots show the ordinary Add a project dialog, demonstrating the shared behavior outside onboarding. Before: the earlier version of this PR dimmed a sharp background. After: the background remains visibly blurred and the dialog remains sharp. Captured through CDP from an isolated, hidden worktree app; the before frame uses the earlier CSS recipe as a runtime comparison.

Before After
Earlier PR: dimmed, sharp background Updated PR: blurred background, sharp dialog

Onboarding recovery found during review

A forced onboarding render failure previously left Retry below the viewport after dismissing the crash-report dialog. The recovery screen now fills the viewport and Retry restores onboarding. The before control uses the same build with only the new fallback positioning removed; the regression test fails there and passes on the final build.

Before: Retry offscreen After: Retry visible
Previous unpositioned recovery Positioned onboarding recovery

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a46a5140-bef0-4e0e-a243-df207ebab5e7
Commits

Reviewing files that changed from the base of the PR and between 4bd95b7 and 5167c40.

Files selected for processing: 1
  • src/renderer/src/components/native-chat/use-native-chat-context-menu.tsx
Files with no reviewable changes: 1
  • src/renderer/src/components/native-chat/use-native-chat-context-menu.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

Walkthrough

Dialog and sheet surfaces remove backdrop blur classes. Command dialogs support a palette surface, which the worktree jump palette selects. Portals and CSS rules control scene blur around modal and onboarding surfaces. End-to-end tests cover these states and onboarding render recovery. The provider status segment now uses a static indicator for missing, idle, and fetching-without-usage states. An unused import is removed.

Priority: Normal

Merge Risk: Minimal · up to 5167c

The remaining concern describes the intended blurred background, not a regression. No actionable merge risk remains from the selected change.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description provides detailed change rationale, implementation scope, measurements, validation, and visual proof. However, it omits the required Linked Issue and most template section headings and… Add an actual issue reference under “Fixes #”. Organize the existing content under ELI5, What Changed, Why, Visual Proof, and Testing. Complete the Testing checkboxes, AI Disclosure when applicable, Review, Agent skill upstream boundary, No…
Docstring Coverage Warning Docstring coverage is 11.76% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 17 functions across 18 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly identifies the renderer performance change: preserving modal blur through independent source regions.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description provides detailed change rationale, implementation scope, measurements, validation, and visual proof. However, it omits the required Linked Issue and most template section headings and checklist items.

Resolution

Add an actual issue reference under “Fixes #”. Organize the existing content under ELI5, What Changed, Why, Visual Proof, and Testing. Complete the Testing checkboxes, AI Disclosure when applicable, Review, Agent skill upstream boundary, Notes, and Checklist sections.

Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@OrcaWin

OrcaWin commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator Author

Visual proof for review — leaving this PR open as requested.

Compared parent 44ac5e284e3 with PR head 822fc0bf1e0 in the same hidden Electron dev instance via Playwright CDP, using the same sample folder workspace and a 1440×900 viewport. Screenshots are from each revision’s actual renderer source; no CSS overrides. The feature-tip illustration is animated, so its demo frame varies; compare the background and dialog shell.

The background becomes darker and sharp. Dialog controls and text remain readable. Background text can now be faintly visible through the existing 96%-opaque palette surface (especially in light mode); this is visible in the comparisons below.

Verified computed styles: dialog scrim blur(2px) → none, dim opacity 0.55 → 0.60; dialog panel blur(40px) → none; jump palette panel blur(24px) → none. The pending usage ··· had animation pulse before and no pulse after. Dialog and palette were opened through their buttons and dismissed with Escape; the feature tip was opened through the modal store.

Dark theme

Surface Before After
Add project dialog Before: Add project dialog, dark After: Add project dialog, dark
Feature tip Before: Feature tip, dark After: Feature tip, dark
Jump palette Before: Jump palette, dark After: Jump palette, dark

Light theme

Surface Before After
Add project dialog Before: Add project dialog, light After: Add project dialog, light
Feature tip Before: Feature tip, light After: Feature tip, light
Jump palette Before: Jump palette, light After: Jump palette, light

Scope: macOS desktop visual check; sheet and onboarding were not separately exercised. Memory measurements were not repeated.

@OrcaWin OrcaWin changed the title perf(renderer): drop full-window overlay blurs (−330 MB GPU with a modal open) perf(renderer): keep modal blur with independent source regions Oct 26, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 89a923c7-ad3d-45d7-9791-1b708c118eda
Commits

Reviewing files that changed from the base of the PR and between 822fc0b and 9c97867.

Files selected for processing: 9
  • src/renderer/src/App.tsx
  • src/renderer/src/app-shell/AppRootSurfaces.tsx
  • src/renderer/src/assets/main.css
  • src/renderer/src/components/onboarding/OnboardingFlow.tsx
  • src/renderer/src/components/ui/command.tsx
  • src/renderer/src/components/ui/dialog.tsx
  • src/renderer/src/components/ui/sheet.fixture.tsx
  • src/renderer/src/components/ui/sheet.tsx
  • tests/e2e/modal-scene-blur.spec.ts
Files skipped from review as they are similar to previous changes: 2
  • src/renderer/src/components/onboarding/OnboardingFlow.tsx
  • src/renderer/src/components/ui/sheet.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

body:has(> [data-slot='dialog-overlay'], > [data-slot='sheet-overlay'], > [data-onboarding-overlay])
.app-layout
> :not(.window-controls) {
filter: blur(2px);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Quick win

🔎 Supported by static analysis

Script executed:

git diff 44ac5e284e345d33d0bef02d255906e7a58d2c0b 9c97867596f767da5c609fbc9af8d43bf2d0f200 -- src/renderer/src/assets/main.css src/renderer/src/App.tsx src/renderer/src/app-shell/AppRootSurfaces.tsx tests/e2e/modal-scene-blur.spec.ts
sed -n '855,895p' src/renderer/src/assets/main.css

Repository: stablyai/orca

Length of output: 9535


Script executed:

set -eu
printf '%s\n' '--- changed CSS and nearby rules ---'
nl -ba src/renderer/src/assets/main.css | sed -n '800,905p'
printf '%s\n' '--- filter and overlay-related CSS references ---'
rg -n -F --glob '*.css' -e 'filter:' -e 'backdrop-filter' -e 'data-onboarding-overlay' -e 'dialog-overlay' -e 'sheet-overlay' -e 'app-layout' src/renderer/src/assets src/renderer/src | sed -n '1,240p'
printf '%s\n' '--- portal and overlay-producing references ---'
rg -n -F --glob '*.{tsx,ts}' -e 'createPortal' -e 'data-onboarding-overlay' -e 'data-slot="dialog-overlay"' -e "data-slot='dialog-overlay'" -e 'DialogPortal' -e 'SheetPortal' src/renderer/src | sed -n '1,260p'
printf '%s\n' '--- app root and shell structure ---'
nl -ba src/renderer/src/app-shell/AppRootSurfaces.tsx | sed -n '300,390p'
nl -ba src/renderer/src/App.tsx | sed -n '85,125p'
printf '%s\n' '--- modal scene test and status-bar references ---'
nl -ba tests/e2e/modal-scene-blur.spec.ts | sed -n '1,100p'
rg -n -F --glob '*.{tsx,ts,css}' -e 'status-bar' -e 'StatusBar' -e 'usage' -e 'pulse' -e 'animate-' src/renderer/src | sed -n '1,260p'

Repository: stablyai/orca

Length of output: 41746


Script executed:

set -eu
printf '%s\n' '--- overlay primitive imports and implementations ---'
rg -n -F --glob '*.{tsx,ts}' -e 'from "@radix-ui/react-dialog"' -e "from '@radix-ui/react-dialog'" -e 'DialogPortal' -e 'SheetPortal' -e 'data-slot="dialog-overlay"' -e 'data-slot="sheet-overlay"' src/renderer/src | sed -n '1,220p'
printf '%s\n' '--- app root portal block ---'
nl -ba src/renderer/src/app-shell/AppRootSurfaces.tsx | sed -n '340,385p'
printf '%s\n' '--- changed selectors and test expectations ---'
nl -ba src/renderer/src/assets/main.css | sed -n '862,890p'
nl -ba tests/e2e/modal-scene-blur.spec.ts | sed -n '20,70p'

Repository: stablyai/orca

Length of output: 8353


Script executed:

set -eu
printf '%s\n' '--- dialog primitive ---'
nl -ba src/renderer/src/components/ui/dialog.tsx | sed -n '1,145p'
printf '%s\n' '--- sheet primitive ---'
nl -ba src/renderer/src/components/ui/sheet.tsx | sed -n '1,115p'
printf '%s\n' '--- existing overlay rules ---'
nl -ba src/renderer/src/assets/main.css | sed -n '475,555p'
nl -ba src/renderer/src/assets/main.css | sed -n '930,955p'
printf '%s\n' '--- onboarding overlay declaration ---'
nl -ba src/renderer/src/components/onboarding/OnboardingFlow.tsx | sed -n '185,215p'

Repository: stablyai/orca

Length of output: 18056


Script executed:

set -eu
rg -n -F --glob '*.{tsx,ts}' -e 'Skip onboarding?' -e 'No, keep going' -e 'requestSkipConfirmation' src/renderer/src/components/onboarding

Repository: stablyai/orca

Length of output: 875


Script executed:

set -eu
nl -ba src/renderer/src/components/onboarding/OnboardingSkipConfirmationDialog.tsx | sed -n '1,130p'

Repository: stablyai/orca

Length of output: 2407


Remove the scene filters and update the blur assertions.

The dialog and sheet portals render their overlays as direct body children. The first rule therefore applies filter: blur(2px) to the visible workspace.

Onboarding is also portaled to document.body. Its skip confirmation uses DialogContent, so the later dialog overlay matches the sibling selector and blurs the full-screen onboarding content.

This contradicts the sharp-background trade-off. Remove both filters and change the affected E2E expectations from blur(2px) to none.

The source establishes the visual regression, but it does not establish a material GPU-memory consequence.

Suggested CSS fix
--- "a/src/renderer/src/assets/main.css"
+++ "b/src/renderer/src/assets/main.css"
@@ -865,22 +865,6 @@
   overflow: hidden;
 }
 
-/* Blur source regions independently so status-bar animation cannot re-filter the workspace. */
-body:has(> [data-slot='dialog-overlay'], > [data-slot='sheet-overlay'], > [data-onboarding-overlay])
-  .app-layout
-  > :not(.window-controls) {
-  filter: blur(2px);
-}
-
-body
-  > :is(
-    [data-slot='dialog-content'],
-    [data-slot='command-dialog-content'],
-    [data-slot='sheet-content'],
-    [data-onboarding-overlay]
-  ):has(~ [data-slot='dialog-overlay'], ~ [data-slot='sheet-overlay']) {
-  filter: blur(2px);
-}
 
 /* Why: native windows have a stable content box and need no wake-time viewport reflow. */
 html.native-shell,

m4air and others added 3 commits October 26, 2026 14:14
…p pulse

A full-window backdrop-filter is re-blurred on every frame while anything
beneath it animates, which held ~370 MB of extra GPU render-pass textures and
swapchain buffers while a dialog, sheet, palette or onboarding was open. The
2px scrim blur is barely visible under the black scrim, so keep the dim only
(5 points darker to keep the background as recessive) and drop the panel blur
that sits under a 96%-opaque background. The status-bar usage chip also pulsed
forever before its first fetch (unfocused windows never poll); show it static
until a fetch is actually running.
@OrcaWin
OrcaWin force-pushed the ram/no-fullscreen-blur branch from 4bd95b7 to 972d996 Compare October 26, 2026 21:15

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments: 1
src/main/ipc/worktrees-create-first-work-rename.test.ts: 1

52-52: Trivial · Maintainability & Code Quality · Quick win

Use typed importOriginal in the five mock factories.

These casts violate the repository rule. No test-specific exception applies. Replace them with the typed importOriginal form already used in this file. This is a maintainability refactor, not a demonstrated runtime or test failure.

Suggested fix
-    (await importOriginal()) as Record<string, unknown>
+    await importOriginal<Record<string, unknown>>()

Apply this replacement at lines 52, 57, 62, 67, and 72.


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: aed33108-fcf3-43d2-9d53-bc86fe31cb9b
Commits

Reviewing files that changed from the base of the PR and between e871fb9 and 4bd95b7.

Files selected for processing: 8
  • src/main/ai-vault/session-scanner-pi-omp-shared-root.test.ts
  • src/main/ipc/worktrees-create-first-work-rename.test.ts
  • src/main/ipc/worktrees-create-metadata-persistence.test.ts
  • src/main/runtime/runtime-local-worktree-create-pr-conflict.test.ts
  • src/main/runtime/runtime-local-worktree-create-test-harness.ts
  • src/main/runtime/runtime-local-worktree-create.test.ts
  • src/renderer/src/components/native-chat/NativeChatStructuredPaneMenuItems.tsx
  • src/renderer/src/components/native-chat/use-native-chat-context-menu.tsx
Files with no reviewable changes: 1
  • src/main/ipc/worktrees-create-metadata-persistence.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

@OrcaWin
OrcaWin merged commit a93e31a into main Oct 26, 2026
67 of 69 checks passed
nwparker added a commit that referenced this pull request Oct 27, 2026
…P screenshots return

Windows composites nothing for an idle window that was never shown, so
Page.captureScreenshot under ORCA_BACKGROUND_LAUNCH=1 waited forever once the
status-bar usage chip stopped animating (#33799).
nwparker added a commit that referenced this pull request Oct 27, 2026
…P screenshots return

Windows composites nothing for an idle window that was never shown, so
Page.captureScreenshot under ORCA_BACKGROUND_LAUNCH=1 waited forever once the
status-bar usage chip stopped animating (#33799).
nwparker added a commit that referenced this pull request Oct 27, 2026
…ackground launches (#34197)

* fix(window): repaint a never-shown background window on Windows so CDP screenshots return

Windows composites nothing for an idle window that was never shown, so
Page.captureScreenshot under ORCA_BACKGROUND_LAUNCH=1 waited forever once the
status-bar usage chip stopped animating (#33799).

* fix(window): pump hidden-window frames from the renderer on Windows background launches

Main-process webContents.invalidate() did not make a never-shown Windows window
produce a frame CDP can capture (verified on Windows 11). A one-frame root
background flip from the preload does, so main stamps a preload flag for
ORCA_BACKGROUND_LAUNCH=1 on win32 and tells the preload to stop on first show.

* fix(window): stop the hidden-frame pump only on main's show signal, including after reloads

A never-shown Windows window can report visible after a desktop change, so the
preload no longer stops on visibilitychange; main re-sends the stop after any
reload once the window has been shown.

* fix(window): register the frame-pump stop with on('show') so every window double supports it

createMainWindow suites simulate win32 under the runner's ORCA_BACKGROUND_LAUNCH=1,
so they install the pump stop; their window doubles implement on() but not once().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant