From 3f31fc287480f38907f3bbc46a0fbdcc4d063554 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Tue, 30 Sep 2025 12:27:09 -0300 Subject: [PATCH] agent: Fix keybinding to deny running a command (#39214) Despite how great `cmd-d` as a keybinding is, that was not working as it was conflicting with an editor keybinding: https://github.com/user-attachments/assets/2ea8665b-7008-4f0a-9426-8d31d379ee1c This PR changes it to `cmd-alt-z`, which is the best "remove/fix"-type of keybinding I could find that doesn't conflict with anything else. Ideally, we'd use either the D, N, or R letters for "deny", "no", and "reject", but unfortunately, none of them are nicely available in this context... Release Notes: - agent: Fix keybinding to deny running a command --- assets/keymaps/default-linux.json | 2 +- assets/keymaps/default-macos.json | 2 +- assets/keymaps/default-windows.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.json index ceb25c1835172068a809c6e5492d000cde7da5fe..f498bc54dfdc3ba4ba69a0141dc290f0c92382ec 100644 --- a/assets/keymaps/default-linux.json +++ b/assets/keymaps/default-linux.json @@ -250,7 +250,7 @@ "alt-enter": "agent::ContinueWithBurnMode", "ctrl-y": "agent::AllowOnce", "ctrl-alt-y": "agent::AllowAlways", - "ctrl-d": "agent::RejectOnce" + "ctrl-alt-z": "agent::RejectOnce" } }, { diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json index 4cf25c3b71047b7eb19791cee91f062d5720fe61..f236c0a579ead90cb8f46d30f32290f8ed3d1988 100644 --- a/assets/keymaps/default-macos.json +++ b/assets/keymaps/default-macos.json @@ -289,7 +289,7 @@ "alt-enter": "agent::ContinueWithBurnMode", "cmd-y": "agent::AllowOnce", "cmd-alt-y": "agent::AllowAlways", - "cmd-d": "agent::RejectOnce" + "cmd-alt-z": "agent::RejectOnce" } }, { diff --git a/assets/keymaps/default-windows.json b/assets/keymaps/default-windows.json index a2c7b67b8ac6fe9165a0631e4479f5b315622897..404542e12acf14d3f98579f02c20f60da31c7ef5 100644 --- a/assets/keymaps/default-windows.json +++ b/assets/keymaps/default-windows.json @@ -251,7 +251,7 @@ "alt-enter": "agent::ContinueWithBurnMode", "ctrl-y": "agent::AllowOnce", "ctrl-alt-y": "agent::AllowAlways", - "ctrl-d": "agent::RejectOnce" + "ctrl-alt-z": "agent::RejectOnce" } }, {