mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-04 12:13:15 +00:00
Codex native image_generation output (state.Observe.AssistantImages) was persisted to workspace/media/ and attached to the assistant message's MediaRefs for session history, but never added to state.Tool.MediaResults — the only field that flows into RunResult.Media and from there into the outbound channel message. Generated images showed up in the web UI (which reads session history) but chat channels (Telegram, Zalo, Slack, ...) received text-only replies with no attachment. Append the persisted image refs to state.Tool.MediaResults right after they're attached to the assistant message, so they reach RunResult.Media via the existing pipeline plumbing and cmd/gateway_consumer_normal.go's appendMediaToOutbound — the same path create_image/send_file already use. No new delivery path needed.