Refine changes panel controls

This commit is contained in:
Bohdan Triapitsyn
2026-06-14 00:51:12 +03:00
parent 8b318d2776
commit fa128afdb5
14 changed files with 277 additions and 36 deletions
+4 -1
View File
@@ -191,6 +191,10 @@ const normalizeContextPanelTabDedupeKey = (
targetPath: string | null,
dedupeKey: string | null | undefined,
): string => {
if (mode === 'diff') {
return mode;
}
if (typeof dedupeKey === 'string') {
const trimmed = dedupeKey.trim();
if (trimmed) {
@@ -1032,7 +1036,6 @@ export const useUIStore = create<UIStore>()(
get().openContextPanelTab(normalizedDirectory, {
mode: 'diff',
targetPath: normalizedFilePath,
dedupeKey: staged ? 'staged' : null,
stagedDiff: staged,
});
},