mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-03 12:01:32 +00:00
* refactor(media): consolidate parallel media-kind unions onto canonical MediaKind One canonical MediaKind union (media-core constants) replaces ~40 duplicate/parallel kind declarations across core and channel plugins; channel-specific narrower contracts derive via Extract/Exclude. Also fixes a review-caught fallback bug where a stored "unknown" reply-chain kind preempted MIME inference and relabeled images as documents. * refactor(ui): derive attachment kinds from MediaKind * fix(telegram): drop type-dead unknown guard in reply-context kind fallback * style(telegram): format media kind fallback