Repository navigation
sessions: Improve Remotes search and tunnel sign-in - #344078
Merged
Merged
Conversation
Add inline clear and collapse actions, and offer explicit tunnel permission sign-in instead of a generic discovery error when no usable token exists. Co-authored-by: Copilot <[email protected]>
Base automatically changed from
chrmarti/remote-environments-visibility
to
main
October 24, 2026 20:45
Co-authored-by: Copilot <[email protected]>
Contributor
Screenshot ChangesBase: Changed (15)Added (3) |
Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Sign-in can indirectly register and connect hosts, and GitHub OAuth cancellation is incorrectly reported as an error.
2 open issues
What changed in this PR
This PR extends Remote Environments management in the Agents Window with search controls and explicit tunnel sign-in recovery, building on the remote visibility controls.
Changes:
- Adds Clear Search and Collapse All actions inside the search field.
- Distinguishes missing tunnel credentials from discovery failures and provides a Sign In action.
- Updates accessibility help, themed fixtures, and regression tests.
| File | Description |
|---|---|
src/vs/sessions/contrib/providers/remoteAgentHost/test/electron-browser/tunnelAgentHostServiceImpl.test.ts |
Tests configured scopes, authentication errors, cancellation, and gating. |
src/vs/sessions/contrib/providers/remoteAgentHost/test/electron-browser/remotesEditor.test.ts |
Updates the model stub for sign-in recovery. |
src/vs/sessions/contrib/providers/remoteAgentHost/test/browser/remotesWidget.test.ts |
Tests search actions and sign-in interaction states. |
src/vs/sessions/contrib/providers/remoteAgentHost/test/browser/remotesWidget.fixture.ts |
Adds wide and narrow sign-in fixtures. |
src/vs/sessions/contrib/providers/remoteAgentHost/test/browser/remotesModel.test.ts |
Tests authentication state and cached-host preservation. |
src/vs/sessions/contrib/providers/remoteAgentHost/REMOTE_AGENT_HOST_SESSIONS_PROVIDER.md |
Documents discovery-only sign-in recovery. |
src/vs/sessions/contrib/providers/remoteAgentHost/electron-browser/tunnelAgentHostServiceImpl.ts |
Adds explicit sign-in and typed authentication failures. |
src/vs/sessions/contrib/providers/remoteAgentHost/electron-browser/remotes.contribution.ts |
Updates accessibility help for the new actions. |
src/vs/sessions/contrib/providers/remoteAgentHost/browser/remotesWidget.ts |
Implements search controls and sign-in recovery flow. |
src/vs/sessions/contrib/providers/remoteAgentHost/browser/remotesTable.ts |
Renders the sign-in link and manages keyboard focus. |
src/vs/sessions/contrib/providers/remoteAgentHost/browser/remotesModel.ts |
Exposes authentication state and delegates sign-in. |
src/vs/sessions/contrib/providers/remoteAgentHost/browser/media/remotesWidget.css |
Aligns actions inside the search field. |
src/vs/platform/agentHost/common/tunnelAgentHost.ts |
Defines the authentication error and optional sign-in API. |
Review effort: Balanced
Normalize GitHub Authentication's documented cancellation results while preserving ordinary authentication listeners and auto-connect behavior. Co-authored-by: Copilot <[email protected]>
Christof Marti (chrmarti)
force-pushed
the
chrmarti/remotes-search-signin
branch
from
October 24, 2026 21:44
dcb501f to
5d70cf5
Compare
Christof Marti (chrmarti)
marked this pull request as ready for review
October 24, 2026 21:50
Christof Marti (chrmarti)
enabled auto-merge
October 24, 2026 21:50
Ladislau Szomoru (lszomoru)
approved these changes
Oct 24, 2026
2 tasks done
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.


Follow-up to #344034 (merged). This PR now targets
main.Changes
Cancelledresult into the standard cancellation error, so cancellation does not produce an error notification. Other provider errors still surface.Validation
Amended review follow-up: 100 Electron tests passed, plus client type-check and targeted hygiene. The listener suppression and discovery-generation fencing were removed; the contribution and its tests are identical to the pre-review version. Coverage retains GitHub
Error('Cancelled')/string cancellation normalization and checks that another provider's errors are not treated as GitHub cancellation.Follow-up commands (all passed):
Earlier feature validation:
Commands and results
All passed:
131 passing:
171 passing:
Manual follow-up: open Remote Environments with no tunnel-scoped session, confirm the plain-language prompt replaces the error, sign in, and confirm the tunnel list refreshes while normal authentication listeners and configured auto-connect behavior still apply. Verify cancellation and ordinary network failures remain distinguishable.
Live OAuth consent, external tunnel discovery, and screen-reader output were not exercised; authentication tests use fake sessions and configured scope lists. No user credentials or scopes were modified during validation.