picoclaw/pkg/channels/discord
hschne 96b4c543f4
fix(discord): download attachments for vision pipeline
Discord only downloaded audio attachments before passing them to the agent. Non-audio attachments (images, videos, files) were passed as raw Discord CDN URLs, which do not flow through resolveMediaRefs and are not serialized as vision inputs.

Download every attachment, store it in the MediaStore with Discord's filename and content type metadata, and emit a media placeholder tag that matches the attachment kind. This lets resolveMediaRefs replace the placeholder with the local path-bearing tag and encode supported images for vision-capable providers. If a download fails, keep the previous raw URL fallback.
2026-05-23 10:01:33 +02:00
..
discord.go fix(discord): download attachments for vision pipeline 2026-05-23 10:01:33 +02:00
discord_resolve_test.go fix(discord): prevent duplicate link expansion and add regex tests 2026-03-04 15:11:30 +08:00
discord_test.go Feat(channels): unify animated tool feedback across chat channels and Pico (#2622) 2026-04-23 10:35:50 +08:00
init.go refactor(config): make config.Channel to multiple instance support 2026-04-13 22:21:21 +08:00
voice.go unify all panic event to panic log file (#2250) 2026-04-01 23:26:49 +08:00