Skip to content

[Bug]: Desktop drag-drop file uploads don't sync to remote gateway workspace #38464

@thewildofficial

Description

@thewildofficial

Describe the bug
When Hermes Desktop is connected to a remote gateway (e.g. SSH backend on a VPS), dragging and dropping a file from the local Mac into the chat window sends the local macOS filesystem path to the agent context. The remote session on the VPS has no access to this path, so the file is effectively unreachable and the agent cannot process it.

To Reproduce

  1. Connect Hermes Desktop to a remote gateway (SSH to Linux VPS)
  2. Drag a file from Finder into the Desktop chat window (or use the file attachment button)
  3. Send a message referencing the file, e.g. "convert this to epub"
  4. Agent receives the local path in context warnings: @file:/Users/<user>/Downloads/...
  5. Agent attempts to read the path → fails with "path is outside the allowed workspace" (or silent I/O error)

Expected behavior
The file should be transparently uploaded from the local Mac to the remote gateway's workspace (~/.hermes/workspace/ or equivalent) so the agent can actually read and process it.

Actual behavior
The agent receives a local filesystem path it has no access to. No file transfer occurs.

Environment

  • Hermes Desktop (macOS)
  • Remote gateway via SSH backend
  • File is on local Mac; agent runs on remote Linux box

Workarounds tried

Additional context
This makes remote gateway feel second-class compared to local mode. The desktop client already handles drag-drop detection beautifully for local sessions, but remote users hit a wall. Related to #466 (sandboxed file transfer) and #532 (ephemeral upload tunnel), but this is specifically about the Desktop → Remote Gateway sync gap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havebackend/sshSSH remote executioncomp/tuiTerminal UI (ui-tui/ + tui_gateway/)type/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions