From 677fe73be80a8e608022cea1a2aae5cf31e2e881 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 14 Apr 2026 21:16:18 +0000 Subject: [PATCH] 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. --- apps/mobile/src/features/threads/NewTaskDraftScreen.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mobile/src/features/threads/NewTaskDraftScreen.tsx b/apps/mobile/src/features/threads/NewTaskDraftScreen.tsx index 21f9daa4d1..9a46e80b01 100644 --- a/apps/mobile/src/features/threads/NewTaskDraftScreen.tsx +++ b/apps/mobile/src/features/threads/NewTaskDraftScreen.tsx @@ -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(),