Repository navigation
sessions: Clarify Remotes status and simplify actions - #343759
Conversation
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]>
Screenshot ChangesBase: Changed (11) |
There was a problem hiding this comment.
🟡 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]>
|
CI investigation: both reported failures originated from the unrelated WebKit test 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:
The new commit will run through fresh CI; the successful macOS rerun above covered the preceding commit. |
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]>
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]>

Follow-up to #343719. This targets
mainbecause #343719 merged while the follow-up was being prepared.Changes
Validation
Passed:
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
Upstream compile/test repair
Merged
origin/mainat747ecb44fa5and included the requested upstream repair ina9527b844fd:QUICK_CHATS_SECTION_IDimport insessionsList.test.ts, fixing Compile & Hygiene's TS2304 failure.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.