Skip to content

MSTeams: inline pasted images not downloaded (hostedContents contentBytes missing) #50043

@jlian

Description

@jlian

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

  1. Configure MSTeams provider
  2. Paste an image inline in a DM conversation with the bot
  3. 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/[email protected]
  • Confirmed reproducible on current main

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions