Skip to content

Editor stuck after inserting today's date link via /today command: Enter/Escape do nothing; save fails until link brackets removed #1293

Closed

Description

@mschiff

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

  1. Open the journal page of the current day (2026-09-25) in the main graph.
  2. Create a new block and invoke the /today slash command, which inserts a date link for today.
  3. Try to save the block / leave the editor with Enter or Escape.
  4. Observe: nothing happens; the block cannot be saved.
  5. Remove the brackets around the date link.
  6. 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

  1. added 2 commits that reference this issue on Oct 28, 2026
    5c8b23c
    377b899
  2. yuxi-liu-wired commented on Oct 28, 2026

    @yuxi-liu-wired

    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.

  3. added 8 commits that reference this issue on Oct 29, 2026
    240c720
    eba8c00
    437f0e2
    ebc01b6
    bacd2da
    9a602c7
    ad80576
    cf420d6
  4. added 10 commits that reference this issue on Nov 11, 2026
    5b09ee4
    6ce941d
    857cb2b
    8541058
    5dd6e61
    43c8983
    63103cf
    79a24dc
    a3783b8
    51de3bc
  5. added 8 commits that reference this issue on Nov 18, 2026
    6fec68e
    2b143d0
    5a25186
    ca773be
    6b61031
    4bf4127
    8698873
    0237e7f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions