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 {
202
202
203
203
private saveState ( ) : void {
204
204
let allSessions : ( ChatModel | ISerializableChatData ) [ ] = Array . from ( this . _sessionModels . values ( ) )
205
+ . filter ( session => ! session . providerId . startsWith ( 'inlinechat:' ) )
205
206
. filter ( session => session . getRequests ( ) . length > 0 ) ;
206
207
allSessions = allSessions . concat (
207
208
Object . values ( this . _persistedSessions )
@@ -705,7 +706,9 @@ export class ChatService extends Disposable implements IChatService {
705
706
throw new Error ( `Unknown session: ${ sessionId } ` ) ;
706
707
}
707
708
708
- this . _persistedSessions [ sessionId ] = model . toJSON ( ) ;
709
+ if ( ! model . providerId . startsWith ( 'inlinechat' ) ) {
710
+ this . _persistedSessions [ sessionId ] = model . toJSON ( ) ;
711
+ }
709
712
710
713
this . _sessionModels . deleteAndDispose ( sessionId ) ;
711
714
this . _pendingRequests . get ( sessionId ) ?. cancel ( ) ;
You can’t perform that action at this time.
0 commit comments