Deep links do not work when the URI is handled by an agent window
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 活発
- 技術スタック
- typescript, vscode
調査の方向性
まず package.json から始めて、activation event と extension kind のメタデータを確認します。記載されている VS Code、Cursor、Devin、VSCodium のシナリオで deep-link の動作を再現し、Cursor の fix がリリース済みか確認します。影響を受けるバージョンが文書化され、メタデータによって実行可能な変更が提供されない場合は、workaround が README または Coder deep-link documentation に配置されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
coder:// / vscode://coder.coder-remote/open?... deep links silently do nothing when the editor routes the URI to an "agent window" (VS Code Agents window, Cursor Agents window / Glass). These windows run a restricted extension host that does not load third-party extensions, so the extension is never activated and its registered vscode.window.registerUriHandler callback is never invoked.
The renderer logs the URI as handled, so no error is surfaced. The link appears to do nothing.
Reproduction (as reported for Cursor)
- Install
coder.coder-remote1.15.2. - Start Cursor 3.14.7 on Linux with a clean
HOMEand the default~/.cursor/extensionsdirectory. - Open
cursor://coder.coder-remote/open?workspace=test&url=https://coder.example.com. - Repeat after initialization completes.
Observed: renderer.log records the URI as handled, but extension-host initialization does not include coder.coder-remote, and there is no activation or URI-handler entry. On the repeat attempt, Cursor invokes workbench.extensions.installExtension even though the extension is already installed.
Expected: the installed extension is loaded and its onUri handler is invoked.
Upstream reports
- Cursor forum report and vendor response: https://forum.cursor.com/t/installed-extensions-onuri-handler-is-not-invoked-for-custom-uri/167316
- Cursor confirmed this is a known issue in 3.14.7:
cursor://links for third-party extensions can be handled in the Agents window, where the extension does not load, soonUridoes not fire. A fix was said to be prepared. - Stated workaround: make a normal IDE window active before opening the link. If only the Agents window is open, open a new editor window first, then click the link again.
- Cursor confirmed this is a known issue in 3.14.7:
- Related Cursor reports about extensions not loading in the Agents window:
- VS Code has shipped its own Agents window
(https://code.visualstudio.com/docs/agents/run/agents-window), which has the same restricted extension host. Related upstream issues:- microsoft/vscode#315776 "Can extensions detect that they are running in the agents window"
- microsoft/vscode#315637 "Add a 'Enable in Agent window' in extensions view"
- microsoft/vscode#317460 "Agents Window: MCP server contributed by extension is not available"
Why this matters
Deep links are the primary entry point from the Coder dashboard ("Open in VS Code" / "Open in Cursor"). If the user's active or only window is an agent window, the flow fails with no feedback.
Scope
Tracking. The root cause is in the editor, not in this extension, so the work here is likely limited to:
- Confirming which editors and versions are affected (VS Code stable/insiders, Cursor, Devin, VSCodium).
- Confirming whether the Cursor fix has shipped and in which version.
- Deciding whether to document the workaround in the README or in the Coder docs deep-link section.
- Investigating whether anything in
package.json(for example an explicitonUriactivation event, or extension kind metadata) changes whether the extension is loaded in these windows.
- 主要言語
- TypeScript
- スター
- 131
- フォーク
- 48
- 平均マージ
- 4日 15時間
- マージ済み PR(30日)
- 17
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/vscode-coder のほかの issue
-
coder/vscode-coder#1125 · コメント 1 件 · 担当者 1 名 ·
-
tech-debt
coder/vscode-coder#1119 · コメント 1 件 · 担当者 1 名 ·
-
enhancement tech-debt
難易度 3/5 1〜2日 初心者へのやさしさ 74/100
coder/vscode-coder#1118 · コメント 1 件 ·
-
coder/vscode-coder#1113 · コメント 3 件 · 担当者 1 名 ·
-
Flush the connection log buffer after N failed reconnect attempts against an unreachable server オープンenhancement tech-debt
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
coder/vscode-coder#1112 · コメント 1 件 ·
coder/vscode-coder の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
mksglu/context-mode#1200 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
anthropics/claude-code#96687 ·
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
AOSSIE-Org/DebateAI#582 · コメント 2 件 ·