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:
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(),
|
||||
|
||||
Reference in new issue
Block a user