File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/vs/workbench/contrib/chat/common Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,7 @@ export class ChatService extends Disposable implements IChatService {
202202
203203 private saveState ( ) : void {
204204 let allSessions : ( ChatModel | ISerializableChatData ) [ ] = Array . from ( this . _sessionModels . values ( ) )
205+ . filter ( session => ! session . providerId . startsWith ( 'inlinechat:' ) )
205206 . filter ( session => session . getRequests ( ) . length > 0 ) ;
206207 allSessions = allSessions . concat (
207208 Object . values ( this . _persistedSessions )
@@ -705,7 +706,9 @@ export class ChatService extends Disposable implements IChatService {
705706 throw new Error ( `Unknown session: ${ sessionId } ` ) ;
706707 }
707708
708- this . _persistedSessions [ sessionId ] = model . toJSON ( ) ;
709+ if ( ! model . providerId . startsWith ( 'inlinechat' ) ) {
710+ this . _persistedSessions [ sessionId ] = model . toJSON ( ) ;
711+ }
709712
710713 this . _sessionModels . deleteAndDispose ( sessionId ) ;
711714 this . _pendingRequests . get ( sessionId ) ?. cancel ( ) ;
You can’t perform that action at this time.
0 commit comments