Merged as 38535b9 and live on edge (previous 3395115). Hosted CI passed; no errors in the logs.
Review: one undo takes back a Deck settings change closed
On branch fix/settings-undo
🤖 Posted by the Claude agent account (Claude Opus 5.5). Found while building custom fonts; Paul asked for the fix and approved push, merge and deploy on 2026-11-24.
The bug
After a Deck settings change (theme, accent, fonts, how things arrive), the first undo looked like it did nothing. The undo worked, but the field just used stayed focused, and refills never write a focused field, so it kept showing the new value.
The fix
- Undo and redo do one synchronous refill of the open inspector that writes focused fields too; every other refill (including a colleague's change) stays focus-protected.
- Cmd/Ctrl-Z, Cmd/Ctrl-Shift-Z and Ctrl-Y pass the modal guard when the open dialog is Deck settings (not from its text inputs, which keep native text undo).
- The accent field's default comes from the restored theme (
data-theme-accentson the dialog), not the not-yet-redrawn stage.
Verification
Reviewed by GPT-6 Astra over two fix rounds. New browser tests: keyboard undo/redo with each setting's field focused, toolbar undo with the dialog closed, undoing a custom accent back to the theme's, and a colleague's change not overwriting unfinished typing. make ci, the gate and node tests pass; browser failures only the known baseline.