logseq / logseq/logseq

All text deleted after a newly added tag

Open
#12,016 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Clojure
Stars
45k
Forks
2.8k
Avg merge
1d 22h
Merged PRs (30d)
105

Description

### Search first

- [x] I searched and no similar issues were found

### What Happened?

I added a new tag in a sentence and all text after it was deleted.

### Reproduce the Bug

0. i'm on a page
1. i select the text of an "unlinked reference" to edit it (maybe also happens with linked referenced or journal/page block)
2. i select one word (in this case, the word that is the reason for it to be an unlinked reference. alias of page title. might not be relevant)
3. i delete the word
4. i add paranthese: `[[]]`
5. I write tag word in them
6. i hit enter, to select the tag
7. sometimes: the text after the tag get's deleted! (**DATA LOSS!**)

Not always reproducible. Had it once now and was able to reproduce it in the linked video.

### Expected Behavior

No data loss when using a software. Don't remove random data i haven't touched.

### Screenshots

Video: https://youtu.be/A2x4kc3rh-g?si=UaO2CVozJG-BP7mj&t=182

### Desktop or Mobile Platform Information

Desktop App 0.10.12 (from nixpkgs stable)
running on NixOS 25.05.807027.3ff0e34b1383

### Additional Context

The Video show also some UX issues, but i don't have energy to report them all. So here is just the issue that lead to data loss.

### Are you willing to submit a PR? If you know how to fix the bug.

- [ ] I'm willing to submit a PR (Thank you!)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported sequence in the desktop app: edit an unlinked reference, add a tag with `[[]]`, and press Enter, checking whether following text disappears. The issue names no source files or tests; done means the tag can be selected without deleting untouched text and the intermittent data-loss case is covered by a regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure, nixos
Domain
desktop, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.