Commit 161e3d0
Alex
fix(agent): make sessions cluster truncation UTF-8 safe Refs #1734
Replace byte-index slicing ([..40], [..35]) with char-boundary-safe
truncation using char_indices().take(n). Prevents panic on multibyte
UTF-8 session titles and concept labels.1 parent 976abf6 commit 161e3d0
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2777 | 2777 | | |
2778 | 2778 | | |
2779 | 2779 | | |
2780 | | - | |
| 2780 | + | |
| 2781 | + | |
| 2782 | + | |
| 2783 | + | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
2781 | 2787 | | |
2782 | 2788 | | |
2783 | 2789 | | |
| |||
2787 | 2793 | | |
2788 | 2794 | | |
2789 | 2795 | | |
2790 | | - | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
2791 | 2803 | | |
2792 | 2804 | | |
2793 | 2805 | | |
| |||
0 commit comments