quickadd icon indicating copy to clipboard operation
quickadd copied to clipboard

[BUG] Capture operation via Advanced URI replaces un-synced file

Open jbstavers opened this issue 6 months ago • 0 comments

Describe the bug When using a Capture operation with QuickAdd via Advanced URI, my changes overwrite an existing file created on another device.

To Reproduce I have a simple Capture operation called "Inbox" that appends text to my Daily Note. If the daily note doesn't exist, the Capture operation creates it using a template. (The text is added to a section titled "##Inbox" and formatted as a task.) I have a single vault, synced using Obsidian Sync. The problem arises as follows:

  1. I created the day's Daily Note on my laptop (MacBook)
  2. Without opening Obsidian manually on my mobile device (iOS or iPadOS) I activate the "Inbox" Capture operation via Advanced URI (via an Apple Shortcut).
  3. QuickAdd functions as expected, except it creates a new Daily Note, which subsequently syncs to my desktop, replacing the one I created earlier.

The problem can be reproduced going the other direction as well, but only if Obsidian is not running on my desktop when I initiate the QuickAdd on desktop.

Expected behavior QuickAdd should append to the previously created Daily Note.

Desktop (please complete the following information):

  • OS: MacOS 15.5
  • Browser NA
  • Version Obsidian App 1.8.10

Smartphone (please complete the following information):

  • Device: iPhone 16 Pro
  • OS: iOS 18.5
  • Browser NA
  • Version Obsidian 1.8.10

Additional context The problem does not occur if the Daily Note exists on my mobile device, even if it has been subsequently changed on desktop. QuickAdd properly appends to the latest version, rather than using the out of date version on mobile. Also, it doesn't matter how long I take to fill out the QuickAdd input box once I've triggered it via Advanced URI. So it seems that QuickAdd is checking for the existence of the Daily Note when it first opens, before Sync has a chance to run, and so it creates a new file (overwriting the synced one) without confirming there is no such file once Sync as run.

jbstavers avatar Jun 12 '25 17:06 jbstavers