`gemini extensions disable` has no effect
What happened?
The gemini extensions disable command has no effect. While it correctly modifies the ~/.gemini/extensions/extension-enablement.json file, the specified extension remains active in subsequent gemini sessions. This indicates that the extension enablement system is not correctly interpreting the contents of the extension-enablement.json file.
What did you expect to happen?
When an extension is disabled using the gemini extensions disable command, it should not be loaded or be active in any subsequent gemini sessions.
Client information
Client Information
Run gemini to enter the interactive CLI, then run the /about command.
> /about
╭───────────────────────────────────────────────────────────────────────────╮
│ │
│ About Gemini CLI │
│ │
│ CLI Version 0.7.0-nightly.20250918.2722473a-git.275a12fd │
│ Git Commit 275a12fd │
│ Model auto │
│ Sandbox no sandbox │
│ OS linux │
│ Auth Method gemini-api-key │
│ │
╰───────────────────────────────────────────────────────────────────────────╯
Login information
GEMINI_API_KEY
Anything else we need to know?
This bug was initially reported and discussed with Christine Betts (@chrstnb).
Additionally, the gemini extensions disable command does not appear to validate whether an extension exists before attempting to disable it. For instance, running gemini extensions disable madeupext for a non-existent extension will still modify the extension-enablement.json file, which could lead to further confusion. This suggests a more fundamental issue with the extension enablement logic, where the configuration file is being written to but not properly read or enforced by the Gemini CLI.
Closing as this is an issue specific to the directory structure. In the future, we may offer an option on the command for configuring this. https://github.com/google-gemini/gemini-cli/issues/9762