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 23, 01:45 UTC
fix(web): empty diff panel no longer flashes a loading skeleton on every refresh (#17886)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Abhijeet Singh committed
Oct 20, 2026 at 02:39 UTC
0d9668c6274a9842c9fa463369e99e4138816e4b
1 file changed
+2
-3
apps/web/src/components/DiffPanel.tsx
+2
-3
@@ -352,9 +352,8 @@ export default function DiffPanel({
352
353
const selectedPatch = selectedTurn ? activeCheckpointDiff.data?.diff : gitDiff;
354
const isSelectedPatchTruncated = !selectedTurn && selectedGitSource?.truncated === true;
355
- const isLoadingSelectedPatch = selectedTurn
356
- ? activeCheckpointDiff.isPending
357
- : branchDiffPreview.isPending;
355
+ const selectedPatchQuery = selectedTurn ? activeCheckpointDiff : branchDiffPreview;
356
+ const isLoadingSelectedPatch = selectedPatchQuery.isPending && selectedPatchQuery.data === null;
357
const selectedPatchError = selectedTurn ? activeCheckpointDiff.error : branchDiffPreview.error;
358
const hasResolvedPatch = typeof selectedPatch === "string";
359
const hasNoNetChanges = hasResolvedPatch && selectedPatch.trim().length === 0;