@devries-cameron20 / t3code Mirror · read-only / commits / a6d7695064
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 12:15 UTC

perf(web): collapse all no longer remounts the diff viewer (#36995)

Julius Marminge committed Nov 14, 2026 at 17:03 UTC a6d7695064443c8bb4e4200d481228bd5004e5eb
1 file changed +1 -3
apps/web/src/components/DiffPanel.tsx
+1 -3
@@ -237,7 +237,6 @@ export default function DiffPanel({
237 const [baseRefQuery, setBaseRefQuery] = useState("");
238 // The open commit menu keeps the list it opened with, so rows do not move under the pointer.
239 const [openCommitMenu, setOpenCommitMenu] = useState<ReviewBranchCommitsResult | null>(null);
240 - const [codeViewRevision, setCodeViewRevision] = useState(0);
240
241 const routeThreadRef = useThreadRouteRef();
242 const activeThreadId = routeThreadRef?.threadId ?? null;
@@ -345,7 +344,7 @@ export default function DiffPanel({
344 const collapseScopeKey = routeThreadRef
345 ? `${routeThreadRef.environmentId}:${routeThreadRef.threadId}:${reviewSectionId}`
346 : null;
348 - const codeViewMountKey = `${collapseScopeKey ?? reviewSectionId}:${codeViewRevision}`;
347 + const codeViewMountKey = collapseScopeKey ?? reviewSectionId;
348 const selectedCheckpointRange =
349 typeof selectedCheckpointTurnCount === "number"
350 ? {
@@ -790,7 +789,6 @@ export default function DiffPanel({
789
790 const toggleDiffFileCollapse = () => {
791 codeViewScroll.discard();
793 - setCodeViewRevision((current) => current + 1);
792 updateCollapsedDiffFiles((current) => toggleAllDiffFiles(shownFileKeys, current));
793 };
794