Skip to content

fix(browser): keep side-panel pages available in background sessions - #1843

Merged
vastsa merged 1 commit into
mainfrom
feat/browser-background-lifecycle
Oct 23, 2026
Merged

vastsa merged 1 commit into
mainfrom
feat/browser-background-lifecycle

Conversation

@vastsa

@vastsa vastsa commented Oct 23, 2026

Copy link
Copy Markdown
Owner

Summary

Keep the browser in the side work panel while making its session-owned page execution independent of panel visibility, conversation selection, Settings navigation, and renderer reload.

  • Resolve every Browser tool action from trusted invocation session identity, not the visible page.
  • Retain hidden Chromium guests in an invisible sandboxed backing host; preserve input/capture, live forms, and page identity without stealing focus.
  • Separate background tab metadata from the selected plugin chrome, and restore missing side-panel tabs after renderer reload.
  • Release pages/CDP/watchers/backing hosts on explicit tab/session close, plugin disable, and app/window shutdown.
  • Update runtime/UX/security specs, ADRs, unreleased notes, and regression/E2E coverage.

Browser page-count indicators and cross-session sharing are not included. No database migration, restart DOM persistence, or raw-CDP permission expansion.

Task candidate validation

  • Candidate: c3e0bbdad717bbf9132858ad977fc4fd30777b04
  • Base main: 20e8e1c0a39f68849891807125a1f38e7bad7fd4
  • After rebasing onto the latest main: 211 related tests passed, Desktop typecheck/build passed, and all three native browser suites passed again.
  • Desktop complete suite: 4305 passed, 3 existing environment-dependent skips.
  • Shared complete suite: 1281 passed (source and built test modules); explicit protocol suite: 15 passed.
  • Desktop typecheck, workspace/desktop build, Biome lint, style-token guard, architecture guard, agent-policy sync, and PR-base check passed.
  • Docs: 86 locale pairs and 587 documentation pages verified; VitePress build passed.
  • Native Electron suites passed on the exact candidate: e2e-browser-background.mjs, e2e-browser-capture-resize.mjs, e2e-browser-local-file-access.mjs.
  • Isolated Desktop user path uses the real Composer → sidecar → plugin child → BrowserHost wiring with a localhost SSE model. A continues filling/clicking/capturing while B remains visible; panel collapse, Settings, and native shell reload preserve A's original page, form value, and button count.

Environment: macOS, Electron 43.6.0 / Chromium 150.0.7871.250, Node 24.14.0. Existing host dependencies/Rust binary reused, synthetic profiles and artifacts isolated in scratch. No real provider requests, credentials, or paid APIs.

verify:ui:* was not run; Rust source is unchanged. The repository CI validates Linux/Windows and the PR integration gates. An optional secondary review was cancelled without a final report; no review result is claimed.

Decouple browser execution from side-panel presentation so switching
conversations, collapsing the panel, or reloading the renderer no longer
interrupts a session's page. Preserve trusted session routing and sandbox
boundaries while retaining a hidden native backing host for Chromium.

Cover background input, capture, renderer recovery, and resource cleanup
with regression and native Electron tests.
Copilot AI balanced review requested due to automatic review settings October 23, 2026 09:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vastsa

vastsa commented Oct 23, 2026

Copy link
Copy Markdown
Owner Author

PR integration validation passed on merge ref 3118b9b2e8c7369ca65a3ab03edb0b4c47e28693 (parents: main 20e8e1c0a39f68849891807125a1f38e7bad7fd4, head c3e0bbdad717bbf9132858ad977fc4fd30777b04). Its executable tree matches the validated request head. All three isolated native browser suites passed again: background lifecycle, capture/resize, and local-file access. The CI Electron job failed earlier in the unchanged provider optional-client-certificate test, before browser suites started; the failed job is being retried rather than bypassed. Landing remains blocked until checks are green.

@vastsa
vastsa merged commit e7d8765 into main Oct 23, 2026
9 of 10 checks passed
@vastsa
vastsa deleted the feat/browser-background-lifecycle branch November 6, 2026 04:24
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.

2 participants