Skip to content

feat: add file download for remote server connections #63485

Open

Description

@drpr

Feature request

When connected to a remote OpenCode server, right-clicking a file in the file tree shows "Open in app" options that don't work (there's no local app to open remote files). Instead, show a Download option so users can save remote files locally.

Proposed approach

Add a downloadFile helper (packages/gui-plugins/src/file/download.ts) that loads file content through the session screen's Files API and saves it locally — text files via ctx.system.save, binary files via a Blob download.

Add a DownloadContextMenu component in open-in-app.tsx that replaces the "open in app" menu when no local app can open files (e.g. on a remote server). Wire it through list.tsx and pierre-tree.tsx by passing the screen prop to OpenInAppContextMenuV2.

Activity

  1. opencodejr commented on Nov 12, 2026

    @opencodejr

    Thanks for the request and for opening #63472, @drpr! You're asking for a Download option in the desktop file tree's right-click menu when connected to a remote OpenCode server, so files on the server can be saved locally (text and binary). The maintainers will consider it, along with your PR.

    Related issues:

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions