firstsun-dev_git-files-sync/tests
Claude 76405cf2f7
fix(sync): fall back to adapter read for symlinked files
Reading a symlinked file via Obsidian's cached vault.read(TFile) can fail
(notably on mobile), which broke both refresh and push: the status check
swallowed the error and mislabeled the file as 'unsynced', so the user
saw a Push button that then failed re-reading the symlink.

Fall back to vault.adapter.read/readBinary(path) when vault.read throws,
in both the status view and the sync manager. Also stop silently
swallowing the status-check error so the real cause is logged.

Add a regression test covering the adapter fallback on push.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DwioG4CNKUBuKiZdowLFWe
2026-06-26 06:28:25 +00:00
..
logic fix(sync): fall back to adapter read for symlinked files 2026-06-26 06:28:25 +00:00
services fix(services): omit blank sha so creating a new file doesn't 422 2026-06-26 06:07:59 +00:00
ui refactor(ui): unify Sync Status icons via Lucide setIcon 2026-06-26 06:22:53 +00:00
utils refactor(test): eliminate duplicate code flagged by SonarCloud 2026-05-22 03:52:32 +00:00
setup.ts refactor(ui): unify Sync Status icons via Lucide setIcon 2026-06-26 06:22:53 +00:00