2023
2024
setPendingMessages(chat: URI, steeringMessage: PendingMessage | undefined, _queuedMessages: readonly PendingMessage[]): void {
2025
>
// Phase 9 D5: queued messages are intentionally a no-op. CONTEXT.md
claudeAgent.ts
2026
>
// M10 + AgentSideEffects confirm queued messages are consumed
2027
>
// server-side; the agent boundary always receives an empty queue.
2028
>
//
2029
>
// Steering targets the chat that owns the in-flight turn — the caller
2030
>
// always addresses a concrete chat channel (the session's default chat
2031
>
// or an additional peer chat).
2032
>
const context = this._getChatContext(chat);
2033
>
this._logService.info(`[Claude] setPendingMessages for ${chat.toString()}: steering=${steeringMessage?.id ?? 'none'} queued=${_queuedMessages.length}`);
2034
>
if (!context.target) {
2035
this._logService.warn(`[Claude] setPendingMessages: chat not found for ${chat.toString()}`);
2036
return;
2037
}
2039
context.target.injectSteering(steeringMessage);
2040
}
2042
2043
/**