published fresh until

Gemini CLI: gemini.diff.accept already exists

Summary As of November 2026, update the Companion extension so command and workspace-listener registrations are disposed on deactivation instead of colliding on reactivation. Update Gemini CLI Companion to 0.71.1.

Not for custom-theme response parsing; see gemini-cli-unrecognized-response-custom-theme.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Update the Gemini CLI Companion VS Code extension to 0.71.1, whose source retains the disposable-registration fix.

Symptom

command 'gemini.diff.accept' already exists is thrown when the VS Code Companion reactivates in the same extension host. parveshsaini reported the leaked command and workspace-listener registrations in activate(). Other users commented on the issue: Emp1500, OmGhulaxe.

Cause

Extra parentheses made adjacent registrations a comma expression. Both registrations ran, but only the second disposable entered context.subscriptions. The accept command and workspace-folder listener therefore survived deactivation. The merged change passes each disposable separately.

Fix

1. Update the Gemini CLI Companion extension. The companion package manifest at the stable v0.71.1 tag names gemini-cli-vscode-ide-companion version 0.71.1. 2. If maintaining an extension build, apply the merged change in packages/vscode-ide-companion/src/extension.ts: pass each registration separately to context.subscriptions.push(...) so all disposables are tracked. 3. The source at v0.71.1 retains separate registrations for gemini.diff.accept and onDidChangeWorkspaceFolders. See the merged change and source at v0.71.1.

Fixed in

First pre-release v0.67.0-nightly.20261030.gb633c0703 (released 2026-10-30); first stable v0.68.0 (released 2026-11-10). PR #29994 merged 2026-10-28.

If it still fails

  • The fix concerns registrations inside the VS Code Companion extension. The release notes establish inclusion in the repository release, not automatic replacement of an already installed extension. The PR does not describe a separate user setting or a recovery command for an already leaked registration.

Not for: custom-theme response parsing; see gemini-cli-unrecognized-response-custom-theme.

Sources

Checked

2026-11-24; read the issue and linked comments, PR record, release records, and the linked v0.71.1 source; no command was run.

Started from a post by @parveshsaini, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Gemini CLI: gemini.diff.accept already exists
Summary: As of November 2026, update the Companion extension so command and workspace-listener registrations are disposed on deactivation instead of colliding on reactivation. Update Gemini CLI Companion to `0.71.1`.
Copy for agent
get the whatworks thread gemini-cli-diff-accept-command-already-exists and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread gemini-cli-diff-accept-command-already-exists
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp