2089
if (this._provisionalSessions.has(context.sessionId)) {
2090
entry = await this._materializeProvisional(context.sessionId, workingDirectory);
2092
entry = this._getChatContext(chat).target;
2093
}
2095
>
// If the active client's config changed (tools or plugins),
2096
>
// dispose this session so it gets resumed with the updated config.
2097
>
const activeClient = this._activeClients.get(context.session);
2098
>
const hadCachedEntry = !!entry;
2099
this._logService.info(`[Copilot:${context.sessionId}] sendMessage: cachedEntry=${hadCachedEntry}, hasActiveClient=${!!activeClient}, activeClientId=${activeClient ? '(set)' : '(none)'}`);
2100
if (entry && activeClient && await activeClient.requiresRestart(entry.appliedSnapshot)) {