Agents web: drop [hostname] from remote agent host session labels#312257
Draft
Agents web: drop [hostname] from remote agent host session labels#312257
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Removes redundant remote host labeling in the Agents web sessions UI, relying on the web-only host filter dropdown to provide host context while keeping native desktop behavior unchanged.
Changes:
- On web, omit the remote host label from session card descriptions so active sessions use the existing “Working… / Input needed / Failed” status text.
- On web, omit
providerLabelwhen building remote-agent-host workspaces so workspace/group headers don’t render[hostname]. - Update the shared adapter options type to allow
descriptionto beundefined.
Show a summary per file
| File | Description |
|---|---|
| src/vs/sessions/contrib/remoteAgentHost/browser/remoteAgentHostSessionsProvider.ts | Gates remote host description/workspace label decoration behind isWeb to remove host suffixes on web only. |
| src/vs/sessions/contrib/agentHost/browser/baseAgentHostSessionsProvider.ts | Allows adapter description to be optional so web can intentionally omit it. |
Copilot's findings
- Files reviewed: 2/2 changed files
- Comments generated: 0
c722e78 to
f599c01
Compare
74b4266 to
b5f12d9
Compare
On web the titlebar host filter dropdown already scopes sessions to a single host, making the '[<hostname>]' suffix in the session workspace label and the host label in the session card description redundant. On web only: - Omit the providerLabel from remote agent host session workspace labels so group headers show just '<reponame>' instead of '<reponame> [<host>]'. - Skip the host description on session cards (active sessions fall back to 'Working...' / 'Input needed' / 'Failed' status text). Co-authored-by: Copilot <[email protected]>
b5f12d9 to
d12a963
Compare
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.
On web the titlebar host filter dropdown already scopes sessions to a single host, which makes the
[<hostname>]suffix in session group headers and the host label in the session card description redundant.Changes (web only)
providerLabelfrom remote agent host session workspace labels, so group headers render as<reponame>instead of<reponame> [<hostname>].Working.../Input needed/Failedstatus text; completed sessions were already not rendering the description.Native desktop behaviour is unchanged — the
[<hostname>]still appears there since the host filter dropdown is web-only. Local agent host sessions are untouched since they don't run on web.