* fix(im/wecom): preserve image in mixed messages with text captions convertMixedMessage discarded the image whenever a mixed (text+image) message contained any text, so the most common shape — a question plus a screenshot — reached the QA pipeline as text-only and the model never saw the image, despite the IM integration docs promising images are handled as QA attachments. Keep the first image as the message attachment and carry the text as its caption: the IM service already supports captioned images (prepareIMAttachments downloads the file while fileMessageQAContent preserves msg.Content as the query), so the adapter just has to emit MessageTypeImage with Content set instead of MessageTypeText. Text-only, image-only, and empty mixed messages keep their previous behavior. Multiple images still collapse to the first one; supporting several attachments requires a multi-attachment IncomingMessage and is left out of this minimal fix. * fix(im/wecom): wrap over-length line in mixed_test to satisfy lll lint |
||
|---|---|---|
| .. | ||
| factory.go | ||
| longconn.go | ||
| longconn_close_test.go | ||
| mention_test.go | ||
| mixed_test.go | ||
| quote.go | ||
| quote_test.go | ||
| reconnect_test.go | ||
| webhook_adapter.go | ||
| webhook_adapter_test.go | ||
| ws_adapter.go | ||