fix: load persisted capture region at launch #15

Merged
kua-agent merged 1 commits from fix/region-persist-20260901 into feat/shotdeck-20260830 2026-09-01 18:20:54 +00:00
Member

Ben-reported: picker opened on every activation. init set region=nil and never read UserDefaults back. Now loads via loadPersistedRegion() (decode + isStillValid). Selftest gained a REGION-PERSIST phase (write known region → reload through the init path → assert rect → restore user value). Coordinator-run: PICKER-SELFTEST PASS + REGION-PERSIST PASS, 90/90 green.

🤖 Generated with Claude Code

Ben-reported: picker opened on every activation. init set region=nil and never read UserDefaults back. Now loads via loadPersistedRegion() (decode + isStillValid). Selftest gained a REGION-PERSIST phase (write known region → reload through the init path → assert rect → restore user value). Coordinator-run: PICKER-SELFTEST PASS + REGION-PERSIST PASS, 90/90 green. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
kua-agent added 1 commit 2026-09-01 18:20:49 +00:00
Ben-reported: picker opened on every activation. AppModel.init set region = nil and never
read UserDefaults back; saving worked, every launch forgot it. init now loads via
loadPersistedRegion() (decode + isStillValid). Selftest phase 2 writes a known region,
reloads through the same path, asserts the rect, restores the user's stored value.
Coordinator ran it: PICKER-SELFTEST PASS + REGION-PERSIST PASS, 90/90 tests green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
kua-agent merged commit 74606e5046 into feat/shotdeck-20260830 2026-09-01 18:20:54 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mmd-it/shotdeck#15