2176
2177
setPendingMessages(chat: URI, steeringMessage: PendingMessage | undefined, _queuedMessages: readonly PendingMessage[]): void {
2179
>
if (!context.target) {
2180
this._logService.warn(`[Copilot:${context.sessionId}] setPendingMessages: chat not found for ${chat.toString()}`);
2181
return;
2182
}
2184
>
// Steering: send with mode 'immediate' so the SDK injects it mid-turn
2185
>
if (steeringMessage) {
2186
>
context.target.sendSteering(steeringMessage);
2187
>
}
2188
>
2189
>
// Queued messages are consumed by the server (AgentSideEffects)
2190
>
// which dispatches ChatTurnStarted and calls sendMessage directly.
2191
>
// No SDK-level enqueue is needed.
2192
>
}
2193
2194
async getSessionMessages(session: URI): Promise<readonly Turn[]> {