@@ -203,19 +203,22 @@ export class FetchWebPageTool implements IToolImpl {
203
203
if ( urlsNeedingConfirmation . length === 1 ) {
204
204
confirmationTitle = localize ( 'fetchWebPage.confirmationTitle.singular' , 'Fetch web page?' ) ;
205
205
confirmationMessage = new MarkdownString (
206
- urlsNeedingConfirmation [ 0 ] . toString ( ) + '\n\n$(info) ' +
207
- localize ( 'fetchWebPage.confirmationMessage.singular' , 'Web content may contain malicious code or attempt prompt injection attacks.' ) ,
206
+ urlsNeedingConfirmation [ 0 ] . toString ( ) ,
208
207
{ supportThemeIcons : true }
209
208
) ;
210
209
} else {
211
210
confirmationTitle = localize ( 'fetchWebPage.confirmationTitle.plural' , 'Fetch web pages?' ) ;
212
211
confirmationMessage = new MarkdownString (
213
- urlsNeedingConfirmation . map ( uri => `- ${ uri . toString ( ) } ` ) . join ( '\n' ) + '\n\n$(info) ' +
214
- localize ( 'fetchWebPage.confirmationMessage.plural' , 'Web content may contain malicious code or attempt prompt injection attacks.' ) ,
212
+ urlsNeedingConfirmation . map ( uri => `- ${ uri . toString ( ) } ` ) . join ( '\n' ) ,
215
213
{ supportThemeIcons : true }
216
214
) ;
217
215
}
218
- result . confirmationMessages = { title : confirmationTitle , message : confirmationMessage , allowAutoConfirm : true } ;
216
+ result . confirmationMessages = {
217
+ title : confirmationTitle ,
218
+ message : confirmationMessage ,
219
+ allowAutoConfirm : true ,
220
+ disclaimer : new MarkdownString ( '$(info) ' + localize ( 'fetchWebPage.confirmationMessage.plural' , 'Web content may contain malicious code or attempt prompt injection attacks.' ) , { supportThemeIcons : true } )
221
+ } ;
219
222
}
220
223
return result ;
221
224
}
0 commit comments