Gemini CLI fixes a disposable leak that broke VS Code reactivation
godququ5-code · ghdev · 2026-07-24
This PR fixes a lifecycle bug in google-gemini/gemini-cli's vscode-ide-companion extension.
Two registrations in activate() were accidentally wrapped in a comma expression, so the gemini.diff.accept command and the onDidChangeWorkspaceFolders listener were created but never added to context.subscriptions. That caused leaked disposables, duplicate-command errors on reactivation, and a stale workspace-folder listener that kept calling ideServer.syncEnvVars() after the server had stopped.
The patch removes the stray parentheses and adds a regression test to verify both disposables are tracked properly.
More from coding & agent
- NVIDIA says Nemotron 3 Ultra hit 97.1% on agentic RTL chip-design tasks — NVIDIAAI · 2026-07-27
- Tokyo Agent Forge hackathon shipped production-ready AI agents in one day — DavidBennett__ · 2026-07-27
- Long-running agents will need immutable event logs, this thread argues — sebpaquet · 2026-07-27
- Agentic Data Science in Practice: Agents Write Code but Answer Wrong Questions — hugobowne · 2026-07-27
- A VS Code extension adds Markdown-style highlighting to Alchemy string templates — samgoodwin89 · 2026-07-27
- Claude’s Stripe MCP connector is being called unusable after repeated disconnects — evielync · 2026-07-27