Skip to content

AgentHost - store pull request information on the server#322607

Merged
lszomoru merged 5 commits into
mainfrom
lszomoru/agent-host-pr-storage
Jun 23, 2026
Merged

AgentHost - store pull request information on the server#322607
lszomoru merged 5 commits into
mainfrom
lszomoru/agent-host-pr-storage

Conversation

@lszomoru

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 23, 2026 20:19
@lszomoru lszomoru enabled auto-merge (squash) June 23, 2026 20:19
@lszomoru lszomoru self-assigned this Jun 23, 2026

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

This PR adds server-side persistence and propagation of GitHub / pull request metadata for Agent Host sessions, so clients (notably the Sessions/Agents UI) can render PR affordances based on session state rather than re-deriving everything client-side.

Changes:

  • Introduces a typed GitHub state payload (ISessionGitHubState) stored under session summary _meta, plus helpers to read/write it.
  • Persists GitHub state (including pullRequestUrl) into the session database and overlays it into session list results.
  • Updates PR operation and sessions provider logic to use the new summary-meta GitHub state (and updates tests accordingly).
Show a summary per file
File Description
src/vs/sessions/contrib/providers/agentHost/test/browser/localAgentHostSessionsProvider.test.ts Skips a GitHub/PR-related recompute regression test (needs updating/replacement).
src/vs/sessions/contrib/providers/agentHost/browser/baseAgentHostSessionsProvider.ts Switches GitHub/PR info derivation to summary meta + live PR model icon computation.
src/vs/platform/agentHost/test/node/agentHostPullRequestOperationProvider.test.ts Updates PR operation provider tests for new dependencies; removes an outdated test.
src/vs/platform/agentHost/test/node/agentHostPullRequestOperationHandler.test.ts Updates expected “PR created” events to carry PR URL and seeds summary GitHub coords.
src/vs/platform/agentHost/test/node/agentHostChangesetOperationService.test.ts Updates test git-state service stub for new GitHub-state APIs.
src/vs/platform/agentHost/node/agentService.ts Overlays persisted GitHub state into listed sessions and live summary/meta overlays.
src/vs/platform/agentHost/node/agentHostSyncOperationProvider.ts Adapts to optional gitState in operation contexts.
src/vs/platform/agentHost/node/agentHostStateManager.ts Adds setSessionSummaryMeta and includes summary _meta in notification diffs.
src/vs/platform/agentHost/node/agentHostPullRequestOperationProvider.ts Hides PR ops when a PR URL exists; writes PR URL into persisted GitHub state.
src/vs/platform/agentHost/node/agentHostPullRequestOperationHandler.ts Reads GitHub coordinates from summary meta for PR creation flow; emits PR URL.
src/vs/platform/agentHost/node/agentHostGitStateService.ts Persists git + GitHub state into session DB; loads GitHub state into summary meta.
src/vs/platform/agentHost/node/agentHostDiscardChangesOperationProvider.ts Adapts to optional gitState in operation contexts.
src/vs/platform/agentHost/node/agentHostCommitOperationProvider.ts Adapts to optional gitState in operation contexts.
src/vs/platform/agentHost/node/agentHostChangesetOperationService.ts Extends operation updates to include GitHub state in the operation context.
src/vs/platform/agentHost/common/state/sessionState.ts Adds GitHub summary-meta types/keys and read/write helpers.
src/vs/platform/agentHost/common/agentService.ts Extends session metadata to include _summaryMeta.
src/vs/platform/agentHost/common/agentHostGitStateService.ts Adds get/set APIs for persisted GitHub state.
src/vs/platform/agentHost/common/agentHostChangesetOperationService.ts Makes gitState optional and adds gitHubState to operation contexts.

Copilot's findings

  • Files reviewed: 18/18 changed files
  • Comments generated: 6

Comment thread src/vs/platform/agentHost/node/agentHostStateManager.ts
Comment thread src/vs/platform/agentHost/common/state/sessionState.ts
lszomoru and others added 2 commits June 23, 2026 22:32
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@lszomoru lszomoru merged commit 0cf80df into main Jun 23, 2026
28 checks passed
@lszomoru lszomoru deleted the lszomoru/agent-host-pr-storage branch June 23, 2026 21:02
@vs-code-engineering vs-code-engineering Bot added this to the 1.127.0 milestone Jun 23, 2026
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