@@ -90,11 +90,16 @@ const UIStrings = {
9090 /**
9191 *@description Text describing the 'AI assistance' feature
9292 */
93- helpUnderstandStylingAndNetworkRequest : 'Get help with understanding CSS styles and network requests' ,
93+ helpUnderstandStylingAndNetworkRequest : 'Get help with understanding CSS styles, and network requests' ,
9494 /**
9595 *@description Text describing the 'AI assistance' feature
9696 */
9797 helpUnderstandStylingNetworkAndFile : 'Get help with understanding CSS styles, network requests, and files' ,
98+ /**
99+ *@description Text describing the 'AI assistance' feature
100+ */
101+ helpUnderstandStylingNetworkPerformanceAndFile :
102+ 'Get help with understanding CSS styles, network requests, performance, and files' ,
98103 /**
99104 *@description Text which is a hyperlink to more documentation
100105 */
@@ -111,6 +116,11 @@ const UIStrings = {
111116 *@description Description of the AI assistance feature
112117 */
113118 explainStylingNetworkAndFile : 'Understand CSS styles, network activity, and file origins with AI-powered insights' ,
119+ /**
120+ *@description Description of the AI assistance feature
121+ */
122+ explainStylingNetworkPerformanceAndFile :
123+ 'Understand CSS styles, network activity, performance bottlenecks, and file origins with AI-powered insights' ,
114124 /**
115125 *@description Description of the AI assistance feature
116126 */
@@ -205,21 +215,27 @@ export class AISettingsTab extends LegacyWrapper.LegacyWrapper.WrappableComponen
205215
206216 #getAiAssistanceSettingDescription( ) : Platform . UIString . LocalizedString {
207217 const config = Common . Settings . Settings . instance ( ) . getHostConfig ( ) ;
218+ if ( config . devToolsAiAssistancePerformanceAgentDogfood ?. enabled ) {
219+ return i18nString ( UIStrings . helpUnderstandStylingNetworkPerformanceAndFile ) ;
220+ }
221+ if ( config . devToolsAiAssistanceFileAgentDogfood ?. enabled ) {
222+ return i18nString ( UIStrings . helpUnderstandStylingNetworkAndFile ) ;
223+ }
208224 if ( config . devToolsExplainThisResourceDogfood ?. enabled ) {
209- if ( config . devToolsAiAssistanceFileAgentDogfood ?. enabled ) {
210- return i18nString ( UIStrings . helpUnderstandStylingNetworkAndFile ) ;
211- }
212225 return i18nString ( UIStrings . helpUnderstandStylingAndNetworkRequest ) ;
213226 }
214227 return i18nString ( UIStrings . helpUnderstandStyling ) ;
215228 }
216229
217230 #getAiAssistanceSettingInfo( ) : Platform . UIString . LocalizedString {
218231 const config = Common . Settings . Settings . instance ( ) . getHostConfig ( ) ;
232+ if ( config . devToolsAiAssistancePerformanceAgentDogfood ?. enabled ) {
233+ return i18nString ( UIStrings . explainStylingNetworkPerformanceAndFile ) ;
234+ }
235+ if ( config . devToolsAiAssistanceFileAgentDogfood ?. enabled ) {
236+ return i18nString ( UIStrings . explainStylingNetworkAndFile ) ;
237+ }
219238 if ( config . devToolsExplainThisResourceDogfood ?. enabled ) {
220- if ( config . devToolsAiAssistanceFileAgentDogfood ?. enabled ) {
221- return i18nString ( UIStrings . explainStylingNetworkAndFile ) ;
222- }
223239 return i18nString ( UIStrings . explainStylingAndNetworkRequest ) ;
224240 }
225241 return i18nString ( UIStrings . explainStyling ) ;
0 commit comments