2070
throw new Error(`[Copilot] sendMessage for unknown chat: ${chat.toString()}`);
2071
}
2073
entry.resetTurnState(turnId, senderClientId);
2074
}
2075
>
const sideChat = this._chatBackings.get(chat.toString())?.sideChat;
copilotAgent.ts
2076
const existingTurns = sideChat ? await entry.getMessages() : [];
2077
const sdkPrompt = prepareSideChatPrompt(prompt, existingTurns, sideChat);
2078
await entry.send(sdkPrompt, attachments, turnId, this._resolveSdkMode(context.session), senderClientId);
2080
>
}
2081
await this._sessionSequencer.queue(context.sessionId, async () => {
2082
await this._activeClients.get(context.session)?.pluginController.retryFailedClientSyncIfNeeded();