Skip to content

Commit 3125a2e

Browse files
committed
fix(web): plan implementation threads start on the checkout's live branch
1 parent fa1394c commit 3125a2e

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
@@ -10539,7 +10539,8 @@ export default function ChatView(props: ChatViewProps) {
1053910539
modelSelection: nextThreadModelSelection,
1054010540
runtimeMode: defaultRuntimeMode,
1054110541
interactionMode: "default",
10542-
branch: activeThreadBranch,
10542+
// The new thread runs in the same checkout, so it starts on its live branch.
10543+
branch: checkoutBranchMismatch?.currentBranch ?? activeThreadBranch,
1054310544
worktreePath: activeThread.worktreePath,
1054410545
createdAt,
1054510546
},
@@ -10627,6 +10628,7 @@ export default function ChatView(props: ChatViewProps) {
1062710628
activeThread,
1062810629
beginLocalDispatch,
1062910630
activeEnvironmentUnavailable,
10631+
checkoutBranchMismatch,
1063010632
createThread,
1063110633
deleteThread,
1063210634
isConnecting,

0 commit comments

Comments
 (0)