Skip to content

[Bug] Desktop drag-and-drop images fail with remote gateway (local path sent instead of uploading) #39447

Closed as not planned

Description

@OliverBokan

Bug Description

When running Hermes Desktop connected to a remote gateway (e.g., Docker container on a Linux server accessed via Tailscale), dragging an image file from the local filesystem into the Desktop chat composer sends the local filesystem path to the gateway. The gateway then fails because the file does not exist on the remote machine.

This is the same root cause as #38078 (paste images), but triggered via the drag-and-drop flow instead of clipboard paste.

Environment

  • Hermes Desktop: 0.15.1 (Windows)
  • Gateway: Remote (Docker container, Linux server)
  • Connection: Tailscale VPN
  • OS: Windows 11 (client) → Ubuntu 26.04 (server)

Steps to Reproduce

  1. Connect Hermes Desktop to a remote gateway
  2. Drag an image file from Windows Explorer into the Desktop chat composer
  3. Send the message
  4. Gateway logs show: file not found: C:\Users\user\Downloads\screenshot.png

Expected Behavior

In remote-gateway mode, Desktop should upload the image bytes to the gateway (or use the /upload endpoint from #532), not send a local filesystem path that is only readable on the client machine.

Actual Behavior

Desktop sends a local path like C:\Users\user\Downloads\screenshot.png which is unreadable on the remote Linux gateway.

Impact

This breaks a core UX path for users running Desktop against a remote Hermes gateway: drag a screenshot into chat, then send it for vision or multimodal workflows.

Related Issues

Workaround

Send images via WhatsApp or Telegram instead, where the gateway downloads from the platform API and caches locally.

Activity

  1. added
    type/bugSomething isn't working
    comp/gatewayGateway runner, session dispatch, delivery
    P3Low — cosmetic, nice to have
    on Jun 5, 2026
  2. TeamJBHobbies commented on Jun 7, 2026

    @TeamJBHobbies

    I’m hitting this too on Hermes Desktop 0.16.0.

    Setup:

    Windows Desktop client
    Remote Linux tower/dashboard backend at http://:9119
    Tower Hermes Agent 0.16.0
    Repro:

    Drag/drop or upload local Windows image: D:\Documents and Media\Desktop\6thGrade.jpg
    Desktop shows preview.
    Send "analyze this".
    Actual: The tower receives: @file:D:\Documents and Media\Desktop\6thGrade.jpg: file not found

    Desktop log confirms remote backend: [hermes] [boot] Connecting to remote Hermes backend at http://:9119 [hermes] [boot] Remote Hermes backend is ready

    This makes Telegram/Discord image uploads work better than Desktop remote mode because those upload/cache media on the tower.

  3. teknium1 commented on Jul 14, 2026

    @teknium1
    Collaborator

    Thanks for the clear remote-gateway reproduction. This is now implemented on main; the linked #40316 discussion correctly identified the same client-local-path failure class.

    Automated hermes-sweeper review verified:

    • apps/desktop/src/app/chat/composer/hooks/use-composer-drop.ts:86-103 routes native OS/Explorer drops to the attachment pipeline rather than emitting an inline local @file: path.
    • apps/desktop/src/app/session/hooks/use-prompt-actions/index.ts:78-104 reads client-local image bytes and calls image.attach_bytes for a remote connection; path-based image.attach remains local-only.
    • tui_gateway/server.py:9576-9634 persists those bytes on the gateway and queues the gateway-local image for the prompt.
    • The behavior was introduced by 4906dcfc256b70e8753881bf25fdb80e9312f73c and is contained in v2026.6.19.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/gatewayGateway runner, session dispatch, deliverysweeper:implemented-on-mainSweeper: behavior already present on current maintype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions