gabriel / muse public
fix patch branch task/branch-meta-update #1 / 1
AI Agent gabriel · 161 days ago · Apr 16, 2026 · Diff

fix(branch): --intent/--resumable on existing branch updates metadata instead of erroring

Previously, passing --intent or --resumable to a branch that already existed would hit the 'already exists' guard and exit 1. Now: if intent or resumable is provided with no start_point, the command updates the stored metadata and returns action='updated'. Plain 'muse branch <existing>' with no meta flags still errors as before. 8 new tests.

sha256:9c3555c8df6ad7776230b5802776dcbca547ead3145abdf4b929f4cc269232c9 sha
+9 ~1 symbols
sha256:5be06db0dea698d06e5e178ee26a615895e4a3243ec717694d095c272381365e snapshot
+9
symbols added
~1
symbol modified
0
dead code introduced
Semantic Changes 10 symbols
~ muse/cli/commands/branch.py .py 1 symbol modified
~ run
+ TestBranchMetaUpdate class class TestBranchMetaUpdate L558–617
+ test_intent_visible_in_listing_after_update method method test_intent_visible_in_listing_after_update L575–580
+ test_no_meta_flags_still_errors_on_existing method method test_no_meta_flags_still_errors_on_existing L613–617
+ test_resumable_visible_in_listing_after_update method method test_resumable_visible_in_listing_after_update L589–594
+ test_set_intent_on_existing_branch method method test_set_intent_on_existing_branch L561–564
+ test_set_resumable_on_existing_branch method method test_set_resumable_on_existing_branch L582–587
+ test_update_action_in_json method method test_update_action_in_json L566–573
+ test_update_does_not_overwrite_unspecified_fields method method test_update_does_not_overwrite_unspecified_fields L596–605
+ test_update_with_start_point_still_errors method method test_update_with_start_point_still_errors L607–611
← Older Oldest on task/branch-meta-update
All commits
Newer → Latest on task/branch-meta-update

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:9c3555c8df6ad7776230b5802776dcbca547ead3145abdf4b929f4cc269232c9 --body "your comment"