Skip to content

Fix pending message sync loops for element attachments - #329210

Merged
kycutler merged 2 commits into
mainfrom
kycutler/syncloops
Aug 5, 2026
Merged

Fix pending message sync loops for element attachments#329210
kycutler merged 2 commits into
mainfrom
kycutler/syncloops

Conversation

@kycutler

@kycutler kycutler commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

@kycutler
kycutler requested review from connor4312 and roblourens and a balanced review from Copilot August 5, 2026 17:06
@kycutler kycutler self-assigned this Aug 5, 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

Prevents pending-message synchronization loops when element attachments are projected between chat models and Agent Host state.

Changes:

  • Suppresses outbound synchronization during remote projections.
  • Preserves stable element attachment correlation IDs.
  • Adds regression coverage for idempotent local and remote synchronization.
Show a summary per file
File Description
agentHostSessionHandler.ts Stabilizes attachment metadata and guards remote projection.
agentHostChatContribution.test.ts Tests loop prevention and correlation preservation.

Review details

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

connor4312
connor4312 previously approved these changes Aug 5, 2026
…ler/syncloops

# Conflicts:
#	src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.ts
@kycutler
kycutler merged commit 8d04278 into main Aug 5, 2026
29 checks passed
@kycutler
kycutler deleted the kycutler/syncloops branch August 5, 2026 18:29
@vs-code-engineering vs-code-engineering Bot added this to the 1.133.0 milestone Aug 5, 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