gabriel / muse public
fix patch task/fix-short-id-display #1 / 1
AI Agent gabriel · 60 days ago · Apr 17, 2026 · Diff

fix: restore sha256: prefix in all text output short IDs

The 'sha256:' prefix is canonical — it identifies the hash algorithm. Strip it from disk paths (Windows constraint) but preserve it everywhere the user or agent sees a commit ID.

Before: commit_id.removeprefix('sha256:')[:8] → 'a1b2c3d4' After: 'sha256:' + commit_id.removeprefix('sha256:')[:8] → 'sha256:a1b2c3d4'

Commands fixed: commit.py, checkout.py, cherry_pick.py (6 text output sites) Tests updated: test_cmd_commit.py, test_cmd_checkout.py, test_cmd_cherry_pick_hardening.py

TestTextOutputHex classes now assert sha256: prefix IS present and that exactly 8 meaningful hex chars follow it.

sha256:38d631372251d1dc8fb2d0c7df5faebd3a2d153e270bc328ac089b1a66d78578 sha
sha256:8570ce727819992370c963010125f63d1b1de42ebb6297f8d618940360a3d571 snapshot
← Older Oldest on task/fix-short-id-display
All commits
Newer → Latest on task/fix-short-id-display

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:38d631372251d1dc8fb2d0c7df5faebd3a2d153e270bc328ac089b1a66d78578 --body "your comment"