You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Undo of deleting a tag leaves its blocks untagged and adds Root to its parents #1305
Create a tag "Movie" that extends the tag "Topic", and tag a block with #Movie.
Delete the tag "Movie".
Press Ctrl+Z.
Expected
"Movie" is back, still extends only "Topic", and the block is tagged #Movie again.
Actual
"Movie" is back, but it now extends both "Root" and "Topic", and the block has no tag.
Notes
The block losing its tag looks like the same family as #1302: undo of a delete does not restore the references other nodes held to the deleted entity. The added "Root" parent is a separate symptom; its cause is not established.
Found with a property-based test of random outliner operation sequences with undo and redo, replayed on upstream master d9d625847.
Fixed on graphs without sync by logseq/logseq#13786. Undo now replays the delete's recorded datoms, so the block is tagged #Movie again and Movie still extends only Topic, with no Root Tag added. local-graph-undo-of-tag-delete-restores-tags-and-parent-test pins it. A synced graph still undoes through the old inverse op, which this PR does not change.
Activity
yuxi-liu-wired commentedon Oct 27, 2026
Fixed on graphs without sync by logseq/logseq#13786. Undo now replays the delete's recorded datoms, so the block is tagged #Movie again and Movie still extends only Topic, with no Root Tag added.
local-graph-undo-of-tag-delete-restores-tags-and-parent-testpins it. A synced graph still undoes through the old inverse op, which this PR does not change.