TypeScript
Capture threadId before async send flow
Julius Marmingef6e7166e7955
diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsxindex ea9e11ed29b..2e33ceccd4a 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,});