sync.sh now posts a per-machine coord component (claudetools/git_sync_<MACHINE>) flipped syncing -> idle/degraded around each run, so the fleet can see who is mid-sync / last sync state. Fully best-effort: a 3s-capped curl guarded with || true + return 0, emitted only after the lock is acquired (contention/exit-75 emits nothing), and finalize captures $? first and returns it so the signal can never change the sync's real exit code. Reviewed (verified it cannot break sync).
31 KiB
Executable File
31 KiB
Executable File