PR cleanup.

This commit is contained in:
Christian Gunderman
2026-03-19 09:42:37 -07:00
parent ef1f336202
commit 9d10f7dbc9

View File

@@ -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.