Persist ride state across app restart and crash (#12) #98
No reviewers
Labels
No labels
area:companion
area:docs
area:shared
area:tooling
area:watchapp
blocker
kind:chore
kind:feature
kind:spike
kind:test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
robert/PedalPebble!98
Loading…
Reference in a new issue
No description provided.
Delete branch "area/persist-ride-state"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #12.
See the commit message for the full breakdown (what's persisted vs. reset and why, the 30s checkpoint-throttling rationale, how the resume/discard prompt reuses carousel.c's existing ConfirmKind pattern, and exactly what was verified in the emery emulator via a real SIGKILL force-kill/relaunch cycle for both the resume and discard paths).
Not verified: the physical-watch half of the acceptance criterion ("and on the watch") — needs Robert's real emery/gabbro hardware, not done in this sandbox.
Builds on #11 (PR #84, state.c's ride state machine) and #58 (PR #81, page.h's persist-key registry / persist_read_data/persist_write_data pattern).