`start_pen_path` was pushing the new Path node onto the page first and only then calling `snapshot_for_history()` — the snapshot ended up including the new node, so a subsequent undo restored "node already present" and the path stayed on screen. Take the snapshot before any mutation; finish_pen_path still gates the push on `anchor_count >= 2` so single-anchor paths don't pollute the undo stack. |
||
|---|---|---|
| .. | ||
| openpencil-app | ||
| openpencil-desktop | ||
| openpencil-shell-core | ||
| openpencil-shell-native | ||
| openpencil-shell-web | ||
| pen-codegen | ||
| pen-core | ||
| pen-engine | ||
| pen-figma | ||
| pen-types | ||
| wasm-libc-shim | ||
| CLAUDE.md | ||