Commit 5ba981a
fix(qa-matrix): keep room scenario preview truncation UTF-16 safe (#102606)
* fix(qa-matrix): keep room scenario preview truncation UTF-16 safe
Replace 7x `.slice(0, N)` with `truncateUtf16Safe(..., N)` in
runMatrixStreamingPreviewScenario and runMatrixToolProgressScenario
to prevent surrogate pair corruption in body/formattedBody previews.
Ref. lsr911 pattern — mechanical substitution, no behavior change.
* test(qa-matrix): prove UTF-16 artifact boundaries
Co-authored-by: 黄剑雄0668001315 <[email protected]>
---------
Co-authored-by: Peter Steinberger <[email protected]>1 parent 6fef79a commit 5ba981a
2 files changed
Lines changed: 39 additions & 11 deletions
Lines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
274 | 279 | | |
275 | 280 | | |
276 | 281 | | |
| |||
347 | 352 | | |
348 | 353 | | |
349 | 354 | | |
350 | | - | |
351 | | - | |
| 355 | + | |
| 356 | + | |
352 | 357 | | |
353 | 358 | | |
354 | 359 | | |
| |||
422 | 427 | | |
423 | 428 | | |
424 | 429 | | |
425 | | - | |
| 430 | + | |
426 | 431 | | |
427 | 432 | | |
428 | 433 | | |
| |||
672 | 677 | | |
673 | 678 | | |
674 | 679 | | |
675 | | - | |
| 680 | + | |
676 | 681 | | |
677 | | - | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
678 | 685 | | |
679 | 686 | | |
680 | 687 | | |
| |||
836 | 843 | | |
837 | 844 | | |
838 | 845 | | |
839 | | - | |
| 846 | + | |
840 | 847 | | |
841 | | - | |
| 848 | + | |
842 | 849 | | |
843 | 850 | | |
844 | 851 | | |
| |||
Lines changed: 25 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2288 | 2288 | | |
2289 | 2289 | | |
2290 | 2290 | | |
| 2291 | + | |
| 2292 | + | |
2291 | 2293 | | |
2292 | 2294 | | |
2293 | 2295 | | |
| |||
2337 | 2339 | | |
2338 | 2340 | | |
2339 | 2341 | | |
| 2342 | + | |
2340 | 2343 | | |
| 2344 | + | |
2341 | 2345 | | |
2342 | 2346 | | |
2343 | 2347 | | |
| 2348 | + | |
2344 | 2349 | | |
| 2350 | + | |
2345 | 2351 | | |
2346 | 2352 | | |
2347 | 2353 | | |
| |||
2357 | 2363 | | |
2358 | 2364 | | |
2359 | 2365 | | |
| 2366 | + | |
| 2367 | + | |
2360 | 2368 | | |
2361 | 2369 | | |
2362 | 2370 | | |
| |||
2365 | 2373 | | |
2366 | 2374 | | |
2367 | 2375 | | |
2368 | | - | |
| 2376 | + | |
| 2377 | + | |
2369 | 2378 | | |
2370 | 2379 | | |
2371 | 2380 | | |
| |||
2393 | 2402 | | |
2394 | 2403 | | |
2395 | 2404 | | |
| 2405 | + | |
2396 | 2406 | | |
| 2407 | + | |
2397 | 2408 | | |
2398 | 2409 | | |
2399 | 2410 | | |
| 2411 | + | |
2400 | 2412 | | |
| 2413 | + | |
2401 | 2414 | | |
2402 | 2415 | | |
2403 | 2416 | | |
| |||
2767 | 2780 | | |
2768 | 2781 | | |
2769 | 2782 | | |
2770 | | - | |
| 2783 | + | |
2771 | 2784 | | |
2772 | 2785 | | |
2773 | 2786 | | |
| |||
2794 | 2807 | | |
2795 | 2808 | | |
2796 | 2809 | | |
2797 | | - | |
2798 | | - | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
2799 | 2820 | | |
2800 | 2821 | | |
2801 | 2822 | | |
| |||
0 commit comments