GeezerVison is showing github.com — fix(web): SSH projects open in a new VS Code window by juliusmarminge · Pull Request #41610 · pingdotgg/t3code
Conversation
Opening a project in VS Code from an SSH-connected T3 server replaced whatever project was open in the last active VS Code window. Remote folder links for VS Code-family editors (VS Code, Insiders, VSCodium, Cursor) now carry ?windowId=_blank, so the project opens in a new window, as local projects already do since #34480. Links to individual files are unchanged.
Fixes #41600
Reproduction on main
Commit a369642 (origin/main). Ran buildRemoteOpenUrl({ editor: 'vscode', host: 'localhost', absolutePath: '/tmp/.../projB' }) from the checkout. It returned vscode://vscode-remote/ssh-remote+localhost/tmp/.../projB, the URL that OpenInPicker hands to openRemoteEditorUrl for SSH environments. I did not click the button in the T3 desktop app; I passed this URL straight to VS Code. Setup: official VS Code 1.147.0 for Linux with Remote-SSH 0.128.0, isolated user-data-dir, headless Xvfb desktop running openbox, settings set to skip workspace trust, the remote-link confirmation prompt and the AI sign-in modal. Steps: (1) code projA, so one window titled 'projA - Visual Studio Code'. (2) code --open-url <that URL>. Result: wmctrl lists the same window id (0x00400003) now titled 'projB [SSH] - Visual Studio Code', and project A is gone, which is the reported behaviour. The SSH connection itself failed (no key for localhost), but the window had already been replaced. Control: the same steps with ?windowId=_blank added to the URL leave 'projA - Visual Studio Code' open and add a second window, 'projB [SSH] - Visual Studio Code'. Failing test pushed to factory/repro-41600: in apps/web/src/remoteOpen.test.ts it expects a VS Code remote folder URL to carry windowId=_blank; it fails on main and the file's other 22 tests pass.
Evidence
Repeated the supplied triage reproduction in official Linux VS Code 1.147.0 with Remote-SSH 0.128.0, isolated profiles, identical synthetic projects, and a 1920x1080 Xvfb/Openbox desktop. Open projA, generate the projB SSH folder URL from each checkout, and pass it directly to code --open-url. This verifies the direct URL handoff; the T3 button itself was not clicked.
On base, the original window ID changed from projA to projB [SSH]. On head, that same window retained projA and a separate window opened projB [SSH]. Both SSH attempts subsequently failed with the same public-key permission error, matching the triage conditions.
Reproduction driver · Supporting evidence and window observations
Not shown:
- The complete T3 desktop/web button-click flow was not exercised; the supplied triage reproduction's direct URL handoff was repeated instead.
- Successful SSH connection and remote folder contents were not verified: localhost rejected authentication on both sides, after the window behavior was already observable.
- Other VS Code-family editors and remote file links were not exercised.
Tests
vp test run src/remoteOpen.test.ts src/markdown-links.test.ts (apps/web): 32 passed, including the repro test
vp test run src/electron/ElectronShell.test.ts (apps/desktop): 9 passed
vp run check:changed: lint, knip, typecheck (39 packages) and tests all passed
- PR CI on 4b3bf59: all 8 required checks passed
Not in this change
- Remote file links (
:1:1) still carry no window hint, as on the local path, where only folders get --new-window.
Who did the work
- Written by Claude Opus 5.5, in Claude Code
- Reviewed by GPT-6.1 Sol, in Codex, and by Claude Opus 5.5, each on its own
- Proof captured by GPT-6.1 Sol and checked by Claude Opus 5.5
Run by the t3code factory in T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Repro for #41600: buildRemoteOpenUrl gives vscode-remote folder links no
windowId=_blank, so VS Code replaces the last active window.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
VS Code-family remote folder links had no new-window hint, so VS Code
replaced the last active window. Add windowId=_blank to folder links,
matching the local --new-window fix in #34480.
Fixes #41600
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Thread transfer impact
✅ Thread transfer remains within every enforced ceiling.
| Provider |
Metric |
Main baseline |
This PR |
Impact |
PR ceiling |
|
| Codex |
Total thread wire |
5.0 KiB |
5.0 KiB |
0 B (0.0%) |
6.8 KiB |
✅ |
| Codex |
Thread snapshot wire |
3.8 KiB |
3.8 KiB |
0 B (0.0%) |
4.9 KiB |
✅ |
| Codex |
Live turn WebSocket wire |
1.2 KiB |
1.2 KiB |
0 B (0.0%) |
2.0 KiB |
✅ |
| Codex |
Live turn WebSocket decoded |
21.5 KiB |
21.5 KiB |
0 B (0.0%) |
24.4 KiB |
✅ |
| Codex |
Live turn messages |
1 |
1 |
0 (0.0%) |
8 |
✅ |
| Claude |
Total thread wire |
5.0 KiB |
5.0 KiB |
0 B (0.0%) |
6.8 KiB |
✅ |
| Claude |
Thread snapshot wire |
3.8 KiB |
3.8 KiB |
0 B (0.0%) |
4.9 KiB |
✅ |
| Claude |
Live turn WebSocket wire |
1.2 KiB |
1.2 KiB |
0 B (0.0%) |
2.0 KiB |
✅ |
| Claude |
Live turn WebSocket decoded |
21.9 KiB |
21.9 KiB |
0 B (0.0%) |
24.4 KiB |
✅ |
| Claude |
Live turn messages |
1 |
1 |
0 (0.0%) |
8 |
✅ |
Other scenarios
All 64 scenario measurements match main.
All 64 scenario measurements
| Provider |
Scenario |
Metric |
Main baseline |
This PR |
Impact |
PR ceiling |
|
| Codex |
short turn resume |
WebSocket decoded |
10.5 KiB |
10.5 KiB |
0 B (0.0%) |
12.7 KiB |
✅ |
| Codex |
short turn resume |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Codex |
long turn running, cold open |
HTTP decoded |
281.7 KiB |
281.7 KiB |
0 B (0.0%) |
302.7 KiB |
✅ |
| Codex |
long turn running, cold open |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Codex |
long turn running, history page |
HTTP decoded |
92.4 KiB |
92.4 KiB |
0 B (0.0%) |
107.4 KiB |
✅ |
| Codex |
long turn running, history page |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Codex |
long turn finished, cold open |
HTTP decoded |
381.5 KiB |
381.5 KiB |
0 B (0.0%) |
410.2 KiB |
✅ |
| Codex |
long turn finished, cold open |
rows |
151 |
151 |
0 (0.0%) |
151 |
✅ |
| Codex |
long turn finished, socket cold open |
WebSocket decoded |
381.6 KiB |
381.6 KiB |
0 B (0.0%) |
410.2 KiB |
✅ |
| Codex |
long turn finished, socket cold open |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Codex |
long turn finished, socket cold open |
rows |
151 |
151 |
0 (0.0%) |
151 |
✅ |
| Codex |
long turn finished, work page |
HTTP decoded |
186.2 KiB |
186.2 KiB |
0 B (0.0%) |
200.2 KiB |
✅ |
| Codex |
long turn finished, work page |
rows |
150 |
150 |
0 (0.0%) |
150 |
✅ |
| Codex |
idle thread resume |
WebSocket decoded |
65 B |
65 B |
0 B (0.0%) |
200 B |
✅ |
| Codex |
idle thread resume |
WebSocket messages |
1 |
1 |
0 (0.0%) |
1 |
✅ |
| Codex |
fleet shell snapshot |
HTTP decoded |
42.4 KiB |
42.4 KiB |
0 B (0.0%) |
53.7 KiB |
✅ |
| Codex |
fleet shell snapshot |
rows |
27 |
27 |
0 (0.0%) |
27 |
✅ |
| Codex |
fleet shell subscribe |
WebSocket decoded |
65 B |
65 B |
0 B (0.0%) |
200 B |
✅ |
| Codex |
fleet shell subscribe |
WebSocket messages |
1 |
1 |
0 (0.0%) |
1 |
✅ |
| Codex |
fleet shell resume check |
HTTP decoded |
18 B |
18 B |
0 B (0.0%) |
100 B |
✅ |
| Codex |
fleet shell resume check |
rows |
0 |
0 |
0 |
0 |
✅ |
| Codex |
stale shell reload |
HTTP decoded |
42.4 KiB |
42.4 KiB |
0 B (0.0%) |
53.7 KiB |
✅ |
| Codex |
stale shell reload |
rows |
27 |
27 |
0 (0.0%) |
27 |
✅ |
| Codex |
stale shell resume |
WebSocket decoded |
140 B |
140 B |
0 B (0.0%) |
400 B |
✅ |
| Codex |
stale shell resume |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Codex |
stale todo list cold open |
HTTP decoded |
72.4 KiB |
72.4 KiB |
0 B (0.0%) |
83.0 KiB |
✅ |
| Codex |
stale todo list cold open |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Codex |
stale todo list cold open |
nodes |
2 |
2 |
0 (0.0%) |
4 |
✅ |
| Codex |
stale todo list cold open |
subagents |
2 |
2 |
0 (0.0%) |
4 |
✅ |
| Codex |
stale todo list cold open |
plans |
1 |
1 |
0 (0.0%) |
2 |
✅ |
| Codex |
stale todo list cold open |
providerTurns |
1 |
1 |
0 (0.0%) |
2 |
✅ |
| Codex |
stale todo list cold open |
checkpoints |
1 |
1 |
0 (0.0%) |
2 |
✅ |
| Claude |
short turn resume |
WebSocket decoded |
10.6 KiB |
10.6 KiB |
0 B (0.0%) |
12.7 KiB |
✅ |
| Claude |
short turn resume |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Claude |
long turn running, cold open |
HTTP decoded |
283.3 KiB |
283.3 KiB |
0 B (0.0%) |
302.7 KiB |
✅ |
| Claude |
long turn running, cold open |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Claude |
long turn running, history page |
HTTP decoded |
93.4 KiB |
93.4 KiB |
0 B (0.0%) |
107.4 KiB |
✅ |
| Claude |
long turn running, history page |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Claude |
long turn finished, cold open |
HTTP decoded |
384.2 KiB |
384.2 KiB |
0 B (0.0%) |
410.2 KiB |
✅ |
| Claude |
long turn finished, cold open |
rows |
151 |
151 |
0 (0.0%) |
151 |
✅ |
| Claude |
long turn finished, socket cold open |
WebSocket decoded |
384.3 KiB |
384.3 KiB |
0 B (0.0%) |
410.2 KiB |
✅ |
| Claude |
long turn finished, socket cold open |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Claude |
long turn finished, socket cold open |
rows |
151 |
151 |
0 (0.0%) |
151 |
✅ |
| Claude |
long turn finished, work page |
HTTP decoded |
188.1 KiB |
188.1 KiB |
0 B (0.0%) |
200.2 KiB |
✅ |
| Claude |
long turn finished, work page |
rows |
150 |
150 |
0 (0.0%) |
150 |
✅ |
| Claude |
idle thread resume |
WebSocket decoded |
66 B |
66 B |
0 B (0.0%) |
200 B |
✅ |
| Claude |
idle thread resume |
WebSocket messages |
1 |
1 |
0 (0.0%) |
1 |
✅ |
| Claude |
fleet shell snapshot |
HTTP decoded |
43.0 KiB |
43.0 KiB |
0 B (0.0%) |
53.7 KiB |
✅ |
| Claude |
fleet shell snapshot |
rows |
27 |
27 |
0 (0.0%) |
27 |
✅ |
| Claude |
fleet shell subscribe |
WebSocket decoded |
66 B |
66 B |
0 B (0.0%) |
200 B |
✅ |
| Claude |
fleet shell subscribe |
WebSocket messages |
1 |
1 |
0 (0.0%) |
1 |
✅ |
| Claude |
fleet shell resume check |
HTTP decoded |
18 B |
18 B |
0 B (0.0%) |
100 B |
✅ |
| Claude |
fleet shell resume check |
rows |
0 |
0 |
0 |
0 |
✅ |
| Claude |
stale shell reload |
HTTP decoded |
43.0 KiB |
43.0 KiB |
0 B (0.0%) |
53.7 KiB |
✅ |
| Claude |
stale shell reload |
rows |
27 |
27 |
0 (0.0%) |
27 |
✅ |
| Claude |
stale shell resume |
WebSocket decoded |
140 B |
140 B |
0 B (0.0%) |
400 B |
✅ |
| Claude |
stale shell resume |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Claude |
stale todo list cold open |
HTTP decoded |
73.4 KiB |
73.4 KiB |
0 B (0.0%) |
83.0 KiB |
✅ |
| Claude |
stale todo list cold open |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Claude |
stale todo list cold open |
nodes |
2 |
2 |
0 (0.0%) |
4 |
✅ |
| Claude |
stale todo list cold open |
subagents |
2 |
2 |
0 (0.0%) |
4 |
✅ |
| Claude |
stale todo list cold open |
plans |
1 |
1 |
0 (0.0%) |
2 |
✅ |
| Claude |
stale todo list cold open |
providerTurns |
1 |
1 |
0 (0.0%) |
2 |
✅ |
| Claude |
stale todo list cold open |
checkpoints |
1 |
1 |
0 (0.0%) |
2 |
✅ |
Baseline: da7d298 · PR result: 4b3bf59 · Source CI: success
Scenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
- Codex decoded thread snapshot: 108.5 KiB
- Claude decoded thread snapshot: 108.8 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 23, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
Remote folder URLs produced by buildRemoteOpenUrl now include windowId=_blank; file URLs retain the :1:1 suffix. Tests cover SSH aliases, usernames, Cursor-compatible links, Windows paths, and file-target options.
Changes: Remote editor URLs
| Layer / File(s) |
Summary |
Build and validate remote folder URLs packages/contracts/src/editor.ts, apps/web/src/remoteOpen.test.ts |
Remote folder URLs include windowId=_blank. Tests update expected URLs for SSH aliases, usernames, Cursor-compatible links, Windows paths, and file-target options. File URLs retain the :1:1 suffix. |
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix · Severity of issue fixed: Medium
Suggested reviewers: macroscopeapp
Merge Risk: Minimal · up to 4b3bf
-
SSH project folder links now ask VS Code-family editors to open in a new window, so the existing window stays open. No merge-blocking risk was found.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title "fix(web): SSH projects open in a new VS Code window" names the main change. The diff adds windowId=_blank to remote folder URLs for VS Code-family editors, so SSH projects open in a new win… |
| Linked Issues check |
 |
