We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fbb7f5 commit 0a805bdCopy full SHA for 0a805bd
src/vs/workbench/contrib/chat/common/chatServiceImpl.ts
@@ -521,10 +521,10 @@ export class ChatService extends Disposable implements IChatService {
521
}
522
523
let sessionData: ISerializableChatData | undefined;
524
- if (this.useFileStorage) {
525
- sessionData = revive(await this._chatSessionStore.readSession(sessionId));
526
- } else {
+ if (!this.useFileStorage || this.transferredSessionData?.sessionId === sessionId) {
527
sessionData = revive(this._persistedSessions[sessionId]);
+ } else {
+ sessionData = revive(await this._chatSessionStore.readSession(sessionId));
528
529
530
if (!sessionData) {
0 commit comments