fix(session): refresh sessions list after worktree archive operation

This commit is contained in:
Bohdan Triapitsyn
2026-01-03 02:37:55 +02:00
parent a0eac480b4
commit 5029acfb9d
3 changed files with 4 additions and 3 deletions
@@ -609,6 +609,7 @@ export const SessionDialogs: React.FC = () => {
description: renderToastDescription(archiveNote),
});
closeDeleteDialog();
loadSessions();
return;
}
@@ -671,7 +672,7 @@ export const SessionDialogs: React.FC = () => {
} finally {
setIsProcessingDelete(false);
}
}, [deleteDialog, deleteDialogShouldRemoveRemote, deleteSession, deleteSessions, closeDeleteDialog, shouldArchiveWorktree, isWorktreeDelete, canRemoveRemoteBranches, projectDirectory]);
}, [deleteDialog, deleteDialogShouldRemoveRemote, deleteSession, deleteSessions, closeDeleteDialog, shouldArchiveWorktree, isWorktreeDelete, canRemoveRemoteBranches, projectDirectory, loadSessions]);
const worktreeManagerBody = (
<div className="space-y-4 w-full min-w-0">