Repository navigation
sessions: Add Environments to Remotes management - #343719
Merged
Merged
Conversation
Show the GitHub environment inventory alongside SSH and tunnels, preserving its availability gates, account-scoped rename and connection lifecycle. Include offline hosts with disabled-connect guidance and keep inventory-owned removal unavailable. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Direct users to the application sharing the remote machine without implying a GitHub environment-management page exists. Co-authored-by: Copilot <[email protected]>
Christof Marti (chrmarti)
force-pushed
the
chrmarti/remotes-environments
branch
from
October 23, 2026 09:24
cfde0d6 to
56fe7dc
Compare
Contributor
Screenshot ChangesBase: Changed (3)Added (4) |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No blocking issues remain; the changes reuse existing ownership contracts and have focused regression coverage, although live-account and native-platform validation remain unperformed.
No open issues 🎉
What changed in this PR
Adds GitHub Environments to the Agents window’s existing Remotes management table, reusing the Mission Control inventory and provider connection controls.
Changes:
- Lists user-shared machines, including offline hosts, under existing feature and availability gates.
- Adds account-safe rename, provider-backed connection actions, settings access, and disabled-action explanations.
- Sorts sections alphabetically and extends accessibility guidance, regression tests, and themed fixtures.
| File | Description |
|---|---|
src/vs/sessions/contrib/providers/remoteAgentHost/test/electron-browser/remotesEditor.test.ts |
Updates the editor’s model stub for environment visibility. |
src/vs/sessions/contrib/providers/remoteAgentHost/test/browser/remotesWidget.test.ts |
Tests section ordering, settings, and offline action states. |
src/vs/sessions/contrib/providers/remoteAgentHost/test/browser/remotesWidget.fixture.ts |
Adds populated, narrow, empty, and warning environment fixtures. |
src/vs/sessions/contrib/providers/remoteAgentHost/test/browser/remotesModel.test.ts |
Covers inventory gates, connections, rename isolation, and withdrawal. |
src/vs/sessions/contrib/providers/remoteAgentHost/REMOTE_AGENT_HOST_SESSIONS_PROVIDER.md |
Documents environment inventory and management ownership. |
src/vs/sessions/contrib/providers/remoteAgentHost/electron-browser/remotes.contribution.ts |
Extends accessibility help for environments. |
src/vs/sessions/contrib/providers/remoteAgentHost/browser/remotesWidget.ts |
Adds reactive environment visibility, settings, and guidance. |
src/vs/sessions/contrib/providers/remoteAgentHost/browser/remotesTable.ts |
Adds environment actions and disabled-state explanations. |
src/vs/sessions/contrib/providers/remoteAgentHost/browser/remotesModel.ts |
Integrates inventory, feature gates, and environment operations. |
Review effort: Balanced
Henning Dieterichs (hediet)
approved these changes
Oct 23, 2026
This was referenced Oct 23, 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.
Summary
Follow-up to the merged #343167, rebased onto
origin/mainat486af7eb0f2. All three follow-up commits were replayed without conflicts;git range-diffconfirmed their patches were unchanged.How to test
sessions.chat.experimental.environmentPickerManageRemotesenabled, then choose Environment → Manage....chat.agentHost.githubEnvironments.enabledenabled, confirm the Environments section lists known user-shared machines, including offline ones. This setting does not bypass experiment availability.Validation
After rebasing,
npm run build-fast -- --client-onlypassed, and the following focused selection passed all 61 tests:Earlier implementation validation (not rerun in full after the conflict-free rebase):
npm run build-fast -- --client-only— passed.npm run typecheck-client— passed.npm run valid-layers-check— passed.git diff --check— passed.Exact lint command:
Dark/light, narrow, empty and failed-refresh fixtures were rendered and inspected. Browser assertions verified the section, disabled offline/removal actions, settings action, and keyboard Disconnect/Rename with inventory retention.
Validation limits: no real account inventory or remote connections were changed. Native Windows/Linux flows and full smoke/integration suites were not run. Component Explorer's MCP browser remained closed after restart, so visual validation used a fresh Playwright browser against its refreshed local server rather than the MCP stability tooling.