zed icon indicating copy to clipboard operation
zed copied to clipboard

Agent commands still in command palette if agent is disabled

Open injust opened this issue 6 months ago • 1 comments

Summary

If the agent is disabled, agent commands still appear in the command palette.

Description

Steps to reproduce:

  1. Disable the agent ("agent": { "version": "2", "enabled": false })
  2. Open the command palette and type agent

Expected Behavior: No agent commands should appear in the command palette Actual Behavior: Agent commands appear in the command palette

Zed Version and System Specs

Zed: v0.187.8 (Zed) OS: macOS 15.5.0 Memory: 16 GiB Architecture: x86_64

injust avatar May 24 '25 18:05 injust

Can reproduce, the agent: ... actions still show up.

bennetbo avatar Jun 17 '25 16:06 bennetbo

This is somewhat resolved by https://github.com/zed-industries/zed/pull/34896, but only if you set disable_ai, which is very all-or-nothing.

To solve this completely, maybe the setting could be made more granular (e.g. only enabling inline completions while disabling other AI functionality).

injust avatar Jul 23 '25 23:07 injust

isn't copilot is configured by following snippet? This is a workaround, but still

"features": {
    "copilot": false
},

I personally dislike that we have now 3 options to disable AI: disable_ai = true, agent.enable = false and features.copilot = false.

eirnym avatar Jul 24 '25 06:07 eirnym

isn't copilot is configured by following snippet? This is a workaround, but still

"features": {
    "copilot": false
},

I personally dislike that we have now 3 options to disable AI: disable_ai = true, agent.enable = false and features.copilot = false.

@eirnym Only disable_ai = true is relevant to this issue. None of the other settings remove the agent/assistant commands.

injust avatar Jul 24 '25 07:07 injust

Copilot removes copilot feature, agent.enable was supposed to disable all other AI features (but it doesn't).

As I reviewed PR mentioned, in some places disable_ai fixed places, where agent.enable should be working.

eirnym avatar Jul 24 '25 07:07 eirnym

I can no longer reproduce and believe this was fixed by https://github.com/zed-industries/zed/pull/35055:

Image

If you're still seeing this, please reply additional details necessary to trigger the behavior you're seeing.

Thanks for reporting.

notpeter avatar Sep 19 '25 18:09 notpeter

I don't think this is resolved.

If you don't disable all AI functionality, but disable the agent with "agent": { "enabled": false }, the agent commands should not appear.

Same goes for other commands like assistant, copilot, and supermaven.

injust avatar Sep 19 '25 18:09 injust

I can confirm @injust

  • "agent": { "enabled": false } still shows agent:* actions
  • "features": { "edit_prediction_provider": "none" } still shows copilot:*, edit prediction:*, workspace: toggle edit predictions, editor: {show,next,accept,toggle} edit prediction.

notpeter avatar Sep 19 '25 18:09 notpeter