Commit 74a0a32
committed
fix(auto-reply): truncate user-facing text on UTF-16 boundary
Use truncateUtf16Safe in agent-runner-execution (message preview)
and dispatch-from-config (plan working label) to prevent surrogate
pair splitting when non-BMP characters straddle truncation boundaries.1 parent 1bdde66 commit 74a0a32
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
753 | 754 | | |
754 | 755 | | |
755 | 756 | | |
756 | | - | |
| 757 | + | |
757 | 758 | | |
758 | 759 | | |
759 | 760 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
2565 | 2566 | | |
2566 | 2567 | | |
2567 | 2568 | | |
2568 | | - | |
| 2569 | + | |
2569 | 2570 | | |
2570 | 2571 | | |
2571 | 2572 | | |
| |||
0 commit comments