mirror of
https://github.com/OpenSquawk/OpenSquawk
synced 2026-07-31 22:05:34 +08:00
Screenshots: html2canvas 1.4.1 only parses rgb/hsl and throws on color-mix(), which the app uses app-wide; the throw was swallowed so no screenshot was ever captured. Swap to modern-screenshot (native SVG foreignObject — supports color-mix/oklch), capture before opening the dialog, surface failures instead of hiding them, and show a capture spinner on the Bug button. State restore: the old handler only patched local vars/flags and loaded the tree — it never entered the monitor screen or created a backend session, so nothing happened. New restoreBugReportState() reuses startMonitoring() to spin up a real session for the same flight/scenario from the snapshot, overlays saved variables/flags, and replays the captured comm log. The Python backend has no mid-session resume, so the session restarts at the flow start and the captured state id is surfaced in a banner. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>