mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-10-16 06:41:39 +08:00
decoder.write() can hold incomplete multi-byte sequences internally. Without calling decoder.end() after streams close, those trailing bytes are silently dropped. Flush all decoders after process exit so any remaining bytes are emitted as replacement characters rather than lost.