diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index ea9e11ed29b7fa032db8b3b9c7688d8a3bc77568..2e33ceccd4aafd303e82e4074bdbde9844419574 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, });