You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(panel): live-update when unfocused + non-distorting responsive resize (v0.6.2) (#16)
Two field-reported issues.
1. "Only live-navigates when the view is focused." The screencast stalled unless the
panel had focus. Fixed defensively across the plausible causes:
- Pin the page focused/visible over CDP (Emulation.setFocusEmulationEnabled) so it
never throttles rendering when the operator's console view isn't the focused one.
- Headed windows launch with anti-backgrounding flags
(--disable-renderer-backgrounding, --disable-backgrounding-occluded-windows,
--disable-background-timer-throttling) so an occluded window keeps drawing.
- The panel reconnects (if the socket dropped) / forces a fresh frame on
visibilitychange + focus, so switching back snaps to current instantly.
2. "Responsive is buggy." Root cause: the canvas stretched the old-aspect frame while
the viewport round-tripped, so it distorted; and a drag re-armed the screencast on
every observation.
- canvas object-fit: contain — letterbox during the catch-up instead of distorting.
- letterbox-aware input coordinate mapping.
- dedupe set_viewport server-side (skip unchanged size) + debounce 180→220ms.
No stream regression: nav still paints every page, resize still reshapes to the dock
(validated live). 47 host-free tests pass; ruff clean.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments