From ad2e47dc20cb19ab892a40077e101e2bae93ac63 Mon Sep 17 00:00:00 2001
From: Leo <45218470+ngleo@users.noreply.github.com>
Date: Thu, 12 Jun 2025 18:28:20 +0100
Subject: remove enable editor flag (#984)

---
 .../ui/components/messages/ToolConfirmationMessage.tsx   | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

(limited to 'packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx')

diff --git a/packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx b/packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx
index 0de85ba4..b747cabc 100644
--- a/packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx
+++ b/packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx
@@ -28,7 +28,7 @@ export interface ToolConfirmationMessageProps {
 
 export const ToolConfirmationMessage: React.FC<
   ToolConfirmationMessageProps
-> = ({ confirmationDetails, config, isFocused = true }) => {
+> = ({ confirmationDetails, isFocused = true }) => {
   const { onConfirm } = confirmationDetails;
 
   useInput((_, key) => {
@@ -85,18 +85,12 @@ export const ToolConfirmationMessage: React.FC<
         label: 'Yes, allow always',
         value: ToolConfirmationOutcome.ProceedAlways,
       },
-    );
-
-    const externalEditorsEnabled =
-      config?.getEnableModifyWithExternalEditors() ?? false;
-    if (externalEditorsEnabled) {
-      options.push({
+      {
         label: 'Modify with external editor',
         value: ToolConfirmationOutcome.ModifyWithEditor,
-      });
-    }
-
-    options.push({ label: 'No (esc)', value: ToolConfirmationOutcome.Cancel });
+      },
+      { label: 'No (esc)', value: ToolConfirmationOutcome.Cancel },
+    );
   } else if (confirmationDetails.type === 'exec') {
     const executionProps =
       confirmationDetails as ToolExecuteConfirmationDetails;
-- 
cgit v1.2.3

