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
- Anthropic researcher: 99% of engineers now run swarms of 300+ self-improving agents — AlishaOutridge · 2026-09-11
- Gergely Orosz: Shipping 10x PRs With AI Agents, Sites Fill With Small Regressions — ducha_aiki · 2026-09-11
- Same Echo Maze prompt, three frontier models: all passed visually but shipped the same hidden bug — eyishazyer · 2026-09-11
- Astra storyboards plus Minimax H3 per-shot generation boost video success rates — Hailuo_AI · 2026-09-11
- Codex tip: use Sol with Astra and Luna sub-agents to save usage — pvncher · 2026-09-11
- agents-best-practices: a provider-neutral Agent Skill for designing and auditing agentic harnesses — tom_doerr · 2026-09-11