openclaw - 💡(How to fix) Fix [Bug] Control UI 图片上传功能失效 - 图片无法传递给 Agent [2 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#62290Fetched 2026-04-08 03:06:34
View on GitHub
Comments
2
Participants
2
Timeline
2
Reactions
0
Author
Timeline (top)
commented ×2
RAW_BUFFERClick to expand / collapse

问题描述

用户通过 Control UI 的附件按钮上传图片后,图片没有被正确传递给 Agent。Agent 收到的消息中不包含图片附件。

复现步骤

  1. 打开 Control UI (http://localhost:18789)
  2. 点击聊天框的附件按钮
  3. 选择一张图片上传
  4. 发送消息(如"帮我把这张图片转成文档")
  5. Agent 收到消息但没有收到图片

预期行为

Agent 应该能够接收到用户上传的图片,并进行处理。

实际行为

  • Agent 收到的消息中没有图片附件
  • ~/.openclaw/uploads/ 目录不存在
  • 日志中没有图片上传相关记录

环境信息

  • OpenClaw 版本:2026.4.5 (3e72c03)
  • 操作系统:Linux 6.6.117-45.1.oc9.x86_64
  • Node.js:v25.8.1
  • Gateway:本地运行,ws://127.0.0.1:18789
  • 渠道:webchat / Control UI

用户反馈

用户尝试了 3 次上传图片,均失败。上传过程看起来正常(没有报错),但图片从未到达 Agent。

建议修复

  1. 检查 Control UI 的图片上传代码,确保图片正确编码并发送
  2. 确保上传的图片保存到正确的目录(如 ~/.openclaw/uploads/
  3. 确保消息中包含图片附件的引用,Agent 可以通过 read 工具读取

临时替代方案

用户可以将图片保存到 ~/.openclaw/workspace/ 目录,然后告诉 Agent 文件名,Agent 可以直接读取。


感谢修复!🙏

extent analysis

TL;DR

检查 Control UI 的图片上传代码并确保图片正确编码、发送和保存到正确的目录。

Guidance

  • 检查 Control UI 的图片上传代码,确保图片正确编码并发送到 Agent。
  • 确保上传的图片保存到正确的目录(如 ~/.openclaw/uploads/),并检查目录是否存在。
  • 验证消息中是否包含图片附件的引用,Agent 是否可以通过 read 工具读取图片。

Notes

此解决方案假设问题出在 Control UI 的图片上传代码或图片保存目录配置上,需要进一步检查和调试来确认。

Recommendation

Apply workaround:用户可以将图片保存到 ~/.openclaw/workspace/ 目录,然后告诉 Agent 文件名,Agent 可以直接读取。这种方法可以临时解决问题,但需要找到并修复根cause。

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