Deep links do not work when the URI is handled by an agent window
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 42/100
- Issue-Typ
- Bug
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript, vscode
- Bereich
- developer-experience
Rechercherichtung
Beginne mit package.json, um das activation event und die extension kind metadata zu prüfen. Reproduziere das deep-link-Verhalten in den aufgeführten VS Code-, Cursor-, Devin- und VSCodium-Szenarien und prüfe, ob der Cursor-Fix ausgeliefert wurde. Als erledigt gilt die Aufgabe, wenn die betroffenen Versionen dokumentiert sind und der workaround im README oder in der Coder deep-link documentation platziert ist, sofern die Metadaten keine umsetzbare Änderung ermöglichen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 132
- Forks
- 48
- Ø Merge
- 1 T. 20 Std.
- Gemergte PRs (30 T.)
- 25
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus coder/vscode-coder
-
bug regression
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
coder/vscode-coder#1153 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
ReconnectingWebSocket drops messages the server sends right after the handshakeEvtl. vergeben @EhabY hat das vor 3 Tagen übernommen. Offenbug vs-code
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
coder/vscode-coder#1141 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Split commands.ts by topicEvtl. vergeben @EhabY hat das vor 3 Tagen übernommen. OffenImprovement tech-debt vs-code
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
coder/vscode-coder#1135 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Migrate CI setup to pnpm/setupEvtl. vergeben @EhabY hat das vor 27 Tagen übernommen. Offentech-debt
coder/vscode-coder#1119 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Design the VS Code Workspaces panelEvtl. wieder frei @chrifro hat das vor 30 Tagen übernommen, und es ist kein Pull Request offen. Offen
coder/vscode-coder#1113 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in coder/vscode-coder
Ähnliche Issues
-
test: make the #3408 Claude OAuth token fixture obviously fake so secret scanners stop flagging itOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
code-yeongyu/senpi#3436 ·
Maintainer antworten meist innerhalb von 1 Tag
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
lingdojo/kana-dojo#32505 · 1 Kommentar · 5 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
-
code-quality refactoring
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
github/gh-aw-firewall#10040 ·
Maintainer antworten meist innerhalb von 1 Tag
-
review-followup
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
griffinwork40/agent-afk#3868 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: import-export bug status: needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
amatya-aditya/obsidian-rss-dashboard#1191 ·
Maintainer antworten meist innerhalb von 1 Tag