Bug
Inline pasted images in MSTeams DM and group conversations are not downloaded. The Teams Graph API returns hostedContents without contentBytes, so the current download logic silently fails.
Reproduction
- Configure MSTeams provider
- Paste an image inline in a DM conversation with the bot
- Image attachment is detected but content is empty/not saved
Root cause
The hostedContents collection in the activity attachment doesn't include contentBytes directly. The fix is to download the image via the contentUrl using the bot's auth token instead of relying on the inline content bytes.
Environment
- OpenClaw v2026.3.13-1
@microsoft/agents-hosting@1.3.1
- Confirmed reproducible on current
main
Related
Bug
Inline pasted images in MSTeams DM and group conversations are not downloaded. The Teams Graph API returns
hostedContentswithoutcontentBytes, so the current download logic silently fails.Reproduction
Root cause
The
hostedContentscollection in the activity attachment doesn't includecontentBytesdirectly. The fix is to download the image via thecontentUrlusing the bot's auth token instead of relying on the inline content bytes.Environment
@microsoft/agents-hosting@1.3.1mainRelated