Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): keep thread branch metadata consistent #4926

Closedmaxktz(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/4926/headopened View on GitHub

Showing 4 changed files with 30 additions and 2 deletions (loading 1).

x
0 of 4 viewed, 4 left
12 additions and 2 deletionsapps/web/src/components/ChatView.tsxModified
View file
@@ -229,7 +229,11 @@
import { PanelLayoutControls, RightPanelMaximizeControl } from "./chat/PanelLayoutControls";
import { type ExpandedImagePreview } from "./chat/ExpandedImagePreview";
import { NoActiveThreadState } from "./NoActiveThreadState";
-import { resolveEffectiveEnvMode, resolveLocalCheckoutBranchMismatch } from "./BranchToolbar.logic";
+import {
+ resolveBranchToolbarValue,
+ resolveEffectiveEnvMode,
+ resolveLocalCheckoutBranchMismatch,
+} from "./BranchToolbar.logic";
import {
getProviderStatusBannerKey,
ProviderStatusBanner,
@@ -4749,6 +4753,12 @@
let turnStartSucceeded = false;
if (failure === null && turnAttachmentsResult._tag === "Success") {
+ const branchForCreate = resolveBranchToolbarValue({
+ envMode: sendEnvMode,
+ activeWorktreePath: activeThread.worktreePath,
+ activeThreadBranch,
+ currentGitBranch: gitStatusQuery.data?.refName ?? null,
+ });
const bootstrap =
isLocalDraftThread || baseBranchForWorktree
@@ -4760,7 +4770,7 @@
modelSelection: threadCreateModelSelection,