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.
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.