This commit is contained in:
Peng Lyu
2025-12-05 02:05:28 +00:00
committed by GitHub
parent 6d8d97ad4c
commit bc62ecfef5
@@ -347,8 +347,13 @@ export class CopilotCLIChatSessionContentProvider extends Disposable implements
const worktreeRelativePath = this.worktreeManager.getWorktreeRelativePath(copilotcliSessionId);
if (worktreeRelativePath) {
options[ISOLATION_OPTION_ID] = getLockedIsolationOption(worktreeRelativePath);
} else {
options[ISOLATION_OPTION_ID] = disabledIsolationLocked;
}
} else if (existingSession) {
options[ISOLATION_OPTION_ID] = disabledIsolationLocked;
}
const history = existingSession?.object?.getChatHistory() || [];
existingSession?.dispose();
// Always keep track of this in memory.