Skip to content

Commit 0a805bd

Browse files
roblourensNikolaRHristov
authored andcommitted
Transferred chat session is only in _persistedSessions, for now
1 parent 8fbb7f5 commit 0a805bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vs/workbench/contrib/chat/common/chatServiceImpl.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,10 @@ export class ChatService extends Disposable implements IChatService {
521521
}
522522

523523
let sessionData: ISerializableChatData | undefined;
524-
if (this.useFileStorage) {
525-
sessionData = revive(await this._chatSessionStore.readSession(sessionId));
526-
} else {
524+
if (!this.useFileStorage || this.transferredSessionData?.sessionId === sessionId) {
527525
sessionData = revive(this._persistedSessions[sessionId]);
526+
} else {
527+
sessionData = revive(await this._chatSessionStore.readSession(sessionId));
528528
}
529529

530530
if (!sessionData) {

0 commit comments

Comments
 (0)