Skip to content

Wikilinks for Database Notes Fail to Resolve in Remote Vault #527

Closed

Description

@naingyeminn

Issue Summary

Wikilinks pointing to notes located inside a database (e.g., Test.base) do not resolve successfully when operating in a Remote Vault. The application treats these existing notes as missing. However, the exact same linking behavior works perfectly when using a Local Vault.

Environment

  • Failing Workspace: Remote Vault
  • Working Workspace: Local Vault

Description

There is a discrepancy in how wikilinks are indexed and resolved depending on the vault type.

Remote Vault (Failing): As seen in the following screenshot, when a wikilink is created targeting a file within a .base directory, the "Connections" side panel lists the link under Links From Here with a "CREATE" badge. The system states: "No note resolves this wikilink yet. Click to create it."

Image

Local Vault (Working): As seen in the following screenshot, when the same link format [[Reference 01]] is used, the "Connections" panel successfully resolves the link to the path inbox/Test.base/Reference 01.md. It displays a "HOVER" badge, and the hover preview successfully loads the contents of the database note.

Image

Steps to Reproduce

  1. Open ZenNotes and connect to a Remote Vault.
  2. Ensure you have a database folder structure (e.g., inbox/Test.base/).
  3. Create a note that resides within this database (e.g., Reference 01.md).
  4. Open a different note in the workspace (e.g., Welcome).
  5. Type a wikilink targeting the database note (e.g., [[Reference 01]] or the full path).
  6. Observe the link failing in the Connections panel (shows "CREATE").
  7. Switch to a Local Vault and repeat steps 2-5.
  8. Observe the link resolving successfully in the Connections panel (shows "HOVER" and allows preview).

Expected Behavior

Wikilinks targeting files inside database .base folders should resolve consistently across both Local and Remote Vaults. In the Remote Vault, the Connections panel should register the active outbound link, display the correct file path, and allow hover previews, matching the Local Vault's behavior.

Actual Behavior

The Remote Vault fails to index or resolve the database file path, prompting the user to create a new note instead of linking to the existing one.

Activity

  1. adibhanna commented on Aug 2, 2026

    @adibhanna
    Contributor

    Fixed in 4e9f8d3 on the v2.21.0 branch. Thank you for the two screenshots side by side: "same link, works local, fails remote" pointed straight at the server's note list, which is where it was.

    What was happening

    The server walked past .base folders when listing notes. That was deliberate once, and half of it still is: a database's data.csv and schema.json have no business showing up as loose notes or attachments, and the sidebar should draw the database itself rather than its directory. But the record pages inside are notes. You open them, write in them, and link to them, exactly as your screenshots show. A note the server refuses to list is a note the client cannot resolve a link to, so every wikilink into a database resolved to nothing and the Connections panel offered to create one.

    Nothing was wrong with the wikilink resolver; it was answering correctly about a list that was missing the note.

    The fix is to stop skipping the folder when listing notes. Only .md files are collected, so data.csv and schema.json still cannot surface as notes, and ListFolders / ListAssets keep skipping it so the sidebar is unchanged.

    ScanTasks had the same skip, so a - [ ] task written in a record page was invisible on a remote vault while showing up locally. Same rule, so it went with it.

    Verified by running a real server against a vault holding inbox/Test.base/Reference 01.md and connecting the app to it as a remote workspace, before and after:

    note list Connections panel task in a record page
    before inbox/Welcome.md only CREATE badge, "No note resolves this wikilink" not listed
    after Welcome and inbox/Test.base/Reference 01.md HOVER badge, resolves to inbox/Test.base/Reference 01.md listed

    The sidebar still shows Test as a database rather than a folder full of notes, which was the thing worth not breaking.

    Ships in 2.21.0.

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