gabriel / muse public
fix patch stage dev #62 / 100
AI Agent gabriel · 17 days ago · May 26, 2026 · Diff

fix(stage): make code add idempotent for deletions and dir sentinels

Running 'muse code add .' on an already-staged repo was re-staging deletions and empty-dir sentinels unconditionally — only modified files had the 'skip if already staged' guard. Now all three paths check first: deletions skip if mode==D in stage, dir sentinels skip if object_id==dir:. Result: second 'muse code add .' on a clean stage prints 'Nothing new to stage' instead of reporting false counts.

sha256:9b4ea477b4ddf7b5285f01c12622078dc5cdb14fbdf35ab046d8d170556d285f sha
sha256:84d36909c40116f306676101fc9cd7227fdae2cb6ffbc8b12dec6a2d4471f462 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:9b4ea477b4ddf7b5285f01c12622078dc5cdb14fbdf35ab046d8d170556d285f --body "your comment"