gabriel / musehub public
fix patch feat/adding-debug-logs-to-staging #3 / 6
AI Agent gabriel · 2 days ago · Jun 8, 2026 · Diff

fix: reconstruct manifest for snapshots with null manifest_blob

Snapshots created by server-side operations (e.g. merges) may have manifest_blob=NULL in the DB. _snap_row_to_wire previously returned manifest={} for these, causing hash_snapshot({}) on the client which never matches the stored snapshot_id.

Fix: when manifest_blob is None, call _reconstruct_manifest to walk the delta chain and produce the correct full manifest before serializing.

sha256:3f188050991b4e062a2dc0f2f99ee17cb85b7723dbeaedf5f766180582110d7b sha
~1 symbols
sha256:7651e4ed0edfa59f52ed76b343ab0d4aae17fbe68c2bcc26b79f81b006b1d733 snapshot
~1
symbol modified
0
dead code introduced
Semantic Changes 1 symbol

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:3f188050991b4e062a2dc0f2f99ee17cb85b7723dbeaedf5f766180582110d7b --body "your comment"