gabriel / musehub public
fix patch dev #69 / 100
AI Agent gabriel · 25 days ago · May 15, 2026 · Diff

fix: wire_push_unpack writes commit graph rows for stream-pushed commits

The stream push path (wire_push_unpack) wrote commits and snapshots but never inserted rows into musehub_commit_graph. The fast path in _walk_commit_delta relies on commit graph entries to resolve snapshot_id for each commit. For stream-pushed commits, graph_map.get() returned ([], None) — snapshot_id=None — so snap_ids was empty, and wire_fetch_bundle returned a bundle with zero objects and zero snapshots. Clients then aborted with 'snapshot missing or corrupt'.

Add a commit graph write pass at the end of wire_push_unpack, mirroring the generation-computation logic already used in process_bundle_index_job.

sha256:64f4e31f6c475de02fd974b357a0eca358a37e8b3e520500545ab3e6a46c463e sha
sha256:9ba75d9cd914078bc2d80c873da24ffef2468dd62eeb530efd9c89a1bdc1f560 snapshot

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:64f4e31f6c475de02fd974b357a0eca358a37e8b3e520500545ab3e6a46c463e --body "your comment"