Keep one visible-session owner for the window pill, hide it under frozen overlays, and dispose its embed and WebContents with the window. Simplify Linux lock detection to login1 plus the existing idle fallback, add the same-user User.Display lookup when PID lookup fails, and stop retrying when gdbus is absent.
Update the unit and component fixtures for the current pane client and pill lifecycle.
User decisions:
- Keep the top-center pill and preserved browser state
- Use one visible pane as the pill owner; no extra windows
- Remove the redundant xscreensaver watcher and second source combiner
- Fall back to login1 User.Display only when PID session lookup fails
Use the existing host embed layout for a small, trusted WebContentsView pill instead of any overlay window. The pill stays top-center, follows the page without manual movement, and reads the app renderer's resolved theme and translation on change.
Remove the parented window, ImageView canvas protocol, manual show/follow/shape logic, and the associated 700ms polling. A bounded embed consumes clicks and focus only inside its small rectangle.
User decisions:
- Click-through is not required; accept the small pill rectangle
- Keep the top-center Disconnected pill with native page state preservation
- Use a simple window-free host-managed WebContentsView
Draw the pill in the trusted app renderer with its resolved theme, font and label, then show the PNG in a lazy, click-through native image shell. Remove the per-page BrowserWindow, its web renderer, the 700ms presentation polling and app-window executeJavaScript, the auxiliary-window marker, and the host-wide IPC/storage/menu/lifecycle/appearance exceptions.
Also correct the xscreensaver watch parser: real output uses UNBLANK for unlock, while BLANK and RUN leave the lock state unchanged.
User decisions:
- Simplify the pill without a separate BrowserWindow
- Keep the top-center pill and native click-through/focus
- Match the lock handling to the real xscreensaver event names
Move the app-only auxiliary-window marker to the workspace-only builtin entry and identify windows with a globally registered symbol, so bundled copies share the mark without exposing the helper as public SDK.
User decisions:
- Keep the marker shared across module loaders with a global symbol
- Do not expose app-only window helpers in the public SDK
Skip the privileged bridge and session-end wiring for child overlays before their renderer loads, in addition to the trusted-URL check on the transport port.
User decisions:
- Keep the top-center Disconnected pill above the live page
On Linux without a compositor the shaped pill window paints its background at the rounded edge. Match it to the resolved theme surface instead of leaving a dark rim.
User decisions:
- Keep the top-center Disconnected pill
Keep the top-center Disconnected pill, but make it one lazy auxiliary window per main window instead of one per page. Mark overlays so privileged IPC, storage broadcasts, appearance, menu and lifecycle skip them, and resolve the pill's label, font and colors from the browser catalog and app tokens. Destroy the pill before profiling cleanup.
Release records with the window-scoped live key, keep Linux login1/elogind and screensaver hints separate from the idle fallback, and remember sessions woken while the screen is locked so unlock connects them after a cold start.
User decisions:
- Keep the top-center Disconnected pill over the live page
- Keep pages, tabs and state across lock and reconnect
- Use the app's own theme and language for the pill
- Use Linux login1/elogind when available, with screensaver and idle probes as fallback
Keep the browser page alive and interactive behind a top-center Disconnected pill that passes clicks through to the native view. Preserve tabs, pages and page state across lock and server loss, and release window records even when no binding is active.
User decisions:
- Show the pill above the native view without dimming or freezing the page
- Keep the same tabs, pages and live state across screen lock and reconnection
- Detect Linux screen locks through logind/elogind when available, with the screensaver and idle probes as fallback
discardRecord now removes its own record from the map by identity, memoizes closure so dispose and register cannot double-close it, and is awaited by dispose. Failed creations clean up their window listeners; an owner that disappears after the await defers cleanup so a concurrent register can still claim the record. A claimed record is never discarded by a losing registration.
User decisions:
- Keep the lock disconnect and unlock reconnect behavior
- Preserve live browser state across lock and reconnect
- Do not discard a shared record claimed by a concurrent register
Concurrent registrations for one session now share a single in-flight record, re-check ownership after the await, and discard unowned records when the pane disposes or locks. Proxy tunnels are bound to the upstream that opened them, so old tunnel IDs can never be sent over a replacement connection. Explicit lock and sleep states outrank idle probes until unlock/resume. The disconnected notice row and its English string are removed; connection state remains on the pane.
User decisions:
- Keep the lock disconnect and unlock reconnect behavior
- Preserve live browser state across lock and reconnect
- Remove the disconnected notice row and its i18n string
The desktop now keeps each session's browser partition, proxy, pages and tab IDs in main across a server disconnect and a screen lock. A locked screen ends the server attachment, stops retries and commands, and revokes the browser tools; unlocking reattaches the same WebContents, rebinds the tunnel and restores the tools. In-flight requests are cancelled, no command is replayed, and permanent closes (window close, session removal, plugin dispose) still release everything.
User decisions:
- Lock ends the browser attachment and removes the browser tools
- Unlock reattaches the same live pages automatically
- Browser pages, tab IDs, profile, cookies, storage, form and scroll state survive
- Always on, with no setting
The desktop watches for the lock screen (macOS and Windows events, the
idle state on Linux), sleep, and a macOS switch to another login session.
While locked, main ends every browser attachment, so the server drops the
browser tools from its sessions, and refuses new ones. Windows keep the
tabs and attach again when the screen unlocks.
User decisions:
- Disable client-side tools whenever the screen is locked, on every platform where it can be detected
- The tools just disappear; no special message for the agent
- Always on, with no setting