Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

Capture threadId before async send flow

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