The best way to control Claude Code, Codex and more from any computer or phone
Capture threadId before async send flow
- Store `activeThread.id` once at send start and reuse it - Prevents updates/errors from targeting the wrong thread during async worktree/send steps
Julius Marminge committed
Feb 26, 2026 at 18:43 UTC
f6e7166e7955af6c06881cfecf6d869854cf191e
1 file changed
+1
-1
apps/web/src/components/ChatView.tsx
+1
-1
@@ -1466,7 +1466,7 @@ export default function ChatView({ threadId }: ChatViewProps) {
1466
// with the worktree cwd/env instead of briefly using the project root.
1467
dispatch({
1468
type: "SET_THREAD_BRANCH",
1469
- threadId: activeThread.id,
1469
+ threadId: threadIdForSend,
1470
branch: result.worktree.branch,
1471
worktreePath: result.worktree.path,
1472
});