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
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
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