Dashboard › opencode › PTY UTF-8 write limit
01a07f11-75b2-7f07-820c-a6376e4ab1c4| Project | Hits | Last recalled |
|---|---|---|
| opencode-lore | 1 | 10h ago |
Trap: bounding and reporting data.length as bytes looks correct for ASCII, but JavaScript length counts UTF-16 code units and multibyte UTF-8 writes can exceed the advertised byte cap. Fix: enforce and report Buffer.byteLength(data) after escape decoding, or explicitly name and document the limit as characters.