mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-08-01 04:21:49 +00:00
handleScreenshot returned a truncated base64 string (first 100 chars only), which meant the screenshot data was effectively lost and never delivered to channels (Telegram, Discord, etc.) via the media pipeline. The media pipeline in loop.go looks for "MEDIA:" prefix in tool results to collect files for channel delivery (e.g. sendPhoto on Telegram). Without this prefix, screenshots were silently discarded. Fix: save screenshot bytes to a temp file and return MEDIA:/path, matching the pattern used by create_image and tts tools.