Issue #41600 requires that opening an SSH project in VS Code open a new window and leave the existing window unchanged. At the reviewed head, buildRemoteOpenUrl() in packages/contracts/src/editor.ts… |
| Out of Scope Changes check |
 |
The change touches only the remote folder URL branch in buildRemoteOpenUrl() and its tests. The same branch serves VS Code, VS Code Insiders, VSCodium, and Cursor, because they share the `vscode-rem… |
| Description check |
 |
The description follows the repository template closely. It has a clear Problem statement (SSH-opened projects replace the active VS Code window), a Change section (adds ?windowId=_blank to remote fol… |
Full details: Title check
-
Explanation
The title "fix(web): SSH projects open in a new VS Code window" names the main change. The diff adds windowId=_blank to remote folder URLs for VS Code-family editors, so SSH projects open in a new window. The title follows the conventional commit format and is specific. It does not cover the Cursor, Insiders, or VSCodium scope, which is expected for a short title.
Full details: Linked Issues check
-
Explanation
Issue #41600 requires that opening an SSH project in VS Code open a new window and leave the existing window unchanged. At the reviewed head, buildRemoteOpenUrl() in packages/contracts/src/editor.ts returns ...vscode-remote/ssh-remote+<destination><path>?windowId=_blank for folder targets (isFile falsy). This is the missing hint the issue names. File targets keep the :1:1 suffix and get no window hint, as the PR states. Zed and JetBrains return before this branch, so they are unchanged. The PR's manual reproduction on main showed the window replacement. The same steps with ?windowId=_blank kept the original window and opened a second one. A regression test in apps/web/src/remoteOpen.test.ts covers the new expectation. I read the contracts file directly. The test file diff could not be read, so the test coverage claim rests on the PR's reported test results. The reproduction passed the URL to VS Code directly and did not click the desktop app button, so the app wiring was not exercised end to end. The Evidence section is still pending. The issue's acceptance behavior is met by the URL change.
Full details: Out of Scope Changes check
-
Explanation
The change touches only the remote folder URL branch in buildRemoteOpenUrl() and its tests. The same branch serves VS Code, VS Code Insiders, VSCodium, and Cursor, because they share the vscode-remote scheme. Extending the hint to those editors follows from the same mechanism the issue describes, and the PR states this scope explicitly. The issue names only VS Code, but the VS Code-family behavior is the same and no unrelated behavior changes. Zed, JetBrains, and file links are unchanged. The Cursor and VSCodium support for windowId=_blank is not independently verified here, which is a limit on the claim, not a scope problem.
Full details: Description check
-
Explanation
The description follows the repository template closely. It has a clear Problem statement (SSH-opened projects replace the active VS Code window), a Change section (adds ?windowId=_blank to remote folder URLs for VS Code-family editors), a Scope section that links issue #41600 and explains the bug, and a detailed Verification section with focused test runs, a reproduction on main, before/after evidence, and explicit notes on what was not verified. It also includes the required model/harness attribution. Minor gaps: the Scope section does not explain why the change is limited to folder links beyond a brief note, and the description is long relative to the template. These do not prevent a pass.
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between da7d298 and 4b3bf59.
Files selected for processing: 2
-
apps/web/src/remoteOpen.test.ts
packages/contracts/src/editor.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:XS
0-9 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
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.
|