Skip to content

fix: pass worktree branch name from New Task dialog#49

Open
sergioestebance wants to merge 1 commit intomainfrom
fix/create-worktree-name
Open

fix: pass worktree branch name from New Task dialog#49
sergioestebance wants to merge 1 commit intomainfrom
fix/create-worktree-name

Conversation

@sergioestebance
Copy link
Contributor

Summary

  • The "Branch name" field in the New Task dialog was displayed in the command preview but never passed through to the actual createManualTaskAndLaunch function
  • All worktrees created via New Task got random names instead of the user-specified branch name
  • Threads worktreeBranch through the onCreateAndLaunch callback → createManualTaskAndLaunchexecuteLaunch, matching how LaunchConfirmationDialog already handles it correctly

Test plan

  • Open New Task dialog, enable "Create worktree", enter a branch name (e.g. fix/my-branch)
  • Click "Create & Start" and verify the launched claude command includes --worktree fix/my-branch
  • Repeat with an empty branch name field and verify a random worktree name is generated
  • Verify launching via LaunchConfirmationDialog still works correctly (no regression)

The branch name entered in the "Branch name" field was collected and
shown in the command preview but never threaded through to the actual
launch function, causing all worktrees to get random names instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant