From 45d9c5c1fcd49be3a29de5590a5f05d72a4d508b Mon Sep 17 00:00:00 2001 From: Spencer Date: Mon, 9 Mar 2026 22:01:31 +0000 Subject: [PATCH] style: fix formatting from rebase --- .../ui/components/messages/ToolConfirmationMessage.tsx | 5 +---- packages/core/src/config/config.ts | 8 ++------ 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx b/packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx index b0d74fc8c7..39b44406e8 100644 --- a/packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx +++ b/packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx @@ -539,8 +539,7 @@ export const ToolConfirmationMessage: React.FC< REDIRECTION_WARNING_NOTE_TEXT.length; const tipText = `Toggle auto-edit (${formatCommand(Command.CYCLE_APPROVAL_MODE)}) to allow redirection in the future.`; const tipLength = - REDIRECTION_WARNING_TIP_LABEL.length + - tipText.length; + REDIRECTION_WARNING_TIP_LABEL.length + tipText.length; const noteLines = Math.ceil(noteLength / safeWidth); const tipLines = Math.ceil(tipLength / safeWidth); @@ -656,7 +655,6 @@ export const ToolConfirmationMessage: React.FC< ); } - return { question, bodyContent, options, securityWarnings, initialIndex }; }, [ confirmationDetails, @@ -675,7 +673,6 @@ export const ToolConfirmationMessage: React.FC< settings.merged.security.autoAddToPolicyByDefault, ]); - const bodyOverflowDirection: 'top' | 'bottom' = confirmationDetails.type === 'mcp' && isMcpToolDetailsExpanded ? 'bottom' diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts index eca6f395c9..ba6d4b93d1 100644 --- a/packages/core/src/config/config.ts +++ b/packages/core/src/config/config.ts @@ -2891,14 +2891,10 @@ export class Config implements McpContext, AgentLoopContext { if (this.isTrackerEnabled()) { maybeRegister(TrackerCreateTaskTool, () => - registry.registerTool( - new TrackerCreateTaskTool(this, this.messageBus), - ), + registry.registerTool(new TrackerCreateTaskTool(this, this.messageBus)), ); maybeRegister(TrackerUpdateTaskTool, () => - registry.registerTool( - new TrackerUpdateTaskTool(this, this.messageBus), - ), + registry.registerTool(new TrackerUpdateTaskTool(this, this.messageBus)), ); maybeRegister(TrackerGetTaskTool, () => registry.registerTool(new TrackerGetTaskTool(this, this.messageBus)),