diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index ea9e11ed29..2e33ceccd4 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -1466,7 +1466,7 @@ export default function ChatView({ threadId }: ChatViewProps) { // with the worktree cwd/env instead of briefly using the project root. dispatch({ type: "SET_THREAD_BRANCH", - threadId: activeThread.id, + threadId: threadIdForSend, branch: result.worktree.branch, worktreePath: result.worktree.path, });