Skip to content

sessions: Track multiple pull requests per session - #329149

Merged
Benjamin Christopher Simmonds (benibenj) merged 4 commits into
mainfrom
benibenj/agents/multi-pr-dropdown-session-header
Aug 5, 2026
Merged

Benjamin Christopher Simmonds (benibenj) merged 4 commits into
mainfrom
benibenj/agents/multi-pr-dropdown-session-header

Conversation

@benibenj

Copy link
Copy Markdown
Contributor

Summary

  • Retain up to ten deduplicated pull requests per agent-host session in most-recent-first order.
  • Preserve the newest pull request as the active projection for CI, review comments, session list status, and existing actions.
  • Show an accessible N Pull Requests session-header dropdown with live PR, CI, and review status.
  • Migrate legacy singular pull request metadata and add fixtures, documentation, and regression coverage.

Validation

  • npm run compile
  • Changed-file ESLint and Stylelint
  • npm run typecheck-client
  • npm run valid-layers-check
  • Focused unit tests (226 passing)

Retain a bounded, recency-ordered pull request history for agent-host sessions while preserving the newest pull request as the active projection for existing behavior. Add an accessible session-header dropdown with live PR, CI, and review status, legacy metadata migration, fixtures, and coverage.

Co-authored-by: Copilot <[email protected]>
@vs-code-engineering

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/common/session.ts

Ladislau Szomoru (@lszomoru)

Matched files:

  • src/vs/sessions/services/sessions/common/session.ts

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

Adds bounded, deduplicated pull-request history to agent-host sessions while preserving the newest PR as the active projection.

Changes:

  • Migrates singular PR metadata to an ordered history of up to ten PRs.
  • Adds a multi-PR session-header picker with live status models.
  • Adds shared GitHub reference-list UI, fixtures, documentation, and tests.
Show a summary per file
File Description
sessionHeader.fixture.ts Registers the PR icon cache fixture.
openPullRequest.fixture.ts Adds multi-PR and list fixtures.
openIssue.fixture.ts Uses the shared reference list.
githubFixtureUtils.ts Adds status-model and icon-cache mocks.
SESSIONS.md Documents PR history behavior.
session.ts Adds PR references and equality handling.
LAYOUT.md Documents the multi-PR header picker.
localAgentHostSessionsProvider.test.ts Tests active and historical projections.
baseAgentHostSessionsProvider.ts Maps PR URL history into session data.
pullRequestActions.ts Implements the multi-PR picker and polling.
issueHover.css Removes superseded issue-list styles.
githubReferenceList.css Styles the shared reference list.
issueHover.ts Removes the issue-specific list implementation.
issueActions.ts Adopts the shared reference list.
githubReferenceList.ts Adds the reusable accessible list.
sessionServerTools.test.ts Updates serialized metadata tests.
agentHostPullRequestOperationProvider.test.ts Updates PR operation fixtures.
agentHostGitStateService.test.ts Adds migration, retention, and race tests.
agentHostCommitOperationProvider.test.ts Updates commit-operation fixtures.
sessionServerTools.ts Projects the newest PR into tool summaries.
agentHostPullRequestOperationProvider.ts Retains history after PR creation.
agentHostGitStateService.ts Preserves history during PR discovery.
sessionState.ts Defines migration, deduplication, and retention logic.

Review details

  • Files reviewed: 23/23 changed files
  • Comments generated: 4
  • Review effort level: Balanced

@github-actions

github-actions Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 9f575004 Current: 872b8e30

Changed (2)

sessions/openIssue/OpenIssue_List/Dark
Before After
before after
sessions/openIssue/OpenIssue_List/Light
Before After
before after

Added (4)

sessions/openPullRequest/OpenPullRequest_Multiple/Dark

current

sessions/openPullRequest/OpenPullRequest_Multiple/Light

current

sessions/openPullRequest/OpenPullRequest_List/Dark

current

sessions/openPullRequest/OpenPullRequest_List/Light

current

Canonicalize pull request identities, keep open picker rows reactive without replacing focused controls, preserve keyboard activation, and ensure the concurrent metadata regression test is discovered.

Co-authored-by: Copilot <[email protected]>
Use the largest pull request number to size a shared right-aligned number column so every title begins at the same position.

Co-authored-by: Copilot <[email protected]>
@benibenj
Benjamin Christopher Simmonds (benibenj) merged commit 78ac5ac into main Aug 5, 2026
29 checks passed
@benibenj
Benjamin Christopher Simmonds (benibenj) deleted the benibenj/agents/multi-pr-dropdown-session-header branch August 5, 2026 14:55
@vs-code-engineering vs-code-engineering Bot added this to the 1.133.0 milestone Aug 5, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Sep 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants