Preset state lost on service restart #5

Closed
opened 2026-06-14 05:18:24 +00:00 by shawn · 1 comment
Owner

When the pedal service restarts, it forgets the active preset and jumps to bank 1 program 1 (empty default). The UI shows an empty chain.

Root cause: PresetManager saves current_bank/current_program on change but doesn't reload them on init.

Fix:

  • Load saved state in PresetManager.init() or select() default path
  • Activate the last preset during startup so the UI shows correct blocks
  • State endpoint should handle 'no valid preset' gracefully

Labels: bug, priority/high

When the pedal service restarts, it forgets the active preset and jumps to bank 1 program 1 (empty default). The UI shows an empty chain. Root cause: PresetManager saves current_bank/current_program on change but doesn't reload them on init. Fix: - Load saved state in PresetManager.__init__() or select() default path - Activate the last preset during startup so the UI shows correct blocks - State endpoint should handle 'no valid preset' gracefully Labels: bug, priority/high
shawn closed this issue 2026-06-18 23:14:02 +00:00
Author
Owner

Fixed in commit 47bb535. Added self.restore_state() call at the end of PresetManager.init() so last active preset is tracked after boot.

Fixed in commit 47bb535. Added self.restore_state() call at the end of PresetManager.__init__() so last active preset is tracked after boot.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shawn/pi-multifx-pedal#5