feat(ui): Update tool confirmation cancel button text (#4820)
Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
parent
bcce1e7b84
commit
32b1ef3779
|
@ -118,7 +118,10 @@ export const ToolConfirmationMessage: React.FC<
|
||||||
label: 'Modify with external editor',
|
label: 'Modify with external editor',
|
||||||
value: ToolConfirmationOutcome.ModifyWithEditor,
|
value: ToolConfirmationOutcome.ModifyWithEditor,
|
||||||
},
|
},
|
||||||
{ label: 'No (esc)', value: ToolConfirmationOutcome.Cancel },
|
{
|
||||||
|
label: 'No, suggest changes (esc)',
|
||||||
|
value: ToolConfirmationOutcome.Cancel,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
bodyContent = (
|
bodyContent = (
|
||||||
<DiffRenderer
|
<DiffRenderer
|
||||||
|
@ -142,10 +145,12 @@ export const ToolConfirmationMessage: React.FC<
|
||||||
label: `Yes, allow always ...`,
|
label: `Yes, allow always ...`,
|
||||||
value: ToolConfirmationOutcome.ProceedAlways,
|
value: ToolConfirmationOutcome.ProceedAlways,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'No, suggest changes (esc)',
|
||||||
|
value: ToolConfirmationOutcome.Cancel,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
options.push({ label: 'No (esc)', value: ToolConfirmationOutcome.Cancel });
|
|
||||||
|
|
||||||
let bodyContentHeight = availableBodyContentHeight();
|
let bodyContentHeight = availableBodyContentHeight();
|
||||||
if (bodyContentHeight !== undefined) {
|
if (bodyContentHeight !== undefined) {
|
||||||
bodyContentHeight -= 2; // Account for padding;
|
bodyContentHeight -= 2; // Account for padding;
|
||||||
|
@ -180,7 +185,10 @@ export const ToolConfirmationMessage: React.FC<
|
||||||
label: 'Yes, allow always',
|
label: 'Yes, allow always',
|
||||||
value: ToolConfirmationOutcome.ProceedAlways,
|
value: ToolConfirmationOutcome.ProceedAlways,
|
||||||
},
|
},
|
||||||
{ label: 'No (esc)', value: ToolConfirmationOutcome.Cancel },
|
{
|
||||||
|
label: 'No, suggest changes (esc)',
|
||||||
|
value: ToolConfirmationOutcome.Cancel,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
bodyContent = (
|
bodyContent = (
|
||||||
|
@ -221,7 +229,10 @@ export const ToolConfirmationMessage: React.FC<
|
||||||
label: `Yes, always allow all tools from server "${mcpProps.serverName}"`,
|
label: `Yes, always allow all tools from server "${mcpProps.serverName}"`,
|
||||||
value: ToolConfirmationOutcome.ProceedAlwaysServer,
|
value: ToolConfirmationOutcome.ProceedAlwaysServer,
|
||||||
},
|
},
|
||||||
{ label: 'No (esc)', value: ToolConfirmationOutcome.Cancel },
|
{
|
||||||
|
label: 'No, suggest changes (esc)',
|
||||||
|
value: ToolConfirmationOutcome.Cancel,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue