758 B
758 B
Session undo and redo implementation
- Extend snapshot-store tests with changed and unchanged edits, undo/redo ordering, a new edit after undo, the 50-step bound, queued writes, failed writes, import/reset boundaries, and session reload behavior. Run them red.
- Add history state and queued undo/redo operations in
snapshot.ts. Ensure history changes only after persistence commits. Run the store tests green. - Add header controls and keyboard handling with an interaction test for disabled states, error display, and native editable shortcuts. Run it red, implement, then run it green.
- Update architecture and user-facing documentation. Run
bun test,bunx tsc --noEmit, build, and inspect desktop/mobile browser captures.