mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-12 23:21:27 -07:00
fix(core): prevent server name spoofing in policy engine (#12511)
This commit is contained in:
@@ -78,6 +78,7 @@ export abstract class BaseToolInvocation<
|
||||
protected readonly messageBus?: MessageBus,
|
||||
readonly _toolName?: string,
|
||||
readonly _toolDisplayName?: string,
|
||||
readonly _serverName?: string,
|
||||
) {}
|
||||
|
||||
abstract getDescription(): string;
|
||||
@@ -215,6 +216,7 @@ export abstract class BaseToolInvocation<
|
||||
type: MessageBusType.TOOL_CONFIRMATION_REQUEST,
|
||||
toolCall,
|
||||
correlationId,
|
||||
serverName: this._serverName,
|
||||
};
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user