fix(core): filter tool updates by callId to prevent session cross-talk

This commit is contained in:
Michael Bleigh
2026-05-06 12:12:06 -07:00
parent 4a4f54c20d
commit 48e9d80bdb

View File

@@ -515,6 +515,11 @@ export class LegacyAgentProtocol implements AgentProtocol {
for (const tc of msg.toolCalls) {
const callId = tc.request.callId;
if (!this._translationState.pendingToolNames.has(callId)) {
continue;
}
let status: ToolEventStatus = 'pending';
if (tc.status === 'validating' || tc.status === 'scheduled') {
status = 'pending';