Commit 6e43dd4
fix(agents): detect C1 control characters in hasControlCharacter
hasControlCharacter() checked for C0 control characters (0x00-0x1f)
and DEL (0x7f) but did not check for C1 controls (0x80-0x9f).
The C1 range includes the CSI introducer (0x9b) and other control
codes that should not appear in user-facing error text.
Add the C1 range to the check. Same pattern as the C1 fixes in
sanitizeForConsole (#103226) and renderTerminalBufferText (#103274).
Co-Authored-By: Claude <[email protected]>1 parent 05d1728 commit 6e43dd4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
689 | | - | |
| 689 | + | |
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
| |||
0 commit comments