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