fix(session): refresh sessions list after worktree archive operation
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -29,7 +29,7 @@ export const sessionEvents = {
|
||||
};
|
||||
},
|
||||
requestDelete(payload: SessionDeleteRequest) {
|
||||
if (!payload.sessions.length) {
|
||||
if (!payload.sessions.length && payload.mode !== 'worktree') {
|
||||
return;
|
||||
}
|
||||
deleteListeners.forEach((listener) => listener(payload));
|
||||
|
||||
Reference in New Issue
Block a user