openclaw - 💡(How to fix) Fix [openclaw-weixin] 微信拍照发送单张图片时,桥接层附带不相关的额外图片 [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#76098Fetched 2026-05-03 04:42:24
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
2
Author
Timeline (top)
closed ×1commented ×1unsubscribed ×1
RAW_BUFFERClick to expand / collapse

Bug 描述

通过微信聊天的拍照功能发送单张图片时,OpenClaw 微信桥接层会将不相关的额外图片打包进同一条消息,导致 AI agent 收到两张图片。

环境

  • OpenClaw 版本:2026.4.22
  • 通道:openclaw-weixin(iLink 企业接口)
  • 消息类型:单张图片(拍照发送,无文字)

复现步骤

  1. 通过微信聊天界面使用拍照功能,拍摄一张照片并发送给机器人
  2. AI agent 收到的消息中包含 两张图片,而非一张

实际行为

Session 原始记录显示,用户消息中包含两个 image data 条目:

  • 图片 1:不相关的旧图片(路由器截图,保存时间 21:29:11)
  • 图片 2:用户实际拍摄的图片(黄芪精照片,保存时间 21:30:53)

两张图片被合并到同一条 user message 中(同一个 message_id: 1777728551657-e61d80cb)。

Gateway 日志确认 21:29:22 同时处理了两张不同尺寸的图片(920x2048 和 1080x1919)。

期望行为

用户发送单张图片时,agent 应只收到该图片,不应附带其他不相关的图片。

补充信息

  • 用户确认仅通过微信拍照发送了一张图片,未多选、未转发
  • 第二张图片(路由器截图)来源不明,可能是桥接层缓存或 iLink 接口消息合并问题
  • 媒体文件保存路径:~/.openclaw/media/inbound/

extent analysis

TL;DR

检查 OpenClaw 微信桥接层的缓存机制和 iLink 接口消息合并配置,可能需要清除缓存或调整配置以防止不相关的图片被附加到用户消息中。

Guidance

  • 检查 ~/.openclaw/media/inbound/ 目录中的媒体文件,确定是否有缓存机制导致旧图片被重复发送。
  • 查看 Gateway 日志,分析 21:29:22 时的图片处理过程,确定是否有多个图片被同时处理导致了问题。
  • 调整 iLink 接口的消息合并配置,确保单张图片发送时不附带其他不相关的图片。
  • 考虑添加日志记录或调试信息以跟踪图片处理和发送过程,帮助诊断问题。

Notes

  • 问题可能与 OpenClaw 版本或 iLink 接口配置有关,需要进一步调查和测试以确定根因。
  • 用户确认仅发送了一张图片,但第二张图片的来源不明,需要进一步调查以确定问题的根因。

Recommendation

Apply workaround: 清除 OpenClaw 缓存和调整 iLink 接口配置,以防止不相关的图片被附加到用户消息中。

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [openclaw-weixin] 微信拍照发送单张图片时,桥接层附带不相关的额外图片 [1 comments, 2 participants]