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
- Agent Field Kit launches $29 security runbooks for production AI agents — alvelda · 2026-10-27
- Dev mixes Claude specs with abliterated GLM to build SS7 threat detector — l4rz · 2026-10-27
- Cloudflare Durable Objects validated as top architecture for AI agent WebSocket servers — tristanbob · 2026-10-27
- GitHub Next's Chopin prototype explores real-time multiplayer agentic planning — max__drake · 2026-10-27
- Veynod: An Open-Source Shared Workspace Where AI Agents Collaborate Like a Team — TKOWNS · 2026-10-27
- TMLR paper: enforced thinking doesn't reliably make LLM agents disclose key info to users — SharonYixuanLi · 2026-10-27