Files
orca/src/renderer
19ab395a26 fix(browser): keep webview guests alive across worktree switches (#6408)
* fix(browser): keep webview guests alive across worktree switches

Electron <webview> guests are destroyed when their DOM parent is removed.
When switching worktrees, BrowserPane chrome unmounts and previously tore
down the webview, forcing a reload on return.

Introduce persistent page viewports inside overlay slots so webviews stay
in a stable parent without keeping the full React chrome mounted. On
worktree switch, park hidden viewports instead of destroying guests;
explicit close paths still call destroyPersistentWebview.

Fixes stablyai/orca#6385

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(browser): harden persistent webview viewports

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
2026-06-26 00:55:09 -07:00
..
2026-03-17 01:40:24 -07:00
2026-05-30 13:09:17 -07:00