Skip to content

sessions: group multi-root sessions by workspace - #328876

Open
DonJayamanne wants to merge 4 commits into
mainfrom
don/agents/agents-window-multi-root-grouping
Open

sessions: group multi-root sessions by workspace#328876
DonJayamanne wants to merge 4 commits into
mainfrom
don/agents/agents-window-multi-root-grouping

Conversation

@DonJayamanne

Copy link
Copy Markdown
Contributor

Summary

  • expose Agent Host multi-root workspace provenance separately from the operational session workspace
  • group Agents Window workspace sections by stable workspace-file identity
  • display the recorded workspace name with a .code-workspace filename fallback
  • preserve operational workspace labels for row badges and file/repository behavior
  • hide the workspace-section + action because the Agents Window cannot create multi-root sessions

Validation

  • npm run transpile-client
  • focused sessionsList, sessionsViewActions, and Agent Host provider unit tests
  • npm run valid-layers-check
  • npm run precommit
  • independent code review and rubber-duck verification

npm run typecheck-client remains blocked by an unchanged Zod/IJsonSchema mismatch in src/vs/workbench/test/browser/componentFixtures/fixtureUtils.ts:899 on current main.

Use workspace-file provenance as the stable section identity and display the recorded workspace name without changing operational workspace badges. Hide the unsupported new-session action for multi-root sections.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 4, 2026 00:32

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.

Pull request overview

Groups multi-root Agent Host sessions by workspace-file provenance while preserving operational workspace behavior.

Changes:

  • Exposes multi-root workspace provenance on sessions.
  • Adds stable workspace grouping, labels, and ordering identities.
  • Hides unsupported multi-root session creation actions and adds tests.
Show a summary per file
File Description
src/vs/sessions/SESSIONS.md Documents workspace provenance.
src/vs/sessions/SESSIONS_LIST.md Documents grouping and ordering behavior.
src/vs/sessions/services/sessions/common/session.ts Adds multi-root session metadata.
src/vs/sessions/services/sessions/browser/sessionSectionOrderService.ts Updates identity documentation.
src/vs/sessions/contrib/sessions/test/browser/sessionsViewActions.test.ts Tests action visibility.
src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts Tests multi-root grouping and labels.
src/vs/sessions/contrib/sessions/browser/views/sessionsViewActions.ts Gates workspace creation actions.
src/vs/sessions/contrib/sessions/browser/views/sessionsList.ts Implements multi-root sections.
src/vs/sessions/contrib/providers/agentHost/test/browser/localAgentHostSessionsProvider.test.ts Tests provenance updates.
src/vs/sessions/contrib/providers/agentHost/browser/baseAgentHostSessionsProvider.ts Publishes provenance from metadata.
src/vs/sessions/contrib/providers/agentHost/AGENT_HOST_SESSIONS_PROVIDER.md Documents provider behavior.

Review details

  • Files reviewed: 11/11 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment thread src/vs/sessions/contrib/sessions/browser/views/sessionsList.ts Outdated
Comment thread src/vs/sessions/services/sessions/common/session.ts
Use the registered filesystem provider's casing rules for multi-root section identities and preserve provenance through visible-session wrappers.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
DonJayamanne and others added 2 commits August 4, 2026 16:17
Suffix multi-root workspace section names with a localized Workspace label.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@DonJayamanne
DonJayamanne marked this pull request as ready for review August 4, 2026 07:00
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@sandy081

Matched files:

  • src/vs/sessions/services/sessions/browser/sessionSectionOrderService.ts
  • src/vs/sessions/services/sessions/browser/visibleSessions.ts
  • src/vs/sessions/services/sessions/common/session.ts
  • src/vs/sessions/services/sessions/test/browser/visibleSessions.test.ts

@lszomoru

Matched files:

  • src/vs/sessions/services/sessions/browser/sessionSectionOrderService.ts
  • src/vs/sessions/services/sessions/browser/visibleSessions.ts
  • src/vs/sessions/services/sessions/common/session.ts
  • src/vs/sessions/services/sessions/test/browser/visibleSessions.test.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants