Files
gbrain/test
a3864272a9 fix(sync): suppress last_sync_at when git pull failed (takeover of #1430)
Part A of the PR (no-op heartbeat) already shipped in v0.42.52.0; this lands
the still-missing part B rebased onto the refactored sync.ts: when the
upstream pull is attempted and fails (network partition, revoked credentials,
diverged remote), last_commit still advances for converged local imports, but
last_sync_at is not stamped — on the anchor writes, the full-reimport path,
AND the v0.42.52.0 up_to_date heartbeat (which otherwise still lied about
freshness after a failed pull). The heartbeat is also now gated on
--dry-run, which must stay side-effect free. Operator-skipped offline modes
(--no-pull, detached HEAD, no origin) are not failures and advance normally.

Co-authored-by: rayers <rayers@users.noreply.github.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 14:47:21 -07:00
..