I’ve been noticing this behavior as well, primarily with my Daily note, which I start on my desktop usually, and then later in the day may add something from my phone.
I have the Daily notes plugin setup with a Template, and the setting to “Open daily note on startup” enabled.
I believe what’s happening is that my phone starts Obsidian up, and goes to open the Daily note. It doesn’t seem like the Sync has happened (or completed) yet, so it creates a new file using the defined Template. Sync then runs and sees a more recent version of the Daily note file, and uploads that, overwriting the version from my desktop.
I can mitigate for myself for the time being by not using the “Open daily note on startup” option for the time being.
So repo steps for me at least (happens every time):
- Make sure Daily note hasn’t been created yet on either device
- Have Daily notes plugin setup with “Template” set and “Open daily note on startup” turned on for both Desktop and Phone
- Open Obsidian only on Desktop, so that Daily Note is created
- Make edits to Daily note (and ensure it Syncs)
- Open Obsidian on phone
- Edits are overwritten with newly created Daily note from phone with Template
Sync Log
Desktop:
2022-03-04 16:22 - Connecting to server
2022-03-04 16:22 - Connection successful. Detecting changes...
2022-03-04 16:22 - Uploading file Journal/2022-03-04.md
2022-03-04 16:22 - Upload complete Journal/2022-03-04.md
2022-03-04 16:22 - Server pushed [MARS] Journal/2022-03-04.md
2022-03-04 16:22 - Fully synced
2022-03-04 16:22 - Uploading file Journal/2022-03-04.md
2022-03-04 16:22 - Upload complete Journal/2022-03-04.md
2022-03-04 16:22 - Server pushed [MARS] Journal/2022-03-04.md
2022-03-04 16:22 - Fully synced
2022-03-04 16:22 - Server pushed [Pixel 3] Journal/2022-03-04.md
2022-03-04 16:22 - Downloading file Journal/2022-03-04.md
2022-03-04 16:22 - Downloading complete Journal/2022-03-04.md
2022-03-04 16:22 - Accepted Journal/2022-03-04.md
2022-03-04 16:22 - Fully synced
Phone:
2022-03-04 16:22 - Connecting to server
2022-03-04 16:22 - Connection successful. Detecting changes...
2022-03-04 16:22 - Server pushed [MARS] Journal/2022-03-04.md
2022-03-04 16:22 - Merging conflicted file Journal/2022-03-04.md
2022-03-04 16:22 - Accepted Journal/2022-03-04.md
2022-03-04 16:22 - Uploading file Journal/2022-03-04.md
2022-03-04 16:22 - Upload complete Journal/2022-03-04.md
2022-03-04 16:22 - Server pushed [Pixel 3] Journal/2022-03-04.md
2022-03-04 16:22 - Fully synced
I can see that a merge is happening, but maybe because the file is considered to be newly created (and so all edits are “newer”), it uses that as the source of truth?
Obsidian Desktop v0.13.23
Obsidian Mobile (Android): v1.1.0