Undo/redo for encounter actions #16
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Summary
Add undo/redo capability for all encounter state changes using a snapshot (memento) approach. Before each state transition, the current
Encounteris pushed to an undo stack (capped at 50 entries). The stacks are persisted to localStorage so undo/redo history survives page refresh. Triggered via UI buttons and keyboard shortcuts (Ctrl+Z / Ctrl+Shift+Z, Cmd on Mac).Acceptance Criteria
Dependencies
Context
docs/agents/research/2026-03-25-combat-state.md(see "Follow-up Analysis" section)