Skip to content

sessions: Preserve custom group for starting sessions - #339105

Merged
Megan Rogge (meganrogge) merged 3 commits into
mainfrom
merogge/fix-custom-group-in-flight-session
Oct 1, 2026
Merged

Megan Rogge (meganrogge) merged 3 commits into
mainfrom
merogge/fix-custom-group-in-flight-session

Conversation

@meganrogge

Copy link
Copy Markdown
Collaborator

Fixes #339071

Capture pending custom-group placement when a provisional new session is published, expose that transient membership while the session starts, and clear it if startup fails. Durable membership is still saved only after the session starts.

Tests cover provisional publication, draft-to-committed session replacement, successful startup, and failed-start cleanup.

Testing

  • npm run transpile-client
  • ./scripts/test.sh --run src/vs/sessions/services/sessions/test/browser/sessionGroupsService.test.ts

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 375ed100-bce0-433b-bd68-bf5cf34d9ed0
Copilot AI balanced review requested due to automatic review settings October 1, 2026 14:55
@vs-code-engineering

vs-code-engineering Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

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

Sandeep Somavarapu (@sandy081)

Matched files:

  • src/vs/sessions/services/sessions/browser/sessionGroupsService.ts
  • src/vs/sessions/services/sessions/browser/sessionsManagementService.ts
  • src/vs/sessions/services/sessions/common/sessionsManagement.ts
  • src/vs/sessions/services/sessions/test/browser/sessionGroupsService.test.ts
  • src/vs/sessions/services/sessions/test/browser/sessionsManagementService.test.ts

@meganrogge Megan Rogge (meganrogge) added this to the 1.141.0 milestone Oct 1, 2026
@meganrogge
Megan Rogge (meganrogge) enabled auto-merge (squash) October 1, 2026 15:01

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.

Copilot review overview

🟡 Changes recommended

Pre-send draft replacement and provisional membership edits can still lose or override the intended group.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)
What changed in this PR

Preserves custom-group placement while new sessions start.

Changes:

  • Exposes transient group membership for provisional sessions.
  • Cleans up failed starts and adds lifecycle tests.
File Description
sessionGroupsService.ts Tracks and exposes provisional membership.
sessionGroupsService.test.ts Tests provisional, replacement, and failure flows.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 60f97072 Current: 14fdc4d7

Changed (3)

sessions/connectionDiagnostics/connectionDiagnostics/NarrowDismissedDiscovery/Light
Before After
before after
sessions/accountMenu/WeeklyAndFiveHourLimits/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/DiscoverPluginsLoadingMore/Light
Before After
before after

2 insignificant change(s) omitted (≤20 px, Δ≤2). See CI logs for details.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 375ed100-bce0-433b-bd68-bf5cf34d9ed0
roblourens
roblourens previously approved these changes Oct 1, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 375ed100-bce0-433b-bd68-bf5cf34d9ed0
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.

New sessions created from a custom group are not kept in that group

5 participants