You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Executor truncates output to 3000 chars and fails on non-UTF-8 bytes, losing evidence #206
Non-UTF-8 output fails the whole command..decode() is strict, so one binary byte (common in container logs or dmesg) raises UnicodeDecodeError. The generic except then returns an error and discards the output.
Large outputs such as journalctl or kubectl get -A -o yaml can hit 60s on slow clusters, with no way to raise the limit per call.
Proposed fix
Decode with errors="replace".
Keep two limits: what goes to the model (truncate with a clear …[truncated N bytes] marker, keeping the head and tail rather than only the tail), and what goes to storage. Evidence callers get the full output up to a cap, e.g. EXECUTOR_MAX_OUTPUT_BYTES=1MB.
Add a timeout parameter (default 60, evidence 180) and EXECUTOR_TIMEOUT_SEC.
Tests: a binary byte in the output, long output keeps both head and tail with the marker, evidence keeps its full size.
Activity