-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Assistant commands/keybinds should be disabled when agent is disabled #48713
Copy link
Copy link
Labels
area:aiRelated to Agent Panel, Edit Prediction, Copilot, or other AI featuresRelated to Agent Panel, Edit Prediction, Copilot, or other AI featuresarea:controls/keybindsKeyboard shortcuts, mapping, binding, keymaps, etcKeyboard shortcuts, mapping, binding, keymaps, etccommunity championIssues filed by our amazing community champions! 🫶Issues filed by our amazing community champions! 🫶frequency:alwaysBug that happens for everyone on every platform no matter how they use ZedBug that happens for everyone on every platform no matter how they use Zedpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsPapercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduceVerified steps to reproduce included and someone on the team managed to reproduce
Metadata
Metadata
Assignees
Labels
area:aiRelated to Agent Panel, Edit Prediction, Copilot, or other AI featuresRelated to Agent Panel, Edit Prediction, Copilot, or other AI featuresarea:controls/keybindsKeyboard shortcuts, mapping, binding, keymaps, etcKeyboard shortcuts, mapping, binding, keymaps, etccommunity championIssues filed by our amazing community champions! 🫶Issues filed by our amazing community champions! 🫶frequency:alwaysBug that happens for everyone on every platform no matter how they use ZedBug that happens for everyone on every platform no matter how they use Zedpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsPapercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduceVerified steps to reproduce included and someone on the team managed to reproduce
Type
Fields
Give feedbackNo fields configured for Bug.
Reproduction steps
{ "agent": { "enabled": false } }assistant{ { "context": "Pane", "use_key_equivalents": true, "bindings": { "ctrl-enter": "workspace::ToggleZoom" } } }Current vs. Expected behavior
When the agent is disabled, assistant commands still appear in the command palette, unlike agent commands.
When you try to rebind ctrl-enter, it doesn't work until you change the context to also rebind in 2 specific scenarios (
!ContextEditor > Editor && mode == fullandTerminal) where default keybinds exist for the assistant. So you end up with this:{ { "context": "Pane || (!ContextEditor > Editor && mode == full) || Terminal", "use_key_equivalents": true, "bindings": { "ctrl-enter": "workspace::ToggleZoom" } } }This is not a great experience for customizing keybinds as it requires digging into the default keybinds or the keyboard context view. Ideally, the default assistant keybinds would be removed entirely when the agent is disabled.
Zed version and system specs
Zed: v0.222.4+stable.147.b385025df963c9e8c3f74cc4dadb1c4b29b3c6f0 (Zed)
OS: macOS 15.7.3
Memory: 16 GiB
Architecture: x86_64