Skip to content

sessions: Clarify Remotes status and simplify actions - #343759

Merged
Christof Marti (chrmarti) merged 4 commits into
mainfrom
chrmarti/remotes-environment-status
Oct 23, 2026
Merged

Christof Marti (chrmarti) merged 4 commits into
mainfrom
chrmarti/remotes-environment-status

Conversation

@chrmarti

@chrmarti Christof Marti (chrmarti) commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #343719. This targets main because #343719 merged while the follow-up was being prepared.

Changes

  • Keep remote addresses visible even when an environment is offline.
  • Show an info icon after Disconnected when connecting is unavailable. Its tooltip explains why; keyboard users can reach it with Tab, open it with Enter or Space, and return focus with Escape.
  • Include both the address and explanation in row accessibility labels and the accessible view, and update accessibility help.
  • Omit Remove from all remote rows: forgetting a registration does not delete the discovery source, so Refresh can bring it back. Keep Connect/Disconnect and Rename; removal behavior in other surfaces is unchanged.
  • Give the status column room for the icon and reduce the actions column to two controls.
  • Use the real hover service in Remotes fixtures to exercise tooltip interactions.

Validation

Passed:

npm run compile-client
.\scripts\test.bat --run src\vs\sessions\contrib\providers\remoteAgentHost\test\browser\remotesWidget.test.ts --run src\vs\sessions\contrib\providers\remoteAgentHost\test\electron-browser\remotesEditor.test.ts --reporter dot
npm run eslint -- src\vs\sessions\contrib\providers\remoteAgentHost\browser\remotesTable.ts src\vs\sessions\contrib\providers\remoteAgentHost\browser\remotesWidget.ts src\vs\sessions\contrib\providers\remoteAgentHost\electron-browser\remotes.contribution.ts src\vs\sessions\contrib\providers\remoteAgentHost\test\browser\remotesWidget.test.ts src\vs\sessions\contrib\providers\remoteAgentHost\test\browser\remotesWidget.fixture.ts
npm run stylelint -- src\vs\sessions\contrib\providers\remoteAgentHost\browser\media\remotesWidget.css
git diff --check

Compilation completed with zero errors; all 38 focused tests passed; all lint and patch checks passed.

Component Explorer: inspected dark/light and narrow layouts, verified that Disconnected is not truncated beside the icon, and checked screenshot stability and disposal. In an Edge-backed interactive fixture, verified actual Tab/Shift+Tab navigation, Enter/Space tooltip opening, Escape dismissal with focus restoration, mouse hover, and absence of Remove buttons.

Full integration/smoke suites and live remote connection flows were not run.

Manual testing

  1. Open Manage Remotes with GitHub Environments enabled and an offline shared machine available.
  2. Confirm its Address remains visible and an info icon follows Disconnected.
  3. Hover the icon, or focus the row and Tab to it, then press Enter or Space. Confirm the explanation appears and Escape returns focus to the icon.
  4. Confirm all rows offer only Connect/Disconnect and Rename, including after Refresh.

Upstream compile/test repair

Merged origin/main at 747ecb44fa5 and included the requested upstream repair in a9527b844fd:

Validation for the repair:

  • npm run compile-client — passed with zero compilation errors after restoring the import. Its test run then exposed the stale Date expectation above.
  • npm run build-fast -- --client-only — passed after both corrections.
  • .\scripts\test.bat --run src\vs\sessions\contrib\sessions\test\browser\sessionsList.test.ts --run src\vs\sessions\contrib\providers\remoteAgentHost\test\browser\remotesWidget.test.ts --run src\vs\sessions\contrib\providers\remoteAgentHost\test\electron-browser\remotesEditor.test.ts --reporter dot — all 410 tests passed after both corrections.
  • node build\hygiene.ts src\vs\sessions\contrib\sessions\test\browser\sessionsList.test.ts — passed.
  • git diff --check — passed.

Keep unavailable remote addresses visible and explain disconnected environments through a keyboard-accessible info tooltip. Omit Remove from the management table because discovery can bring locations back.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 23, 2026 10:21
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 747ecb44 Current: 9c05583f

Changed (11)

sessions/remotes/remotesWidget/Environments/Light
Before After
before after
sessions/remotes/remotesWidget/EnvironmentsNarrow/Light
Before After
before after
sessions/remotes/remotesWidget/EnvironmentsEmpty/Light
Before After
before after
sessions/remotes/remotesWidget/EnvironmentsWarning/Light
Before After
before after
sessions/remotes/remotesWidget/Table/Light
Before After
before after
sessions/remotes/remotesWidget/Wide/Light
Before After
before after
sessions/remotes/remotesWidget/Windows/Light
Before After
before after
sessions/remotes/remotesWidget/Empty/Light
Before After
before after
sessions/remotes/remotesWidget/EmptyWindows/Light
Before After
before after
sessions/remotes/remotesWidget/RefreshWarnings/Light
Before After
before after
sessions/remotes/remotesWidget/EmptyRefreshWarnings/Light
Before After
before after

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Availability updates can hide the focused info icon without restoring keyboard focus to the table.

