openclaw - 💡(How to fix) Fix [Bug]:[UI] Control UI 在 minimax 会话下图片缩略图无法持久化显示,Codex 会话正常 [1 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#54384Fetched 2026-04-08 01:28:17
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×2

复现环境

  • OpenClaw 版本:2026.3.23-2
  • 系统:Linux 6.6.87.2 (WSL2 Ubuntu 24.04)
  • Node:24.14.0
  • 浏览器:未确认(待补充)
  • 通道:webchat / Control UI 直连

复现步骤

  1. 打开 Control UI,连接 gateway(当前为 loopback + token 认证)
  2. 在默认 minimax 会话下发送图片(任意大小、任意格式)
  3. 观察聊天框:发送瞬间显示缩略图 → 发送完成后缩略图消失
  4. 切换到 openai-codex/gpt-5.4 会话,发送同一张图 → 缩略图正常保留
  5. 再切回 minimax 会话 → 之前 Codex 会话里的缩略图也一并消失

日志证据

[agents/tool-images] Image resized to fit limits: 3816x1901px 499.7KB -> 33.4KB (-93.3%)
[agents/tool-images] Image resized to fit limits: 3465x1791px 408.7KB -> 34.3KB (-91.6%)

图片已成功送达 gateway 并完成 resize,但 UI 端不显示。


期望行为

minimax 会话下图片缩略图应与 Codex 会话保持一致,正常保留在聊天历史中。


实际行为

场景缩略图表现
minimax 会话发图发送瞬间显示 → 完成后消失
Codex 会话发图正常保留
从 Codex 切回 minimax所有历史缩略图消失
从 minimax 切到 Codex缩略图不恢复

备注

  • 图片数据本身无问题,gateway 日志证明图片传输与处理正常
  • 问题局限于 Control UI 对 minimax 会话的图片渲染逻辑
  • 切换模型后历史会话状态似乎被影响,疑似会话隔离或 UI 状态管理问题

Root Cause

复现环境

  • OpenClaw 版本:2026.3.23-2
  • 系统:Linux 6.6.87.2 (WSL2 Ubuntu 24.04)
  • Node:24.14.0
  • 浏览器:未确认(待补充)
  • 通道:webchat / Control UI 直连

复现步骤

  1. 打开 Control UI,连接 gateway(当前为 loopback + token 认证)
  2. 在默认 minimax 会话下发送图片(任意大小、任意格式)
  3. 观察聊天框:发送瞬间显示缩略图 → 发送完成后缩略图消失
  4. 切换到 openai-codex/gpt-5.4 会话,发送同一张图 → 缩略图正常保留
  5. 再切回 minimax 会话 → 之前 Codex 会话里的缩略图也一并消失

日志证据

[agents/tool-images] Image resized to fit limits: 3816x1901px 499.7KB -> 33.4KB (-93.3%)
[agents/tool-images] Image resized to fit limits: 3465x1791px 408.7KB -> 34.3KB (-91.6%)

图片已成功送达 gateway 并完成 resize,但 UI 端不显示。


期望行为

minimax 会话下图片缩略图应与 Codex 会话保持一致,正常保留在聊天历史中。


实际行为

场景缩略图表现
minimax 会话发图发送瞬间显示 → 完成后消失
Codex 会话发图正常保留
从 Codex 切回 minimax所有历史缩略图消失
从 minimax 切到 Codex缩略图不恢复

备注

  • 图片数据本身无问题,gateway 日志证明图片传输与处理正常
  • 问题局限于 Control UI 对 minimax 会话的图片渲染逻辑
  • 切换模型后历史会话状态似乎被影响,疑似会话隔离或 UI 状态管理问题

Code Example

[agents/tool-images] Image resized to fit limits: 3816x1901px 499.7KB -> 33.4KB (-93.3%)
[agents/tool-images] Image resized to fit limits: 3465x1791px 408.7KB -> 34.3KB (-91.6%)

---
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Summary

复现环境

  • OpenClaw 版本:2026.3.23-2
  • 系统:Linux 6.6.87.2 (WSL2 Ubuntu 24.04)
  • Node:24.14.0
  • 浏览器:未确认(待补充)
  • 通道:webchat / Control UI 直连

复现步骤

  1. 打开 Control UI,连接 gateway(当前为 loopback + token 认证)
  2. 在默认 minimax 会话下发送图片(任意大小、任意格式)
  3. 观察聊天框:发送瞬间显示缩略图 → 发送完成后缩略图消失
  4. 切换到 openai-codex/gpt-5.4 会话,发送同一张图 → 缩略图正常保留
  5. 再切回 minimax 会话 → 之前 Codex 会话里的缩略图也一并消失

日志证据

[agents/tool-images] Image resized to fit limits: 3816x1901px 499.7KB -> 33.4KB (-93.3%)
[agents/tool-images] Image resized to fit limits: 3465x1791px 408.7KB -> 34.3KB (-91.6%)

图片已成功送达 gateway 并完成 resize,但 UI 端不显示。


期望行为

minimax 会话下图片缩略图应与 Codex 会话保持一致,正常保留在聊天历史中。


实际行为

场景缩略图表现
minimax 会话发图发送瞬间显示 → 完成后消失
Codex 会话发图正常保留
从 Codex 切回 minimax所有历史缩略图消失
从 minimax 切到 Codex缩略图不恢复

备注

  • 图片数据本身无问题,gateway 日志证明图片传输与处理正常
  • 问题局限于 Control UI 对 minimax 会话的图片渲染逻辑
  • 切换模型后历史会话状态似乎被影响,疑似会话隔离或 UI 状态管理问题

Steps to reproduce

OpenClaw 版本:2026.3.23-2 系统:Linux 6.6.87.2 (WSL2 Ubuntu 24.04) Node:24.14.0 浏览器:未确认(待补充) 通道:webchat / Control UI 直连

Expected behavior

1

Actual behavior

1

OpenClaw version

1

Operating system

1

Install method

No response

Model

1

Provider / routing chain

1

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

Fix Plan

To resolve the issue of thumbnail images not being retained in the minimax session, we need to adjust the UI rendering logic for images in the Control UI.

  • Step 1: Review and Adjust Image Rendering Logic
    • Check the code responsible for rendering images in the minimax session.
    • Ensure that the logic for displaying thumbnails after the image is sent is correctly implemented and not removed after the sending process is complete.
  • Step 2: Implement Session Isolation
    • Review the session management code to ensure that switching between models (e.g., from minimax to Codex) does not affect the state of previous sessions.
    • Implement or adjust session isolation mechanisms to prevent the loss of thumbnail images when switching between sessions.
  • Step 3: Update UI State Management
    • Examine the UI state management code to identify why the thumbnails disappear after sending an image in the minimax session.
    • Update the state management logic to preserve the thumbnail images after they are sent.

Example Code Snippet

Assuming the issue lies in how the UI updates after sending an image, a potential fix could involve ensuring that the thumbnail image is not removed from the UI after the sending process completes. Here's a simplified example:

// Before sending the image
const thumbnailUrl = await resizeAndUploadImage(image);

// Update the UI to show the thumbnail
updateUIWithThumbnail(thumbnailUrl);

// After sending the image, ensure the thumbnail remains
function updateUIAfterSend() {
    // Instead of removing the thumbnail, keep it visible
    // removeThumbnail(); // Comment out or remove this line
    keepThumbnailVisible(thumbnailUrl);
}

// Function to keep the thumbnail visible
function keepThumbnailVisible(thumbnailUrl) {
    // Logic to keep the thumbnail visible in the UI
    // This could involve updating the UI state or DOM directly
    const thumbnailElement = document.getElementById('thumbnail');
    thumbnailElement.src = thumbnailUrl;
    thumbnailElement.style.display = 'block';
}

Verification

To verify that the fix worked:

  1. Send an image in the minimax session.
  2. Observe that the thumbnail remains visible after the image is sent.
  3. Switch to another session (e.g., Codex) and back to minimax.
  4. Verify that the thumbnail images from previous sessions are retained and visible.

Extra Tips

  • Ensure that the image resizing and uploading logic is correctly implemented and does not interfere with the UI rendering logic.
  • Review the browser's console and network logs for any errors related to image loading or UI updates.
  • Consider implementing a caching mechanism for thumbnail images to improve performance and reduce the load on the server.

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

1

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 [Bug]:[UI] Control UI 在 minimax 会话下图片缩略图无法持久化显示,Codex 会话正常 [1 participants]