Files
openclaw/extensions
Yiğit ERDOĞAN 60136ec1a2 fix(discord): upload-file silently drops a caption (#124255)
* fix(discord,msteams): upload-file silently drops a caption

Both channels accept `media` as an alias for the uploaded file, so a
send-shaped call reaches `upload-file` carrying its text in `caption`.
Discord read only `message`/`content` and MS Teams read only
`text`/`content`/`message`, so that text was dropped and the file landed
with no message at all.

Accept `caption` as the lowest-precedence alias on both channels, matching
the WhatsApp and Slack upload paths. An explicitly empty higher-precedence
value still wins, so existing callers keep their behavior. The MS Teams
reader is scoped to `upload-file` because the other actions carry their own
text field.

* refactor: narrow this PR to the Discord channel

Microsoft Teams keeps the same defect and the same fix shape, but a Teams
after-fix delivery or activity trace is not reachable without a live tenant,
so that half is deferred to its own change rather than blocking the Discord
repair that already has a production-boundary trace.
2026-08-23 00:01:04 -07:00
..
…
…
…
…
…
…
…