From 820105e982e594b1bcee46ab866a7c70e5795b34 Mon Sep 17 00:00:00 2001 From: matt korwel Date: Fri, 25 Jul 2025 12:25:32 -0700 Subject: Safer Shell command Execution (#4795) Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: N. Taylor Mullen --- .../cli/src/ui/components/messages/ToolConfirmationMessage.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 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 52df0357..c1a313d5 100644 --- a/packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx +++ b/packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx @@ -132,19 +132,20 @@ export const ToolConfirmationMessage: React.FC< const executionProps = confirmationDetails as ToolExecuteConfirmationDetails; - question = `Allow execution?`; + question = `Allow execution of: '${executionProps.rootCommand}'?`; options.push( { - label: 'Yes, allow once', + label: `Yes, allow once`, value: ToolConfirmationOutcome.ProceedOnce, }, { - label: `Yes, allow always "${executionProps.rootCommand} ..."`, + label: `Yes, allow always ...`, value: ToolConfirmationOutcome.ProceedAlways, }, - { label: 'No (esc)', value: ToolConfirmationOutcome.Cancel }, ); + options.push({ label: 'No (esc)', value: ToolConfirmationOutcome.Cancel }); + let bodyContentHeight = availableBodyContentHeight(); if (bodyContentHeight !== undefined) { bodyContentHeight -= 2; // Account for padding; -- cgit v1.2.3