Files
AutoGPT/autogpt_platform/backend
Otto 9914d0ef2d refactor: Focus binary detection on embedded base64 in stdout_logs
Previous implementation detected data URIs and pure base64 strings,
but these cases already worked in CoPilot. The actual problem was
code execution printing base64 to stdout with markers.

Changes:
- Remove data URI detection (no user-facing impact)
- Remove pure base64 detection (covered by embedded detection)
- Add embedded base64 pattern matching within text strings
- Handle marker patterns (---BASE64_START---/---BASE64_END---)
- Replace base64 + markers with workspace:// reference

This now solves the actual problem: ExecuteCodeBlock stdout_logs
containing embedded base64 that would otherwise cost 17k+ output
tokens for the LLM to re-type.
2026-02-05 19:52:14 +00:00
..