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

オープン 初心者向け
#62,040 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@ElonYangDev がすでに取り組んでいます。

2026年11月5日 から。

  • #62056 @ElonYangDev による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

Review Pane のヘッダーコンポーネントを見つけ、「Open in...」アクションのハンドラーと、アクティブなタブがファイルパスをどのように公開するかを追ってください。ハンドラーがターゲットを openInApp にどのように渡すかを確認してください。エディターを選ぶとアクティブなファイルが開き、ファイルタブがアクティブでない場合はワークスペースディレクトリが使われれば完了です。

索引モデルが issue の本文から書いたものです。

説明

pending close triaging

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);
主要言語
TypeScript
スター
224k
フォーク
30k
平均マージ
6時間 16分
マージ済み PR(30日)
507

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。