Skip to content

desktop: "Open in <Editor>" menu in Review Pane opens workspace root directory instead of active file tab #62040

Closed as duplicate

Description

@arpit-moneyview

Summary

In the OpenCode Desktop Review / Workspace pane header, selecting an external editor (e.g., Sublime Text, Antigravity, Finder) from the top-right "Open in..." dropdown opens the workspace root directory instead of the currently active file tab displayed in the pane.

Environment

  • opencode version: 2.2.5
  • OS: Darwin 27.0.0 (macOS / darwin arm64)
  • Terminal: Desktop App (Review Pane)
  • Shell: /bin/zsh
  • Install/channel: Desktop 2.2.5
  • Active plugins: None

Reproduction

  1. Open a workspace in OpenCode Desktop.
  2. Open a specific file tab in the Review pane (e.g., queries/check_all_reg_properties.sql).
  3. Click the top-right "Open in..." dropdown menu located beside the active tab bar.
  4. Select an external editor (e.g., "Sublime Text").

Expected Behavior

The selected editor opens the active file tab (/path/to/workspace/queries/check_all_reg_properties.sql).

Actual Behavior

The editor opens the entire workspace root folder (/path/to/workspace/) instead of the specific file tab being viewed.

Suggested Fix

Update the action handler in the Review Pane header component to prioritize the active tab file path:

const targetPath = activeTab?.filePath ?? workspace.directory;
openInApp(selectedApp, targetPath);

Activity

  1. opencodejr commented on Nov 5, 2026

    @opencodejr
    Contributor

    Thanks for the clear report! I think this is a duplicate of #55858, which describes the same problem: the Open in button in the side/review panel header opens the workspace root instead of the active file tab.

    Possible duplicates and related issues, most likely first:

    A fix for #55858 was proposed in #59903, but that PR was closed without being merged, so 2.2.5 still behaves this way. Please follow #55858 for updates.

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.

  2. opencodejr commented on Nov 6, 2026

    @opencodejr
    Contributor

    Closing this as a duplicate of #55858, since there was no reply about how this problem differs. That issue covers the same bug: the side/review panel header Open in button opens the workspace root instead of the active file tab. Please follow #55858 for updates, and #61678 if you also see the related Windows issue with Sublime Text.

    If your problem turns out to be different, reply here with the details and we can reopen it. Thanks again for the clear report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions