Skip to content

bug(chat): pasted images don't render inline — displayed as paperclip + filename instead of image preview #1095

@nesquena-hermes

Description

@nesquena-hermes

Bug Report

Reported by: Beta tester @et in Discord #beta-feedback
Date: 2026-04-26

Description

When a user pastes (cut and paste) an image directly into the WebUI chat composer, the image does not render as an inline preview. Instead, it is displayed as a paperclip icon and a filename. The agent can access the file (it reaches the workspace), so the upload itself works — the issue is purely in the UI rendering of the pasted image.

The user also noted a workaround: the agent was able to render the image by prefixing the filename with a paperclip character, suggesting the rendering logic may work for agent-generated output but not for user-pasted attachments in the chat bubble.

Steps to Reproduce

  1. Copy an image to clipboard (e.g., screenshot, right-click → copy image)
  2. Paste the image into the WebUI chat composer
  3. Send the message
  4. Observe the chat bubble — the image is displayed as 📎 image.png instead of an inline image preview

Expected Behavior

Pasted images should render as inline image previews in the chat bubble, similar to how drag-and-drop works.

Actual Behavior

Pasted images are displayed as a paperclip icon + filename. No image preview is shown. The underlying file is accessible to the agent via the workspace.

Additional Context

  • Drag-and-drop file upload was confirmed to work correctly (agent can see and access the file)
  • The image paste upload itself works (file reaches workspace), only rendering is broken
  • Agent-side workaround exists (agent prefixes filename with paperclip to trigger render), confirming render path exists but is not triggered for user-pasted images

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions