Skip to content

Conversation

@roblourens
Copy link
Member

#282035 in main

Copilot AI review requested due to automatic review settings December 8, 2025 18:25
@roblourens roblourens self-assigned this Dec 8, 2025
@roblourens roblourens enabled auto-merge (squash) December 8, 2025 18:25
@vs-code-engineering vs-code-engineering bot added this to the December / January 2026 milestone Dec 8, 2025
Copy link
Contributor

Copilot AI left a comment

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 fixes issue #282035 by ensuring that external chat sessions can be properly disposed. The fix marks response messages from external chat session history as complete by calling response.complete() immediately after processing each response's parts.

  • Adds a single line to mark historical responses as complete, enabling proper disposal of external chat sessions

model.acceptResponseProgress(lastRequest, part);
}

lastRequest.response?.complete();
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix to mark external chat session responses as complete should be covered by a test case. Consider adding a test in chatService.test.ts that:

  1. Creates an external chat session with history containing request/response pairs
  2. Calls loadSessionForResource with that session
  3. Verifies that all responses from history have isComplete set to true
  4. Confirms the session can be properly disposed

This would prevent regression of issue #282035.

Copilot uses AI. Check for mistakes.
@roblourens roblourens merged commit 07b88be into main Dec 8, 2025
33 of 34 checks passed
@roblourens roblourens deleted the roblou/content-condor branch December 8, 2025 19:15
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