feat(git): point madt_branch_create's "already exists" refusal at madt_switch #870

Open
opened 2026-10-22 17:31:00 +00:00 by hexajon · 0 comments
Owner

The gap

madt_branch_create refuses a name that already exists (internal/service/git/branch_create.go:72, CLI internal/cmd/git/branch.go:294). The refusal names no next step. The usual intent is to move to that branch, and madt_switch (#867) does that.

What I want

  • The "already exists" refusal names madt_switch(branch="<name>") on MCP and madtea switch <name> on the CLI, through the same surface-text seam that the commit guard uses.

Acceptance criteria

  • The MCP refusal names madt_switch, and the CLI refusal names madtea switch.
  • A test covers each surface.

Depends on #867.

## The gap `madt_branch_create` refuses a name that already exists (`internal/service/git/branch_create.go:72`, CLI `internal/cmd/git/branch.go:294`). The refusal names no next step. The usual intent is to move to that branch, and `madt_switch` (#867) does that. ## What I want - The "already exists" refusal names `madt_switch(branch="<name>")` on MCP and `madtea switch <name>` on the CLI, through the same surface-text seam that the commit guard uses. ## Acceptance criteria - [ ] The MCP refusal names `madt_switch`, and the CLI refusal names `madtea switch`. - [ ] A test covers each surface. Depends on #867.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
sixfold-space/madtea#870
No description provided.