fix(core): filter tool updates by callId to prevent session cross-talk
This commit is contained in:
parent
4a4f54c20d
commit
48e9d80bdb
@ -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';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user