1 open issue
What changed in this PR

Clarifies remote availability in the Agents Window’s Remotes table, following the addition of Environments, and simplifies row actions.

Changes:

  • Preserves remote addresses and adds keyboard-accessible explanations for unavailable connections.
  • Removes Remove actions from remote rows, retaining Connect/Disconnect and Rename.
  • Updates column sizing, accessibility help, tests, and interactive hover fixtures.
File Description
src/​vs/​sessions/​contrib/​providers/​remoteAgentHost/​test/​browser/​remotesWidget.test.ts Covers status explanations, addresses, and the reduced action set.
src/​vs/​sessions/​contrib/​providers/​remoteAgentHost/​test/​browser/​remotesWidget.fixture.ts Uses the real hover service for interactive fixtures.
src/​vs/​sessions/​contrib/​providers/​remoteAgentHost/​electron-browser/​remotes.contribution.ts Updates accessibility help for explanations and available actions.
src/​vs/​sessions/​contrib/​providers/​remoteAgentHost/​browser/​remotesWidget.ts Adjusts column widths, rename handling, and accessible row text.
src/​vs/​sessions/​contrib/​providers/​remoteAgentHost/​browser/​remotesTable.ts Adds status info icons, preserves addresses, and removes Remove controls.
src/​vs/​sessions/​contrib/​providers/​remoteAgentHost/​browser/​media/​remotesWidget.css Styles info icons and their focus indicators.

Review effort: Balanced

Own visible and pending info tooltips with the rendered row, dispose them before returning keyboard focus to the table, and leave unrelated controls and hovers alone.

Co-authored-by: Copilot <[email protected]>
@chrmarti

Copy link
Copy Markdown
Collaborator Author

CI investigation: both reported failures originated from the unrelated WebKit test ChatImageReveal: the finishing reveal glyphs are independent of the outgoing loading wave. The macOS / Browser check was an aggregate of the failed unit job. Re-ran workflow 39938544013 without changing that code; attempt 2 passed, including both reported macOS checks.

Review follow-up pushed in be2e38f: owned info-tooltip lifetime and safe table-focus restoration when an offline environment becomes available or disappears. Added regression coverage using the real hover service, including unrelated focus/hover preservation and pending tooltip cancellation.

Validation passed:

  • npm run build-fast -- --client-only
  • .\scripts\test.bat --run src\vs\sessions\contrib\providers\remoteAgentHost\test\browser\remotesWidget.test.ts --run src\vs\sessions\contrib\providers\remoteAgentHost\test\electron-browser\remotesEditor.test.ts --reporter dot — 46 passing.
  • npm run test-browser-no-install -- --browser webkit --run src\vs\sessions\contrib\providers\remoteAgentHost\test\browser\remotesWidget.test.ts --run src\vs\workbench\contrib\chat\test\browser\attachments\chatImageReveal.test.ts --reporter dot — 85 passing on Windows WebKit.
  • npm run typecheck-client — passed.
  • npm run eslint -- src\vs\sessions\contrib\providers\remoteAgentHost\browser\remotesTable.ts src\vs\sessions\contrib\providers\remoteAgentHost\browser\remotesWidget.ts src\vs\sessions\contrib\providers\remoteAgentHost\test\browser\remotesWidget.test.ts — passed.
  • node build\hygiene.ts src\vs\sessions\contrib\providers\remoteAgentHost\browser\remotesTable.ts src\vs\sessions\contrib\providers\remoteAgentHost\browser\remotesWidget.ts src\vs\sessions\contrib\providers\remoteAgentHost\test\browser\remotesWidget.test.ts — passed.
  • git diff --check — passed.

The new commit will run through fresh CI; the successful macOS rerun above covered the preceding commit.

@chrmarti
Christof Marti (chrmarti) marked this pull request as ready for review October 23, 2026 11:13
Restore the QUICK_CHATS_SECTION_ID import and exercise the Chats cap under Workspace and Repository grouping, matching the current grouping contract.

Co-authored-by: Copilot <[email protected]>
@chrmarti
Christof Marti (chrmarti) merged commit c797482 into main Oct 23, 2026
59 checks passed
@chrmarti
Christof Marti (chrmarti) deleted the chrmarti/remotes-environment-status branch October 23, 2026 11:50
@vs-code-engineering vs-code-engineering Bot added this to the 1.144.0 milestone Oct 23, 2026
Benjamin Christopher Simmonds (benibenj) added a commit that referenced this pull request Oct 23, 2026
Resolve the conflict in sessionsList.test.ts by taking main's version, which landed the same QUICK_CHATS_SECTION_ID fix in #343759.

Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants