Commit 65a6c32
fix(subagent): keep emoji / surrogate pairs intact during subagent announce log truncation
Use Array.from() to count full code points instead of UTF-16 code
units, preventing lone surrogates in subagent give-up log output.
Co-Authored-By: Claude Opus 4.8 <[email protected]>1 parent 775ef96 commit 65a6c32
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
0 commit comments