267
const localSessionId = LocalChatSessionUri.parseLocalSessionId(model.sessionResource);
268
if (localSessionId && this.shouldStoreSession(model)) {
269
>
// Always preserve sessions that have custom titles, even if empty
chatServiceImpl.ts
270
>
if (model.getRequests().length === 0 && !model.customTitle) {
271
logChangesToStateModel(model.inputModel, `disposing session ${model.sessionResource} (${localSessionId}) without title, deleting from storage`, undefined, undefined, this.logService);
272
await this._chatSessionStore.deleteSession(localSessionId);
274
logChangesToStateModel(model.inputModel, `disposing session ${model.sessionResource} (${localSessionId}) with title, storing to storage`, undefined, undefined, this.logService);
275
await this._chatSessionStore.storeSessions([model]);