Skip to content

Conversation

@roblourens
Copy link
Member

Fix #276852

Copilot AI review requested due to automatic review settings November 12, 2025 19:29
@roblourens roblourens enabled auto-merge (squash) November 12, 2025 19:29
@roblourens roblourens self-assigned this Nov 12, 2025
Copilot finished reviewing on behalf of roblourens November 12, 2025 19:31
@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 12, 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 a memory leak by ensuring that the RunSubagentTool instance is properly disposed when the BuiltinToolsContribution is disposed. The fix wraps the instantiation with this._register() to track and dispose of the tool instance.

  • Properly registers the RunSubagentTool disposable with the parent's disposal lifecycle

@roblourens roblourens merged commit e58ece4 into main Nov 12, 2025
33 of 34 checks passed
@roblourens roblourens deleted the roblou/odd-bobolink branch November 12, 2025 19:48
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.

Leaked disposable: RunSubagentTool

3 participants