You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
laptop-autocommit never pulls and swallows push failures: laptop primaries wedge silently (2076 behind) #3174
laptop-autocommit never pulls and swallows push failures — laptop primaries wedge silently
Found during the 2026-10-31 hatch-autocommit wedge repair (dezren39/hatch-personal#10), where the sandbox script wedged via rebase-pull. The laptop's Nix-built laptop-autocommit (nixos/home/laptop-autocommit.sh, from #1723) has a worse variant of the same disease:
Its whole sync logic was: git add -u -> commit -> push only if ahead, with failure swallowed (|| true).
It never pulls at all. Once a laptop repo diverged from origin, every push was rejected non-fast-forward, invisibly, forever, while the unit showed success every minute.
Evidence
Laptop hatch-personal primary at discovery: 6 ahead / 2076 behind origin/main (the originating repair brief had the numbers transposed; verified live). It had stopped receiving origin content — including merged PRs — while the sandbox side kept publishing.
The one-time repair merged origin in (merge commit f00e1e23a in hatch-personal; pool-change-ledger append-vs-append resolved as chronological union) and pushed to 0/0. The other two swept repos (~/hatch, ~/.openclaw) share the same exposure.
The sandbox twin wedged the same week via pull --rebase + abort + exit 0 (hatch-personal#10).
Fix
Drew's directive (2026-10-31): primaries merge-pull main and push back, stopping only on real conflicts. The fix PR rewrites the sync section to fetch -> merge-pull --no-rebase --autostash when behind -> push; real conflicts capture conflicted paths by name, abort, restore the autostash, and exit 1; rejected pushes exit 1. Scratch-tested both paths. Tracked-only scope and the daily untracked review are unchanged.
Deploy note: the script is baked into the Nix store via writeShellScriptBin (readFile ...), so the fix takes effect on the next home-manager/NixOS switch after merge; until then the running binary is the old logic (primaries are 0/0 post-repair, so exposure is future divergence only).
Deploy caveat from the issue stands: the script is baked into the Nix store via writeShellScriptBin (readFile ...), so the fix takes effect on the next home-manager/NixOS switch on the laptop; exposure until then is future divergence only (primaries were repaired to 0/0 at discovery).
Activity
dezren39 commentedon Oct 31, 2026
Intake review
Verdict: already resolved — closing as completed.
fix(laptop-autocommit): merge-pull + loud failures (was: never pulls, swallows push errors)) merged 2026-10-31T18:19:39Z, merge commitf1594c7eb5ed44e50f70df1b65cbdfeba9eb30ed. Its body states "Full diagnosis and evidence: laptop-autocommit never pulls and swallows push failures: laptop primaries wedge silently (2076 behind) #3174" and implements exactly the fix this issue prescribes: fetch → merge-pull--no-rebase --autostashwhen behind → push; real conflicts abort loudly with exit 1; rejected pushes exit 1 (no more|| trueswallow).writeShellScriptBin (readFile ...), so the fix takes effect on the next home-manager/NixOS switch on the laptop; exposure until then is future divergence only (primaries were repaired to 0/0 at discovery).— fleet monitor (repo-fleet-monitor), intake pass 2026-10-31