Repository navigation
remoteTunnel: explain the GitHub sign-in before sharing via Dev Tunnels - #350641
Merged
Merged
Conversation
Sharing this computer through Dev Tunnels from the Agents window opened the browser to sign in to GitHub without saying why. A dialog now explains first that dev tunnels use the GitHub account so that only its owner can connect, and why a sign-in is needed: the user isn't signed in, the existing session lacks the permission to read their email address and organizations, or the tunnel service no longer accepts it. Declining cancels sharing without reporting an error. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the Dev Tunnels sign-in confirmation change.
No open issues 🎉
What changed in this PR
Adds an explanatory GitHub sign-in confirmation before starting Dev Tunnels sharing in the Agents window, while leaving the editor’s existing account-picker flow unchanged.
Changes:
- Explains missing sign-in, missing permissions, or a rejected session before authentication begins.
- Allows cancellation without starting authentication or a tunnel.
- Adds tests for the three explanations and cancellation, and documents the behavior.
No actionable findings remain. The live dialog and browser sign-in flow were not manually validated.
| File | Description |
|---|---|
src/vs/workbench/contrib/sessions/providers/remoteAgentHost/REMOTE_AGENT_HOST_SESSIONS_PROVIDER.md |
Documents the sign-in explanation and cancellation behavior. |
src/vs/workbench/contrib/remoteTunnel/test/electron-browser/remoteTunnel.contribution.test.ts |
Tests each sign-in explanation and cancellation. |
src/vs/workbench/contrib/remoteTunnel/electron-browser/remoteTunnel.contribution.ts |
Adds the confirmation dialog before GitHub authentication. |
Review effort: Balanced
Christof Marti (chrmarti)
marked this pull request as ready for review
November 27, 2026 10:30
Christof Marti (chrmarti)
enabled auto-merge
November 27, 2026 10:30
Dmitriy Vasyura (dmitrivMS)
approved these changes
Nov 27, 2026
Ulugbek Abdullaev (ulugbekna)
approved these changes
Nov 27, 2026
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.
Sharing this computer through Dev Tunnels from the Remote Connections menu in the Agents window (and Share This Computer in Remote Environments) opened the browser for a GitHub sign-in without any explanation. This happens when no GitHub session with the tunnel permissions (
user:email,read:org) can be used.A dialog now explains why a sign-in is needed before the browser opens, and lets the user cancel:
'canceled', which the menu and the This Computer setup already treat as a cancel, without an error.The editor window's Turn on Remote Tunnel Access is unchanged: its account picker already asks the user to choose "Sign in with GitHub".
How to test
read:orgscope.Validation
pnpm run build-fast --client-only: passed.\scripts\test.bat --reporter dot --run src/vs/workbench/contrib/remoteTunnel/test/electron-browser/remoteTunnel.contribution.test.ts --run src/vs/workbench/contrib/chat/test/electron-browser/toggleRemoteConnectionsActionViewItem.test.ts --run src/vs/sessions/contrib/tunnelHost/test/electron-browser/tunnelHost.contribution.test.ts: passed (111 passing). The four new cases fail without the change.pnpm run typecheck-client: passednode build/oxlint.tsandnode build/hygiene.tson the changed files: passedNot run: the dialog in a running Code OSS window, and the GitHub sign-in in the browser.