Commit 3af2a18
[AI] Persist conversation for external PERFORMANCE_ANALYZE
Persists the conversation data for the new external performance request
type. The TimelinePanel stores the state, and invalidates it whenever a
new trace is recorded.
This enables this flow:
* MCP client records a trace
* MCP client asks a performance question via performance tool, AIDA
agent perhaps asks a follow up question
* Developer responds (ex: "let's look at LCP")
* MCP client calls the performance tool again, just passing the next
prompt (ex: "let's look at LCP"), and the same AIDA conversation agent
is used (so all the context is still there)
* etc... Developer can continue asking performance questions about the
trace, and the MCP client will continue calling the performance tool
to communicate with the same AIDA agent
Bug: 425270067
Change-Id: I6376f61c9d17f1e6f47947c4aca821dde9f76b05
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6885880
Auto-Submit: Connor Clark <cjamcl@chromium.org>
Commit-Queue: Connor Clark <cjamcl@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>1 parent c73aee1 commit 3af2a18
File tree
5 files changed
+94
-65
lines changed- front_end
- entrypoints/main
- models/ai_assistance
- panels/timeline
- utils
- services/tracing
5 files changed
+94
-65
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1109 | 1109 | | |
1110 | 1110 | | |
1111 | 1111 | | |
1112 | | - | |
1113 | 1112 | | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
| 1113 | + | |
1121 | 1114 | | |
1122 | 1115 | | |
1123 | 1116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
53 | 60 | | |
54 | 61 | | |
55 | 62 | | |
56 | | - | |
| 63 | + | |
57 | 64 | | |
58 | 65 | | |
59 | 66 | | |
| |||
210 | 217 | | |
211 | 218 | | |
212 | 219 | | |
213 | | - | |
| 220 | + | |
214 | 221 | | |
215 | 222 | | |
216 | 223 | | |
| |||
235 | 242 | | |
236 | 243 | | |
237 | 244 | | |
238 | | - | |
| 245 | + | |
239 | 246 | | |
240 | 247 | | |
241 | 248 | | |
242 | 249 | | |
243 | 250 | | |
244 | 251 | | |
245 | | - | |
| 252 | + | |
246 | 253 | | |
247 | 254 | | |
248 | 255 | | |
249 | 256 | | |
250 | 257 | | |
251 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
252 | 269 | | |
253 | | - | |
| 270 | + | |
254 | 271 | | |
255 | 272 | | |
256 | 273 | | |
| |||
287 | 304 | | |
288 | 305 | | |
289 | 306 | | |
290 | | - | |
| 307 | + | |
291 | 308 | | |
292 | 309 | | |
293 | 310 | | |
| |||
306 | 323 | | |
307 | 324 | | |
308 | 325 | | |
309 | | - | |
| 326 | + | |
310 | 327 | | |
311 | 328 | | |
312 | 329 | | |
313 | 330 | | |
314 | 331 | | |
315 | 332 | | |
316 | 333 | | |
317 | | - | |
| 334 | + | |
318 | 335 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | 336 | | |
327 | | - | |
328 | | - | |
| 337 | + | |
| 338 | + | |
329 | 339 | | |
330 | | - | |
| 340 | + | |
331 | 341 | | |
332 | 342 | | |
333 | 343 | | |
| |||
338 | 348 | | |
339 | 349 | | |
340 | 350 | | |
341 | | - | |
| 351 | + | |
342 | 352 | | |
343 | 353 | | |
344 | 354 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
395 | 396 | | |
396 | 397 | | |
397 | 398 | | |
| |||
929 | 930 | | |
930 | 931 | | |
931 | 932 | | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
932 | 967 | | |
933 | 968 | | |
934 | 969 | | |
| |||
1142 | 1177 | | |
1143 | 1178 | | |
1144 | 1179 | | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
| 1180 | + | |
| 1181 | + | |
1162 | 1182 | | |
1163 | 1183 | | |
1164 | 1184 | | |
1165 | | - | |
1166 | | - | |
| 1185 | + | |
| 1186 | + | |
1167 | 1187 | | |
1168 | 1188 | | |
1169 | 1189 | | |
1170 | | - | |
1171 | | - | |
| 1190 | + | |
1172 | 1191 | | |
1173 | 1192 | | |
1174 | 1193 | | |
| |||
3000 | 3019 | | |
3001 | 3020 | | |
3002 | 3021 | | |
| 3022 | + | |
3003 | 3023 | | |
3004 | 3024 | | |
3005 | 3025 | | |
| |||
3096 | 3116 | | |
3097 | 3117 | | |
3098 | 3118 | | |
| 3119 | + | |
| 3120 | + | |
| 3121 | + | |
| 3122 | + | |
| 3123 | + | |
| 3124 | + | |
| 3125 | + | |
| 3126 | + | |
| 3127 | + | |
| 3128 | + | |
3099 | 3129 | | |
3100 | 3130 | | |
3101 | 3131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
0 commit comments