Skip to content

Commit 67982b1

Browse files
committed
fix(web): plan implementation threads start on the checkout's live branch
1 parent ae6f1e5 commit 67982b1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/web/src/components/ChatView.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10460,7 +10460,8 @@ export default function ChatView(props: ChatViewProps) {
1046010460
modelSelection: nextThreadModelSelection,
1046110461
runtimeMode: defaultRuntimeMode,
1046210462
interactionMode: "default",
10463-
branch: activeThreadBranch,
10463+
// The new thread runs in the same checkout, so it starts on its live branch.
10464+
branch: checkoutBranchMismatch?.currentBranch ?? activeThreadBranch,
1046410465
worktreePath: activeThread.worktreePath,
1046510466
createdAt,
1046610467
},
@@ -10548,6 +10549,7 @@ export default function ChatView(props: ChatViewProps) {
1054810549
activeThread,
1054910550
beginLocalDispatch,
1055010551
activeEnvironmentUnavailable,
10552+
checkoutBranchMismatch,
1055110553
createThread,
1055210554
deleteThread,
1055310555
isConnecting,

0 commit comments

Comments
 (0)