Fix inverted worktree path condition in NewTaskDraftScreen

The ternary was backwards: it passed null when workspaceMode was 'worktree'
and the selectedWorktreePath when it was not. Flipped the condition so
worktree mode correctly receives the selected worktree path.
This commit is contained in:
Cursor Agent committed 2026-04-14 21:16:18 +00:00
1 parent 1705361ec3
commit 677fe73be8
1 file changed
+1 -1
@@ -369,7 +369,7 @@ export function NewTaskDraftScreen(props: {
modelSelection: modelWithOptions,
envMode: flow.workspaceMode,
branch: flow.selectedBranchName,
worktreePath: flow.workspaceMode === "worktree" ? null : flow.selectedWorktreePath,
worktreePath: flow.workspaceMode === "worktree" ? flow.selectedWorktreePath : null,
runtimeMode: flow.runtimeMode,
interactionMode: flow.interactionMode,
initialMessageText: flow.prompt.trim(),