fix(sync): run watched sync when a scheduled --sync hits the running instance #12
Reference in New Issue
Block a user
Delete Branch "fix/scheduled-sync-running-instance"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found during an end-to-end review of the watched-source auto-download feature.
Bug: the Windows daily-sync task launches
AeroFetch.exe --sync, but the single-instance lock routes that relaunch to thesecond-instancehandler whenever AeroFetch is already open. The handler only focused the window and looked for a link -- it never checkedisSyncLaunch(argv)-- so the sync never ran. The daily auto-download of new watched-source uploads silently did nothing for minimize-to-tray / always-on users (and the relaunch stole window focus each day).Fix: a new
runWatchedSyncmain->renderer push. On a--syncrelaunch the handler nudges the renderer to runsyncWatched()instead of focusing, so the daily sync fires whether AeroFetch was closed or already running.Verified green: typecheck, lint, 416 tests, full build. The live second-instance path needs a real install smoke test (same category as the rest of the scheduler/protocol wiring, which unit tests and the browser preview can't exercise).