openpencil/crates/op-editor-core
Kayshen-X 2fd88b601e fix(web): drop redundant external-apply dirty bump
The `if undoable { mark_document_changed() }` added to the live-sync glue was
redundant: `replace_document_with_undo` already bumps the content revision via
`history_push_past` -> `mark_document_changed`, so an undoable external apply is
dirty by construction. Remove the glue's manual bump (and its now-wrong comment);
the post-apply pair capture + `note_synced` stay put, since that pair already
carries the history bump.

Retarget the editor-core test to lock the real invariant:
`replace_document_with_undo` ALONE leaves the state dirty (revision != saved),
while plain `replace_document` stays clean -- so a future refactor of
`history_push_past` can't silently break external-apply dirtiness.
2026-07-17 04:06:17 +08:00
..
assets Merge remote-tracking branch 'origin/codex/jian-widgets-plan' into v0.8.0-new 2026-06-14 13:56:56 +08:00
src fix(web): drop redundant external-apply dirty bump 2026-07-17 04:06:17 +08:00
tests test: decouple document fixtures from product releases 2026-07-15 21:17:20 +08:00
Cargo.toml feat(ai): agentic design tool-loop, multi-chat tabs, #27 panel restyle 2026-06-25 00:12:45 +08:00