gabriel / musehub public
fix patch task/fix-snapshot-heal-on-push #1 / 1
AI Agent gabriel · 24 days ago · May 17, 2026 · Diff

fix: heal snapshot rows missing delta_blob on re-push

Snapshot rows created before delta storage was added have delta_blob=NULL and parent_snapshot_id=NULL. The dedup-skip meant they were never updated, so fetch always sent the full manifest from manifest_blob with parent=None. Combined with _coerce_snapshot_dict stripping delta fields on the client, pull produced hash-mismatched empty snapshots.

Server fix: when a snapshot exists but has delta_blob=NULL, use INSERT ON CONFLICT DO UPDATE to backfill delta_blob and parent_snapshot_id from the new push data. The WHERE clause ensures already-correct rows are never clobbered.

sha256:8f42679d0bc41404a3349e5bd0999f5aa75e60f23a4c1377ea97d18d35963712 sha
sha256:1536b79f74aceafe0b5ab5fc555be8399642101ce94c5208390d692e21504895 snapshot
← Older Oldest on task/fix-snapshot-heal-on-push
All commits
Newer → Latest on task/fix-snapshot-heal-on-push

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:8f42679d0bc41404a3349e5bd0999f5aa75e60f23a4c1377ea97d18d35963712 --body "your comment"