Skip to content

[FEATURE]: desktop: add Open with default app action to file preview #59470

Open

Description

@TAP-APIA

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Summary

In the desktop app's Review / file preview pane, add an "Open with default app" action for the current file, especially binary files such as .zip, .docx, .xlsx, and .pdf. The action should open the file with the operating system's default application, equivalent to double-clicking it in File Explorer/Finder.

Current behavior

  • Opening a binary file in Review shows only a placeholder: file icon, path, and Binary file · <size>.
  • The file tab header/toolbar shows the file name, change count, and size, but no action to open the file.
  • Text/code files have an "Open in" menu (VS Code, Cursor, terminal, file explorer), but there is no "default app" action, and binary previews do not expose that menu in the top-right area at all.

Expected behavior

  • Add an "Open with default app" button (or an entry in the existing "Open in" menu) in the file preview's top-right toolbar.
  • It should call the existing desktop open-path IPC (for example FilesOpenPath / desktop.launch(path)) without an application argument, so the OS opens the file with its default handler.
  • It should work for any file inside the session workspace and show an error/toast if the file no longer exists.

Why

Users previewing generated reports and archives (zip/docx/xlsx/pdf) often need to open them in Word, Excel, or the file manager. Today they must leave the Review pane, locate the file in the file tree or file manager, and open it there.

Steps to reproduce

  1. Open a session whose workspace contains a .zip (or .docx/.xlsx) file.
  2. Open the file from Review / Files.
  3. The preview shows Binary file · <size> with no way to open it externally.
  4. Check the top-right of the preview: there is no "Open" action.

Environment

  • opencode desktop: 2.1.4
  • OS: Windows 10.0.19045 (x64)
  • Install/channel: release / latest
  • Active plugins: [email protected]

Additional context

Activity

  1. opencode-agent commented on Oct 27, 2026

    @opencode-agent
    Contributor

    Thanks for the detailed request, @TAP-APIA! You'd like an Open with default app action in the desktop file preview (in the toolbar or the existing "Open in" menu). It would hand the file to the OS default handler, which matters most for binary files like .zip, .docx, .xlsx and .pdf that currently show only a Binary file · <size> placeholder.

    You're right that the desktop bridge can already open a path without naming an app. The gap is that the "Open in" menu offers only the file manager and a fixed list of editors and terminals. The maintainers will consider it.

    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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions