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
Redo of creating a namespaced page creates new pages instead of restoring them #1298
Pages "ns" and "child" come back with their uuids, so references and sync keep pointing at them.
Actual
Redo creates new "ns" and "child" pages with new uuids. A tag "ns/child" behaves the same. A page with a plain title such as "alpha" comes back with its uuid.
Cause
created-page-uuid-from-tx-data in deps/outliner/src/logseq/outliner/op/construct.cljc looks for a created entity whose title equals the op's title "ns/child", but the created pages are titled "ns" and "child". The recorded create op therefore carries no :uuid, the op has no semantic inverse (undo falls back to reversing the raw transaction), and redo replays :create-page without a uuid.
Found with a property-based test of random outliner operation sequences with undo and redo.
The same cause also shows up through sync, without redo.
Alice goes offline, creates the page "ns/child" and presses Ctrl+Z. Both pages are gone.
Bob, online, edits any block.
Alice goes online.
The pages "ns" and "child" come back, for Alice and on the server. When Alice goes online, her client takes off her 2 unconfirmed requests, applies Bob's edit, and applies them again: the create runs again, and the undo is dropped. The create is uploaded, its undo is not.
The same steps on the 2 open pull requests:
#13449 (ea7da4346): "child" goes away, "ns" stays, for Alice and on the server.
#13453 (46a7bd259): both pages go away, as expected.
Found with a 2-person property-based test of undo under sync, replayed on upstream master 16c4ed1a0 and on both pull requests.
Activity
yuxi-liu-wired commentedon Sep 26, 2026
The same cause also shows up through sync, without redo.
The pages "ns" and "child" come back, for Alice and on the server. When Alice goes online, her client takes off her 2 unconfirmed requests, applies Bob's edit, and applies them again: the create runs again, and the undo is dropped. The create is uploaded, its undo is not.
The same steps on the 2 open pull requests:
ea7da4346): "child" goes away, "ns" stays, for Alice and on the server.46a7bd259): both pages go away, as expected.Found with a 2-person property-based test of undo under sync, replayed on upstream master
16c4ed1a0and on both pull requests.