mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
The direct executor buffered a command's full stdout and stderr in memory until the command finished, and only then truncated them to 24,000 and 8,000 characters. Collect each stream with a bounded collector that keeps the first N characters, keeps draining the Docker stream after the cap, decodes UTF-8 characters split across frames, and never ends on half a surrogate pair.