From 7ef525effac6b6058b3555103dde9dfe09ec71f9 Mon Sep 17 00:00:00 2001 From: Shirone Date: Tue, 13 Jan 2026 18:51:20 +0100 Subject: [PATCH] fix: clarify comments on branch name handling in BoardView Updated comments in BoardView to better explain the behavior of the 'current' work mode. The changes specify that an empty string clears the branch assignment, allowing work to proceed on the main/current branch. This enhances code readability and understanding of branch management logic. --- apps/ui/src/components/views/board-view.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/ui/src/components/views/board-view.tsx b/apps/ui/src/components/views/board-view.tsx index 8f43b677..f51357d0 100644 --- a/apps/ui/src/components/views/board-view.tsx +++ b/apps/ui/src/components/views/board-view.tsx @@ -503,14 +503,14 @@ export function BoardView() { try { // Determine final branch name based on work mode: - // - 'current': No branch name, work on current branch (no worktree) + // - 'current': Empty string to clear branch assignment (work on main/current branch) // - 'auto': Auto-generate branch name based on current branch // - 'custom': Use the provided branch name let finalBranchName: string | undefined; if (workMode === 'current') { - // No worktree isolation - work directly on current branch - finalBranchName = undefined; + // Empty string clears the branch assignment, moving features to main/current branch + finalBranchName = ''; } else if (workMode === 'auto') { // Auto-generate a branch name based on current branch and timestamp const baseBranch =