fix: validate chat session ID before trying to create an editing session from it (#235519)
parent
0b70bdaceb
commit
9d2d734b37
|
@ -162,7 +162,7 @@ export class ChatEditingService extends Disposable implements IChatEditingServic
|
|||
void this._editingSessionFileLimitPromise;
|
||||
|
||||
const sessionIdToRestore = storageService.get(STORAGE_KEY_EDITING_SESSION, StorageScope.WORKSPACE);
|
||||
if (isString(sessionIdToRestore)) {
|
||||
if (isString(sessionIdToRestore) && this._chatService.getOrRestoreSession(sessionIdToRestore)) {
|
||||
this._restoringEditingSession = this.startOrContinueEditingSession(sessionIdToRestore);
|
||||
this._restoringEditingSession.finally(() => {
|
||||
this._restoringEditingSession = undefined;
|
||||
|
|
Loading…
Reference in New Issue