Repository navigation
Agents - remove branch name from explorer view - #343289
Merged
Ladislau Szomoru (lszomoru) merged 2 commits intoOct 21, 2026
Merged
Ladislau Szomoru (lszomoru) merged 2 commits into
Ladislau Szomoru (lszomoru) merged 2 commits into
Conversation
Martin Aeschlimann (aeschli)
previously approved these changes
Oct 21, 2026
Contributor
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
3 open issues
This change relies on the default behavior ofgetWorkspaceFolderLabel(...)to produce the short… · New The test updates expected names, but it doesn’t actually assert that the contribution requested the… · New The test updates expected names, but it doesn’t actually assert that the contribution requested the… · New
What changed in this PR
Removes the branch name suffix from the Agents Explorer root folder label by switching to the “short” workspace-folder label, and updates the corresponding unit test expectations.
Changes:
- Request a non-verbose (short) workspace folder label when constructing workspace folder entries.
- Update unit test to expect short labels (no
(<branch>)suffix) and corresponding update events.
| File | Description |
|---|---|
| src/vs/sessions/contrib/workspace/browser/workspaceFolderManagement.ts | Stops requesting the verbose/long workspace folder label to avoid including branch names. |
| src/vs/sessions/contrib/workspace/test/browser/workspaceFolderManagement.test.ts | Updates expectations to reflect short labels (without branch names). |
Review effort: Lite
Benjamin Christopher Simmonds (benibenj)
previously approved these changes
Oct 21, 2026
Make the workspace folder label stub append the branch name for verbose requests, mirroring the real service, so the test fails if the explorer root starts showing the branch name again. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Ladislau Szomoru (lszomoru)
dismissed stale reviews from Benjamin Christopher Simmonds (benibenj) and Martin Aeschlimann (aeschli)
via
October 21, 2026 18:33
3b3a71e
Ladislau Szomoru (lszomoru)
enabled auto-merge (squash)
October 21, 2026 18:34
Martin Aeschlimann (aeschli)
approved these changes
Oct 21, 2026
Ladislau Szomoru (lszomoru)
deleted the
lszomoru/agents/remove-branch-name-from-explorer-view
branch
October 21, 2026 18:56
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.

This pull request removes the branch name from the root folder display in the Agents window Explorer, addressing user confusion since the branch name is already shown in the title bar.
Changes made:
workspaceFolderManagement.tsto request the short form of the folder label instead of the long form that included the branch name.workspaceFolderManagement.test.tsto reflect the change in folder naming, ensuring it now uses repository names instead of session-branch names.Validation: