fix(core): disconnect extension-backed MCP clients in stopExtension#26136
fix(core): disconnect extension-backed MCP clients in stopExtension#26136Adib234 merged 1 commit intogoogle-gemini:mainfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses an issue where extension-backed MCP clients remained active after an extension was unloaded. By ensuring the correct client key is used during the disconnection process, the manager now properly cleans up resources, preventing potential memory leaks or stale connections. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request ensures that extension-backed MCP clients are correctly disconnected when an extension is stopped. The fix involves using the proper client key derived from the server name and configuration instead of just the name. A new test case has been added to mcp-client-manager.test.ts to verify this behavior and prevent regressions. I have no feedback to provide.
|
✅ 55 tests passed successfully on gemini-3-flash-preview. 🧠 Model Steering GuidanceThis PR modifies files that affect the model's behavior (prompts, tools, or instructions).
This is an automated guidance message triggered by steering logic signatures. |
…correctness fixes - openai/codex#20046 lock InterAgentCommunication commentary-phase contract - BerriAI/litellm#26710 file content on Bedrock+Anthropic tool-result path - google-gemini/gemini-cli#26136 disconnect extension-backed MCP clients via clientKey
37479f9 to
666911e
Compare
666911e to
9c0310d
Compare
9c0310d to
b27f725
Compare
McpClientManager.stopExtension() was passing the server name to disconnectClient() instead of the computed client key. This resulted in extension-backed MCP clients remaining connected even after the extension was unloaded. Fixes #24050