mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-16 09:22:51 +00:00
fix(core): filter tool updates by callId to prevent session cross-talk
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user