mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-21 11:30:38 -07:00
PR cleanup.
This commit is contained in:
@@ -94,7 +94,6 @@ export class MessageBus extends EventEmitter {
|
||||
|
||||
switch (decision) {
|
||||
case PolicyDecision.ALLOW:
|
||||
case 'allow':
|
||||
// Directly emit the response instead of recursive publish
|
||||
this.emitMessage({
|
||||
type: MessageBusType.TOOL_CONFIRMATION_RESPONSE,
|
||||
@@ -103,7 +102,6 @@ export class MessageBus extends EventEmitter {
|
||||
});
|
||||
break;
|
||||
case PolicyDecision.DENY:
|
||||
case 'deny':
|
||||
// Emit both rejection and response messages
|
||||
this.emitMessage({
|
||||
type: MessageBusType.TOOL_POLICY_REJECTION,
|
||||
@@ -116,7 +114,6 @@ export class MessageBus extends EventEmitter {
|
||||
});
|
||||
break;
|
||||
case PolicyDecision.ASK_USER:
|
||||
case 'ask_user':
|
||||
// Pass through to UI for user confirmation if any listeners exist.
|
||||
// If no listeners are registered (e.g., headless/ACP flows),
|
||||
// immediately request user confirmation to avoid long timeouts.
|
||||
|
||||
Reference in New Issue
Block a user