Skip to content

fix(web): a browser tab in picture-in-picture no longer shows through the translucent sidebar - #63

Merged
aaf1007 merged 1 commit into
mainfrom
aaf1007/sidebar-parked-preview
Nov 28, 2026
Merged

aaf1007 merged 1 commit into
mainfrom
aaf1007/sidebar-parked-preview

Conversation

@aaf1007

@aaf1007 aaf1007 commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Summary

With the translucent sidebar on, any browser tab that keeps rendering while out of view (in picture-in-picture, recording, or driven by an agent in the background) showed through the sidebar. The tab's page appeared as a sharp, offset copy with a hard edge where it ended.

Loopy keeps those tabs painting by parking their webview at the window's top-left, behind the app. The page behind the sidebar is transparent in translucent mode, so the parked webview was visible. The parked webview is now transparent. It still renders and captures, but it can't be seen.

 resolveHostedBrowserWebviewWrapperStyle
   if active: place at the panel rect
   if renderingActive (PiP / recording / background):
     left 0, top 0, zIndex -1, visibility visible
+    opacity 0
   else: park offscreen

Evidence

Dev desktop, translucent sidebar, glass opacity 40%. A browser tab showing a red-on-white test page is popped into PiP, then the floating preview is closed so the webview parks.

  • Before: Parked PiP webview showing through the sidebar
    After: Sidebar clean with the same tab still in PiP

The PiP window still updated live after the change: page content edited through the webview showed up in it. Moving the tab back into the panel shows it normally, not blank.

hostedBrowserWebviewStyle.test.ts: "keeps a parked capture guest in the viewport but transparent" fails before the change and passes after.

Merge Danger

Door: two-way

Blast Radius: browser tabs that render while out of view

Only the parked state changes. If a future Electron stops compositing transparent webviews, PiP, recording, and background screenshots would freeze or go blank; I checked PiP in the current version.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available. Your 56 included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 8c433da and c82c1ed.

Files selected for processing: 2

  • apps/web/src/browser/hostedBrowserWebviewStyle.test.ts
  • apps/web/src/browser/hostedBrowserWebviewStyle.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@aaf1007
aaf1007 merged commit cb6acfa into main Nov 28, 2026
2 checks passed
@aaf1007
aaf1007 deleted the aaf1007/sidebar-parked-preview branch November 28, 2026 07:48
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