Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): retain terminal PR badges after checkout switch #4755

Mergedsebbonit(GitHub profile, opens in a new tab)merged 7 commits intomain fromrefs/pull/4755/headmerged by juliusmarminge View on GitHub

Showing 4 changed files with 58 additions and 34 deletions (loading 2).

x
0 of 4 viewed, 4 left
9 additions and 2 deletionsapps/web/src/components/ChatView.tsxModified
View file
@@ -276,7 +276,10 @@
shouldShowThreadErrorBanner,
ThreadErrorBanner,
} from "./chat/ThreadErrorBanner";
-import { resolveThreadPr } from "./ThreadStatusIndicators";
+import {
+ resolveDisplayedThreadPr,
+ threadChangeRequestSnapshotsAtom,
+} from "./ThreadStatusIndicators";
import { ComposerBannerStack, type ComposerBannerStackItem } from "./chat/ComposerBannerStack";
import { ThreadSyncStatusPill } from "./chat/ThreadSyncStatusPill";
import {
@@ -1596,6 +1599,7 @@
[activeThreadEnvironmentId, activeThreadId],
const activeThreadKey = activeThreadRef ? scopedThreadKey(activeThreadRef) : null;
+ const changeRequestSnapshotByKey = useAtomValue(threadChangeRequestSnapshotsAtom);
const [timelineAnchor, setTimelineAnchor] = useState<{
readonly threadKey: string | null;
readonly messageId: MessageId | null;
@@ -4124,9 +4128,11 @@
const activeThreadShell = useThreadShell(isServerThread ? activeThreadRef : null);
const autoSettleAfterDays = useClientSettings((settings) => settings.sidebarAutoSettleAfterDays);
const autoSettleOnMerge = useClientSettings((settings) => settings.sidebarAutoSettleOnMerge);
- const activeThreadPr = resolveThreadPr({
+ const activeThreadPr = resolveDisplayedThreadPr({
threadBranch: activeThread?.branch ?? null,
gitStatus: gitStatusQuery.data ?? null,