diff options
Diffstat (limited to 'packages/cli/src')
| -rw-r--r-- | packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
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; |
