fix(channels): use canonical IMAGE marker in Matrix channel
Matrix image messages used lowercase `[image: ...]` format instead of the canonical `[IMAGE:...]` marker used by all other channels (Telegram, Slack, Discord, QQ, LinQ). This caused Matrix image attachments to bypass the multimodal vision pipeline which looks for `[IMAGE:...]`. Closes #3486 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0f4a878b7e
commit
cdec7c8310
@ -746,7 +746,7 @@ impl Channel for MatrixChannel {
|
||||
MessageType::Notice(content) => (content.body.clone(), None),
|
||||
MessageType::Image(content) => {
|
||||
let dl = media_info(&content.source, &content.body);
|
||||
(format!("[image: {}]", content.body), dl)
|
||||
(format!("[IMAGE:{}]", content.body), dl)
|
||||
}
|
||||
MessageType::File(content) => {
|
||||
let dl = media_info(&content.source, &content.body);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user