openclaw - 💡(How to fix) Fix [Feature]: 支持在 Control UI 中粘贴/拖拽图片 [1 participants]

Official PRs (…)
ON THIS PAGE

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#59607Fetched 2026-04-08 02:42:38
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
labeled ×1
RAW_BUFFERClick to expand / collapse

Summary

功能请求

问题描述

用户无法直接在 Control UI 聊天界面中粘贴或拖拽图片。目前必须通过飞书或其他渠道中转。

期望行为

  1. 直接从剪贴板粘贴图片(Ctrl/Cmd+V)
  2. 将图片文件拖拽到聊天窗口
  3. AI 自动分析图片

参考实现

其他平台(ChatGPT、Claude Web、微信桌面版)使用:

  • 浏览器剪贴板 API:navigator.clipboard.read()
  • 文件拖拽 API:drag and drop events

优先级

Problem to solve

支持在 Control UI 中粘贴/拖拽图片

Proposed solution

支持在 Control UI 中粘贴/拖拽图片

Alternatives considered

No response

Impact

优先级

Evidence/examples

支持在 Control UI 中粘贴/拖拽图片

Additional information

No response

extent analysis

TL;DR

Implementing the browser clipboard API and drag-and-drop events can enable users to paste or drag-and-drop images directly into the Control UI chat interface.

Guidance

  • Investigate using the navigator.clipboard.read() API to access images from the clipboard.
  • Explore utilizing drag-and-drop events to handle image file drops into the chat window.
  • Review the implementation of similar features in other platforms, such as ChatGPT or 微信桌面版, for inspiration.
  • Consider the security implications of accessing the clipboard and handling file drops to ensure a safe user experience.

Example

// Example of using navigator.clipboard.read() to access an image from the clipboard
async function handlePaste() {
  try {
    const clipboardItems = await navigator.clipboard.read();
    for (const item of clipboardItems) {
      if (item.kind === 'file') {
        const file = await item.getFile();
        // Handle the file (e.g., upload or display it)
      }
    }
  } catch (error) {
    console.error('Error reading clipboard:', error);
  }
}

Notes

The exact implementation details may vary depending on the specific requirements and constraints of the Control UI application. Additionally, browser support for the clipboard API and drag-and-drop events should be considered to ensure compatibility.

Recommendation

Apply workaround by implementing the browser clipboard API and drag-and-drop events, as this approach is already used in other platforms and can provide a seamless user experience.

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 [Feature]: 支持在 Control UI 中粘贴/拖拽图片 [1 participants]