Repository navigation
fix(vscode-desktop-core): open links in a new VS Code window - #1319
Merged
Merged
Conversation
EhabY
marked this pull request as ready for review
December 1, 2026 12:40
35C4n0r
self-requested a review
December 2, 2026 11:47
35C4n0r
approved these changes
Dec 2, 2026
35C4n0r
enabled auto-merge (squash)
December 2, 2026 16:01
35C4n0r
pushed a commit
that referenced
this pull request
Dec 3, 2026
> **Stacked on #1319: review only the commits after #1319. Merge after #1319 is merged and vscode-desktop-core 1.2.2 is published.** ## Description Follow-up to #1319, same shape as #751. Moves the wrapper modules to `vscode-desktop-core` 1.2.2 so their links carry `windowId=_blank`. - cursor, windsurf, kiro, antigravity: 1.0.2 to 1.2.2, and they now pass `config_dir` (`$HOME/.cursor`, `$HOME/.codeium/windsurf`, `$HOME/.kiro/settings`, `$HOME/.gemini/config`). - vscode-desktop, devin-desktop: 1.2.0 to 1.2.2. - Each module is patch bumped, and the tests now expect `&windowId=_blank`. Why these four were on 1.0.2: core 1.1.0 (#753) made `config_dir` required, and no follow-up migrated them. vscode-desktop and devin-desktop moved to 1.2.0 only for extension pre-install (#1094, #1089). With defaults, 1.0.2 to 1.2.x adds no resources or behavior for these wrappers. Their own MCP scripts stay, and core's `mcp_config` is unused. `cytoshahar/positron` stays on core 1.0.2. Its maintainer can bump it and needs to choose a `config_dir`. ## Found, not fixed here - antigravity's own `mcp` script still writes the legacy `~/.gemini/antigravity/mcp_config.json`. Antigravity's docs now put the global MCP config at `~/.gemini/config/mcp_config.json`. - devin-desktop passes `config_dir = "$HOME/.config/devin"`, but Devin Desktop is the Windsurf rebrand, and its docs point at `~/.codeium/windsurf`. Open PR #1121 also bumps `vscode-desktop-core`, so whichever merges second must re-bump. - Issue: coder/vscode-coder#1229 - Core change: #1319 - coder/coder PR: coder/coder#32847 - Companion vscode-coder PR: coder/vscode-coder#1234 ## Type of Change - [x] Other (dependency update) ## Testing & Validation - [x] `terraform fmt -check` and `prettier --check` pass - [x] With the core pinned to the published 1.2.1: `terraform validate` passes for all six modules - [x] With the core sourced from the #1319 working tree: `terraform test` and `bun test` pass for all six modules - [ ] CI against the published 1.2.2 (fails until #1319 is released) <details><summary>Implementation plan</summary> - Branch from #1319 and add one commit. - In each wrapper's `main.tf`, set the `vscode-desktop-core` pin to `1.2.2`. In the four wrappers that were on 1.0.2, add `config_dir` set to each IDE's documented config folder (for Antigravity, the shared `~/.gemini/config`). - Run `.github/scripts/version-bump.sh patch` against the #1319 branch, so only the six wrappers get a patch bump and their README versions update. - Update the URL assertions in `main.test.ts` (and kiro's `kiro.tftest.hcl`) to expect `&windowId=_blank`. - Verification before 1.2.2 is published: pin 1.2.1 temporarily for `terraform validate`. Point `source` at the local core temporarily for `terraform test` / `bun test`, because 1.2.1 has no `windowId`. - Out of scope: `cytoshahar/positron`. Its maintainer owns the `config_dir` choice. </details> _Generated by Coder Agents on behalf of @EhabY._
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds
windowId=_blankto thevscode-desktop-coreapp link. This makes VS Code and its forks open the link in a fresh window, and on a cold start they skip restoring the previous session, whose remote windows can block and drop the link. Forks without support ignore the param, and the Coder extension ignores unknown params.Templates must update to
vscode-desktop-core1.2.2, or a wrapper module that pins it, to get this.Type of Change
Module Information
Path:
registry/coder/modules/vscode-desktop-coreNew version:
v1.2.2Breaking change: No
Testing & Validation
bun test main.test.ts,terraform test)prettier --check,terraform fmt -check)Implementation plan
&windowId=_blankafter&token=$SESSION_TOKENin thecoder_appURL. The coder/coder session token trust check still passes: every param name is unique,urlstays a bare origin, andtoken=$SESSION_TOKENstays a raw entry..github/scripts/version-bump.sh patch.Generated by Coder Agents on behalf of @EhabY.