1355
1356
async disposeChat(session: URI, chat: URI): Promise<void> {
1358
>
const provider = this._findProviderForSession(session);
1359
>
this._stateManager.removeChat(sessionKey, chat.toString());
1360
>
// Drop the chat from the orchestrator-owned catalog so it isn't
1361
>
// re-materialized on the next restore.
1362
>
void this._removePersistedPeerChat(session, chat);
1363
>
if (provider) {
1364
>
await this._disposeChat(provider, chat);
1365
>
}
1366
>
}
1367
1368
// ---- Chat dispatch adapter ---------------------------------------------