Skip to content

Commit 677fe73

Browse files
committed
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.
1 parent 1705361 commit 677fe73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/mobile/src/features/threads/NewTaskDraftScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ export function NewTaskDraftScreen(props: {
369369
modelSelection: modelWithOptions,
370370
envMode: flow.workspaceMode,
371371
branch: flow.selectedBranchName,
372-
worktreePath: flow.workspaceMode === "worktree" ? null : flow.selectedWorktreePath,
372+
worktreePath: flow.workspaceMode === "worktree" ? flow.selectedWorktreePath : null,
373373
runtimeMode: flow.runtimeMode,
374374
interactionMode: flow.interactionMode,
375375
initialMessageText: flow.prompt.trim(),

0 commit comments

Comments
 (0)