openclaw - ✅(Solved) Fix [Bug]: When sending images through the webchat (Control UI), the UI does not persist or display the image properly — it vanishes after a few seconds. [1 pull requests, 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#68605Fetched 2026-04-19 15:09:41
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×2commented ×1cross-referenced ×1

Bug Description: When sending images through the webchat (Control UI), images appear briefly in the chat history and then disappear. The agent does receive the image (it replies asking to resend/add caption), but the UI does not persist or display the image properly — it vanishes after a few seconds.

Steps to Reproduce:

Open OpenClaw Control UI in a browser Attach/embed an image file to the message input Send the message The image appears briefly in the chat, then disappears after a few seconds Only the text caption remains (or just the text notification if no caption was added) Environment:

Version: 2026.4.15 OS: macOS Channel: webchat / Control UI Additional Notes:

This is not a receiving issue — the agent processes the image correctly and responds The issue is purely in the webchat UI's image persistence/display layer Images sent via other channels (e.g., WeChat) are not affected

Root Cause

Bug Description: When sending images through the webchat (Control UI), images appear briefly in the chat history and then disappear. The agent does receive the image (it replies asking to resend/add caption), but the UI does not persist or display the image properly — it vanishes after a few seconds.

Steps to Reproduce:

Open OpenClaw Control UI in a browser Attach/embed an image file to the message input Send the message The image appears briefly in the chat, then disappears after a few seconds Only the text caption remains (or just the text notification if no caption was added) Environment:

Version: 2026.4.15 OS: macOS Channel: webchat / Control UI Additional Notes:

This is not a receiving issue — the agent processes the image correctly and responds The issue is purely in the webchat UI's image persistence/display layer Images sent via other channels (e.g., WeChat) are not affected

Fix Action

Fixed

PR fix notes

PR #68641: Fix Control UI image history rendering

Description (problem / solution / changelog)

Summary

  • decode transcript MediaPath and image payload variants into chat attachment content blocks
  • render image attachments in the shared chat UI so sent images stay visible after history refresh
  • add coverage for transcript media-path and image-source decoding

Testing

  • swift test --package-path apps/shared/OpenClawKit --filter 'ChatModelsTests'
  • pnpm check
  • pnpm protocol:check

Closes #68605

Changed files

  • apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatMessageViews.swift (modified, +122/-9)
  • apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatModels.swift (modified, +81/-9)
  • apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatViewModel.swift (modified, +1/-0)
  • apps/shared/OpenClawKit/Tests/OpenClawKitTests/ChatModelsTests.swift (added, +96/-0)
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Bug Description: When sending images through the webchat (Control UI), images appear briefly in the chat history and then disappear. The agent does receive the image (it replies asking to resend/add caption), but the UI does not persist or display the image properly — it vanishes after a few seconds.

Steps to Reproduce:

Open OpenClaw Control UI in a browser Attach/embed an image file to the message input Send the message The image appears briefly in the chat, then disappears after a few seconds Only the text caption remains (or just the text notification if no caption was added) Environment:

Version: 2026.4.15 OS: macOS Channel: webchat / Control UI Additional Notes:

This is not a receiving issue — the agent processes the image correctly and responds The issue is purely in the webchat UI's image persistence/display layer Images sent via other channels (e.g., WeChat) are not affected

Steps to reproduce

1.Open OpenClaw Control UI in a browser 2.Attach/embed an image file to the message input 3.Send the message 4.The image appears briefly in the chat, then disappears after a few seconds 5.Only the text caption remains (or just the text notification if no caption was added)

Expected behavior

Images sent through the Control UI (webchat) should persist in the chat history, just like images sent through other channels (e.g., WeChat). The image should remain visible in the conversation thread after sending and should not disappear after a few seconds. Users should be able to view previously sent/received images at any time during the session.

Actual behavior

When an image is sent via the Control UI (webchat), the image appears in the chat history for a few seconds, then disappears entirely — leaving only the text portion of the message (or a system caption request). The image data is received and processed by the agent, but the UI does not persist the image in the chat transcript. Refreshing the page or revisiting the conversation shows no image.

OpenClaw version

2026.4.15

Operating system

macOS 26.4.1

Install method

npm

Model

minimax 2.7

Provider / routing chain

Browser (Control UI, webchat) → Local Gateway WebSocket (ws://127.0.0.1:18790) → OpenClaw Agent (main session) Direct local connection, no proxy or gateway relay involved. Channel: webchat / Control UI (not remote) macOS host, no SSH tunnel in use.

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The issue can be resolved by investigating and fixing the image persistence logic in the Control UI's webchat component, potentially related to the WebSocket connection or message rendering.

Guidance

  • Verify the WebSocket connection between the Control UI and the OpenClaw Agent is stable and not causing the image to disappear.
  • Check the message rendering logic in the Control UI to ensure it properly handles and displays images sent through the webchat.
  • Investigate potential issues with the minimax 2.7 model or the Local Gateway WebSocket that might be affecting image persistence.
  • Review the browser console logs for any errors related to image loading or rendering in the Control UI.

Example

No specific code example can be provided without more information on the implementation details of the Control UI and OpenClaw Agent.

Notes

The issue seems to be specific to the webchat channel and does not affect other channels like WeChat, suggesting a potential problem with the Control UI's image handling or the WebSocket connection.

Recommendation

Apply a workaround by modifying the Control UI's webchat component to properly handle and display images, potentially by adjusting the message rendering logic or implementing a caching mechanism to prevent images from disappearing.

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…

FAQ

Expected behavior

Images sent through the Control UI (webchat) should persist in the chat history, just like images sent through other channels (e.g., WeChat). The image should remain visible in the conversation thread after sending and should not disappear after a few seconds. Users should be able to view previously sent/received images at any time during the session.

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 - ✅(Solved) Fix [Bug]: When sending images through the webchat (Control UI), the UI does not persist or display the image properly — it vanishes after a few seconds. [1 pull requests, 1 comments, 2 participants]