fix(sessions): harden worktree move recovery

This commit is contained in:
mattv8
2026-08-27 18:43:37 -06:00
parent 415f443a79
commit 52bea6d1f3
10 changed files with 478 additions and 133 deletions
@@ -78,6 +78,16 @@ export type QuestionBadgeSessionScope = {
sessionIDs: string[];
};
export const getSessionWorktreeMenuDisabled = ({
sessionDirectory,
isStreaming,
isMovingToWorktree,
}: {
sessionDirectory: string | null;
isStreaming: boolean;
isMovingToWorktree: boolean;
}): boolean => !sessionDirectory || isStreaming || isMovingToWorktree;
/**
* Choose which (directory, sessionIDs) scopes a sidebar row's pending-question
* badge should count. An expanded row counts only its own session; a collapsed