Skip to content

Agents - fix race condition around changeset subscriptions - #333110

Merged
Ladislau Szomoru (lszomoru) merged 2 commits into
mainfrom
lszomoru/gastric-primate
Aug 28, 2026
Merged

Agents - fix race condition around changeset subscriptions#333110
Ladislau Szomoru (lszomoru) merged 2 commits into
mainfrom
lszomoru/gastric-primate

Conversation

@lszomoru

Copy link
Copy Markdown
Member

No description provided.

Copilot AI balanced review requested due to automatic review settings August 28, 2026 06:31

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

Review tier: Balanced
Findings: 1 Medium severity

New issues introduced by this change (1)
Severity Finding
Medium severity src/​vs/​platform/​agentHost/​node/​agentHostChangesetService.ts — After making the recompute unconditional, _pendingMaterialization is no longer read anywhere: all…
What changed in this PR

Fixes a race where changeset subscriptions could miss recomputation during session materialization.

Changes:

  • Always recomputes subscribed changesets when a working directory becomes available.
  • Adds regression coverage for worktree materialization timing.
File Description
agentHostChangesetService.test.ts Adds materialization race regression test.
agentHostChangesetService.ts Makes materialization recomputation unconditional.
agentHostChangesetService.ts (common) Updates the service contract documentation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/vs/platform/agentHost/node/agentHostChangesetService.ts Outdated
@lszomoru Ladislau Szomoru (lszomoru) changed the title Agents - fix race condision around changeset subscriptions Agents - fix race condition around changeset subscriptions Aug 28, 2026
@lszomoru
Ladislau Szomoru (lszomoru) merged commit b8f5cda into main Aug 28, 2026
37 checks passed
@lszomoru
Ladislau Szomoru (lszomoru) deleted the lszomoru/gastric-primate branch August 28, 2026 07:19
@vs-code-engineering vs-code-engineering Bot added this to the 1.136.0 milestone Aug 28, 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