From ff82d3b62c166051d7cfc5434a10e120f7cee861 Mon Sep 17 00:00:00 2001 From: Oz Date: Mon, 13 Jul 2026 21:30:50 +0000 Subject: [PATCH] Don't raise the help panel on '?' while editing a queued prompt The `shift-?` -> `ToggleAgentViewShortcuts` FixedBinding on the Input keymap context raises the agent view shortcuts (help) panel when the regular input buffer is empty and agent view is active. While a queued prompt is being edited inline in the queued prompts panel, the inline edit editor is a focused descendant of the Input view, so the Input keymap context stays active. With an empty regular input, the `shift-?` binding therefore fired and swallowed the keystroke, opening the help panel instead of letting the queued-prompt editor insert '?'. Guard the binding with the existing QUEUED_PROMPT_INLINE_EDITOR_OPEN_CONTEXT context flag (the same flag already used to keep up/down arrow keys inside the queued-prompt inline editor). This suppresses the help-panel toggle while a queued prompt is being edited, so '?' is handled normally and inserted into the queued prompt being edited. Co-Authored-By: Oz --- app/src/terminal/input.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/terminal/input.rs b/app/src/terminal/input.rs index 674e7591d95..89142f49211 100644 --- a/app/src/terminal/input.rs +++ b/app/src/terminal/input.rs @@ -2075,6 +2075,7 @@ pub fn init(app: &mut AppContext) { & id!(flags::EMPTY_INPUT_BUFFER) & id!(flags::ACTIVE_AGENT_VIEW) & !id!("LongRunningCommand") + & !id!(QUEUED_PROMPT_INLINE_EDITOR_OPEN_CONTEXT) & !(id!(flags::TERMINAL_MODE_INPUT) & id!(flags::LOCKED_INPUT)), )]); }