Editor has no undo history panel — user can press Cmd+Z to step back one entry at a time but can't see what's in the stack, jump to a specific entry, or clear it #206
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-attention
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/Kimi_Agent_Brother_10_Digitizing_App#206
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Finding
src/components/editor/Editor.tsxhas ahistory: StitchPath[]andhistoryIndex: number(line 670+). ThehandleUndoandhandleRedocallbacks step through the stack one entry at a time.There's no UI to:
The user can press Cmd+Z to step back, but if they want to go back 30 edits, they have to press Cmd+Z 30 times. There's no panel showing the stack.
grep -rn 'HistoryPanel\|historyPanel' src/components/editor/returns 0 hits.Where
src/pages/Editor.tsx:670+(history,historyIndex)src/components/editor/useKeyboardShortcuts.ts(Cmd+Z, Cmd+Shift+Z bindings)src/components/editor/(no HistoryPanel.tsx)src/components/editor/EditorRightPanel.tsx(no history section)Suggested fix shape
Add a "History" section to the right panel (the panel already has Path Properties, Stitch Properties, etc., as collapsible sections):
jumpToHistoryEntry(i)setshistoryIndextoiand updatespathsto the snapshot at that index. The "active" entry is the current state.Tradeoffs:
paths(not deltas). Each entry is potentially a deep JSON copy. A panel showing 50 entries with full data is fine memory-wise (the snapshots are already in memory) but the labels are "Edit 1, Edit 2, …" because the snapshots don't carry labels.Severity
Low. The user can step through with Cmd+Z. Power users with long sessions want to jump to specific entries.
Discovered by
Gap analysis (2026-10-02) of editor history UI.
Related
Shipped in
33d7f4b— Editor undo history panel.Right panel now has a collapsible History section showing every undo snapshot as a clickable row (newest first). Each row jumps straight to that snapshot via the new handleJumpToHistoryEntry. The section header has Undo / Redo / Clear buttons that reuse the same callbacks already wired into the keyboard shortcuts and EditorHeader. The Clear button resets the stack to a single baseline snapshot so Cmd+Z still works but old deep copies are released.
Tests: 978 passed, 1 skipped (+13 new pinning the section contract: row count, newest-first ordering, active highlight, click wiring, button-disabled flags, back-compat hiding when history props omitted). Lint clean. tsc -b clean.