openclaw - 💡(How to fix) Fix Image paste in webchat sends wrong image — broken in v2026.4.27 [3 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#74960Fetched 2026-05-01 05:39:34
View on GitHub
Comments
3
Participants
2
Timeline
6
Reactions
2
Author
Timeline (top)
commented ×3cross-referenced ×1mentioned ×1subscribed ×1
RAW_BUFFERClick to expand / collapse

Bug: Image paste sends completely wrong image (v2026.4.27)

Referencing: #51487 (closed as "implemented" — but bug still present)

Issue: Pasting images into webchat using Ctrl+V / Cmd+V results in a completely different image being received by the agent. The image mismatch is 100% reproducible — every sent image is wrong.

Steps to reproduce:

  1. Copy any screenshot to clipboard
  2. Paste into OpenClaw webchat input box with Ctrl+V / Cmd+V
  3. Send the message
  4. The image received by the agent is a different image (often a cached/old image from clipboard)

Environment:

  • OpenClaw: v2026.4.27 (also reproducible in v2026.4.26)
  • Channel: webchat / Control-UI
  • Browser: Chrome on macOS

What was tried:

  • npm install -g sharp — does not fix the image mismatch bug
  • Upgrading from v2026.4.26 to v2026.4.27 — does not fix it

Expected: The image sent should be exactly the same as the image pasted.

Additional context: The paste handler code (handlePaste in ui/src/ui/views/chat.ts) was confirmed present in v2026.4.22 per #51487, but something in the image upload pipeline is returning the wrong image data. This makes any image-based workflow completely unusable.


This issue references closed issue #51487 where the image paste feature was marked as implemented, but the underlying image transmission bug was not fixed.

extent analysis

TL;DR

The image paste issue in OpenClaw webchat can be potentially resolved by investigating and fixing the image upload pipeline, specifically focusing on how image data is handled after the paste event.

Guidance

  • Review the handlePaste function in ui/src/ui/views/chat.ts to ensure it correctly captures and processes the pasted image data.
  • Verify that the image upload pipeline is not caching or reusing old image data, which could cause the wrong image to be sent.
  • Check for any discrepancies in how the image is encoded or decoded during the upload process, as this could lead to data corruption or incorrect image transmission.
  • Investigate if the issue is browser-specific (currently only reported on Chrome on macOS) by testing on other browsers and platforms.

Example

No specific code example can be provided without further details on the handlePaste function and the image upload pipeline implementation.

Notes

The fix may require a deeper understanding of the image handling and upload process within OpenClaw, especially considering the caching behavior mentioned. The issue's reproducibility suggests a systematic problem rather than a transient error.

Recommendation

Apply a workaround by modifying the image upload pipeline to ensure that each pasted image is handled uniquely and not mixed with cached data, until a permanent fix can be implemented.

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 Image paste in webchat sends wrong image — broken in v2026.4.27 [3 comments, 2 participants]