Skip to content

[Bug] Drawings created at the vault root are moved into assets/ on next launch and disappear from the app #1086

Closed

Description

@daffamumtaz2361

Version Details

ZenNotes 2.86.0 (desktop)
OS: Ubuntu 24.04.5 LTS (kernel 6.8.0-147-generic), x64
Engine: Electron 41.10.7 (Chromium 146.0.7680.216, Node 24.18.0)
Install: AppImage

Description

A new drawing created at the vault root works normally, but after closing and reopening the app it is gone from the sidebar. The .excalidraw file has been moved into <vault>/assets/, which the vault never lists, so the drawing can no longer be opened from the app.

To reproduce

  1. Settings → Vault → Notes: Primary notes location = Vault root, Default drawings location = Primary location (the defaults).
  2. Create a new drawing (New Drawing). It is written to <vault>/Untitled drawing.excalidraw and opens fine.
  3. Quit and reopen ZenNotes.
  4. The drawing is no longer in the sidebar; the file is now at <vault>/assets/Untitled drawing.excalidraw.

If assets/ already contains a file with the same name, the drawing stays put.

Expected

Drawings stay where they were created. The Assets view already treats .excalidraw as "a first-class file type (listed with notes), not a generic attachment"

Activity

  1. adibhanna commented on Nov 19, 2026

    @adibhanna
    Contributor

    Thanks for the precise report, the detail about a same-named file in assets/ keeping the drawing in place pointed straight at the cause.

    ZenNotes runs a migration on every vault open that moves loose root-level attachments into assets/. It skipped notes and databases but not drawings, so in a Vault Root vault every new drawing was moved on the next launch, into a folder neither the sidebar nor the Assets view lists. Drawings at the vault root now stay where they were created; images, PDFs and other loose files still move as before.

    Fixed in 4580d09, shipping in 2.88.0.

    To recover drawings that were already moved: quit ZenNotes and move <vault>/assets/*.excalidraw back to the vault root. Embeds like ![[Untitled drawing.excalidraw]] resolve by name, so they keep working wherever the file lives.

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