Commit d9637b3
sessions: measure and unblock V3 onboarding GitHub personalization (#334696)
The V3 new-session onboarding personalizes its 3 prompt options with GitHub
items, falling back to standard options. Telemetry from experiment f716301b
showed 61% of impressions timed out with zero GitHub options, and the existing
events could not measure partial success: `fallbackReason` was only 'none' when
all 3 slots were GitHub, so 2 real issues logged identically to zero.
Telemetry (additive; existing field names and values unchanged):
- promptStrategy gains gitHubOptionCount, candidatesFound, lookupDurationMs,
per-stage durations and outcomes, and timedOutStage.
- promptOptionInteraction gains optionIndex and optionKindsShown, so per-option
CTR is computable rather than confounded with availability.
- Both gain a shared impressionId, replacing lossy DevDeviceId joins.
- New 'noComposer' fallback reason splits the infra-bug meaning out of the
overloaded 'noCandidate'.
- Bounded categories and counts only: no titles, URLs, numbers, repository
names or prompt text.
Latency, without raising the 10s total budget:
- Publish issue candidates before the linkage lookup, which only filters out
issues that already have linked pull requests and so must never hide them.
- Keep review-thread enrichment off the critical path; it produced the least
picked option while being the most expensive stage.
- Rebalance sub-budgets to 4000/1500/3000 so the concurrent chains fit.
- Stream options into the composer: paint the standard options immediately and
replace slots as lookups land, instead of blocking first paint on the lookup.
INewSessionPromptOptionsController.resolve gains an optional progress callback
that reports whether an update was rendered, so the composer can refuse late
updates while the user is acting on the options and telemetry still describes
what was actually shown.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent aee3160 commit d9637b3
6 files changed
Lines changed: 788 additions & 70 deletions
File tree
- src/vs/sessions/contrib
- chat
- browser
- test/browser
- onboardingTours
- browser
- test/browser
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| 459 | + | |
459 | 460 | | |
460 | 461 | | |
461 | 462 | | |
| |||
677 | 678 | | |
678 | 679 | | |
679 | 680 | | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
680 | 684 | | |
681 | 685 | | |
682 | 686 | | |
| |||
1762 | 1766 | | |
1763 | 1767 | | |
1764 | 1768 | | |
| 1769 | + | |
1765 | 1770 | | |
1766 | 1771 | | |
1767 | 1772 | | |
1768 | 1773 | | |
1769 | 1774 | | |
1770 | 1775 | | |
1771 | 1776 | | |
| 1777 | + | |
1772 | 1778 | | |
1773 | 1779 | | |
1774 | 1780 | | |
| |||
1809 | 1815 | | |
1810 | 1816 | | |
1811 | 1817 | | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
1812 | 1821 | | |
1813 | 1822 | | |
1814 | | - | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
1815 | 1829 | | |
1816 | 1830 | | |
1817 | 1831 | | |
| |||
1831 | 1845 | | |
1832 | 1846 | | |
1833 | 1847 | | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
1834 | 1851 | | |
1835 | 1852 | | |
1836 | 1853 | | |
| |||
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
39 | 48 | | |
40 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
41 | 56 | | |
42 | 57 | | |
43 | 58 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
125 | 130 | | |
126 | 131 | | |
127 | 132 | | |
| |||
Lines changed: 82 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
234 | 236 | | |
235 | 237 | | |
236 | 238 | | |
| 239 | + | |
| 240 | + | |
237 | 241 | | |
238 | 242 | | |
239 | 243 | | |
| |||
272 | 276 | | |
273 | 277 | | |
274 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
275 | 352 | | |
276 | 353 | | |
277 | 354 | | |
| |||
312 | 389 | | |
313 | 390 | | |
314 | 391 | | |
| 392 | + | |
| 393 | + | |
315 | 394 | | |
316 | 395 | | |
317 | 396 | | |
| |||
346 | 425 | | |
347 | 426 | | |
348 | 427 | | |
| 428 | + | |
| 429 | + | |
349 | 430 | | |
350 | 431 | | |
351 | 432 | | |
| |||
0 commit comments