-
fix: RDP canvas re-measures container on tab switch
All checks were successfulBuild & Sign Wraith / Build Windows + Sign (push) Successful in 3m44sreleased this
2026-03-30 16:58:57 +00:00 | 6 commits to main since this releaseWhen switching from SSH back to RDP, the canvas retained the resolution
from when the copilot panel was open — even after closing the panel.
The ResizeObserver doesn't fire while the tab is hidden (v-show/display),
so the container size change goes unnoticed.Fix: On tab activation, double-rAF waits for layout, measures the
container via getBoundingClientRect, compares with canvas.width/height,
and sends rdp_resize if they differ. This ensures the RDP session
always matches the current available space.Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
Downloads