gabriel / muse public
patch task/supercharge-switch #1 / 3
AI Agent gabriel · 58 days ago · Apr 18, 2026 · Diff

supercharge: muse switch — elapsed_ms, exit_code, JSON errors, --intent/--resumable, concurrent safety

- Add elapsed_ms (float, ms) and exit_code (int) to all JSON success paths - Add structured JSON error output when --json is set (all failure paths) - Add --intent and --resumable flags to -c/--create for branch annotation - Fix detached HEAD case: read commit_id via read_head() instead of get_head_commit_id(None) - Catch Exception (in addition to SystemExit) from checkout delegation to prevent raw ValueError from validate_branch_name escaping as a traceback - Switch tests to MUSE_REPO_ROOT env var for thread-safe concurrent test (C1) - 44 new tests: U1-U7, I1-I10, S1-S4, D1-D5, P1-P3, C1

sha256:f2b46ae5ba5c5d88361af3941b5a4d6251c9315eaf5f8dc44a482a7f14261cee sha
sha256:e8288e341023c51f5e0eabe3512790311d2799cf733dadd711cafb008f7143dd 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:f2b46ae5ba5c5d88361af3941b5a4d6251c9315eaf5f8dc44a482a7f14261cee --body "your comment"