Repository navigation
Description
Search first
- I searched and no similar issues were found
What Happened?
While typing a new block in my journal, I inserted today's date link using the /today slash command. Afterwards the editor got stuck and I could not leave the block anymore:
- Neither pressing Enter nor Escape did anything.
- I could not save the block while it contained the date link.
- After removing the brackets around the date link, the block could be saved and the editor worked again.
Reproduction attempts in a separate playground graph failed — the issue did not occur there, and after switching back to the main graph the issue was also gone there. However, the main graph log shows related errors during that period (see Additional Context).
Reproduce the Bug
- Open the journal page of the current day (2026-09-25) in the main graph.
- Create a new block and invoke the
/todayslash command, which inserts a date link for today. - Try to save the block / leave the editor with Enter or Escape.
- Observe: nothing happens; the block cannot be saved.
- Remove the brackets around the date link.
- Observe: the block can be saved and the editor responds again.
Environment: Settings → Date format is set to E, dd.MM.yyyy (resulting in journal page titles like Fri, 25.09.2026, differing from the default Sep 25th, 2026).
Note: Not reliably reproducible — did not occur in a playground graph, and disappeared in the main graph afterwards. It is unclear whether the issue is specific to the date link for today (journal day) or to date links in general.
Expected Behavior
Inserting a date link via /today should not break the editor. Enter/Escape should always leave the editor, and saving a block with a date link must work. A date link must not trigger an update of protected journal-page attributes.
Screenshots
No response
Files
No response
Browser, Desktop or Mobile Platform Information
- Platform: Linux Desktop
- App version: 2.0.1-alpha+nightly.20260924
Additional Context
The main graph log shows several of the following severe errors over a period of ~7 minutes matching the incident (2026-09-25T11:41:39Z):
2026-09-25T11:41:39.363Z [severe] [frontend.worker.db-worker-node] {:db-worker-node-invoke-failed {:status 500, :code :exception, :error #error {:message "journal page protected attr updated", :data {:type :journal-page-protected-attr-updated, :entity-id 9654, :attr :block/name, :before "sep 25th, 2026", :after "fri, 25.09.2026", :journal-day 20260925}}, :message "journal page protected attr updated", :method :thread-api/apply-outliner-ops}, :line 329}
2026-09-25T11:43:46.550Z [info] [frontend.worker.db-worker-node] {:db-worker-node-version {:build-time "2026-09-24T18:09:48.773583120Z", :revision "d05c625-dirty"}, :line 602}The error suggests that inserting the date link attempted to update the protected attribute block/name of the journal page (from "sep 25th, 2026" to "fri, 25.09.2026"), which was rejected. My configured date format is E, dd.MM.yyyy, so the expected journal page title is Fri, 25.09.2026 — the mismatch with the default-format name "sep 25th, 2026" is likely the cause.
Are you willing to submit a PR? If you know how to fix the bug.
- I'm willing to submit a PR (Thank you!)
Activity
fix(outliner): saving a ref to today's journal under a custom date fo…
fix(outliner): a date ref the editor parses as a journal and the grap…
yuxi-liu-wired commentedon Oct 28, 2026
Fixed in logseq/logseq#13883 (fix(journal): find journal pages by their day, not their formatted title). Its description has the cause and the test that pins it; it fails on current master and passes with the fix.
fix(outliner): saving a ref to today's journal under a custom date fo…
fix(outliner): a date ref the editor parses as a journal and the grap…
fix(outliner): saving a ref to today's journal under a custom date fo…
fix(outliner): a date ref the editor parses as a journal and the grap…
fix(outliner): saving a ref to today's journal under a custom date fo…
fix(outliner): a date ref the editor parses as a journal and the grap…
fix(outliner): saving a ref to today's journal under a custom date fo…
fix(outliner): a date ref the editor parses as a journal and the grap…
fix(outliner): saving a ref to today's journal under a custom date fo…
fix(outliner): a date ref the editor parses as a journal and the grap…
fix(outliner): saving a ref to today's journal under a custom date fo…
fix(outliner): a date ref the editor parses as a journal and the grap…
fix(outliner): saving a ref to today's journal under a custom date fo…
fix(outliner): a date ref the editor parses as a journal and the grap…
fix(outliner): saving a ref to today's journal under a custom date fo…
fix(outliner): a date ref the editor parses as a journal and the grap…
fix(outliner): saving a ref to today's journal under a custom date fo…
fix(outliner): a date ref the editor parses as a journal and the grap…
fix(outliner): saving a ref to today's journal under a custom date fo…
fix(outliner): a date ref the editor parses as a journal and the grap…
fix(outliner): saving a ref to today's journal under a custom date fo…
fix(outliner): a date ref the editor parses as a journal and the grap…
fix(outliner): saving a ref to today's journal under a custom date fo…
fix(outliner): a date ref the editor parses as a journal and the grap…
fix(outliner): saving a ref to today's journal under a custom date fo…
fix(outliner): a date ref the editor parses as a journal and the grap…