From c8109aedf6fd59f1a53bb969cc8fb4498cbadc93 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 10 Oct 2025 10:36:31 +0530 Subject: [PATCH 1/2] fix: prevent active file sending on click --- gui/src/components/mainInput/InputToolbar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 87cf5344f..500ec9ee8 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -222,8 +222,8 @@ function InputToolbar(props: InputToolbarProps) { props.onEnter({ useCodebase: false, noContext: useActiveFile - ? !(isMetaEquivalentKeyPressed(e as any) || e.altKey) - : isMetaEquivalentKeyPressed(e as any) || e.altKey, + ? isMetaEquivalentKeyPressed(e as any) || e.altKey + : !isMetaEquivalentKeyPressed(e as any) || e.altKey, }); } }} From 4d2b2e72ebd181c9541770ec39b0b3cf97ebba5e Mon Sep 17 00:00:00 2001 From: Aditya Mitra <61635505+uinstinct@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:42:23 +0530 Subject: [PATCH 2/2] Update gui/src/components/mainInput/InputToolbar.tsx Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- gui/src/components/mainInput/InputToolbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 500ec9ee8..e89eb145a 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -223,7 +223,7 @@ function InputToolbar(props: InputToolbarProps) { useCodebase: false, noContext: useActiveFile ? isMetaEquivalentKeyPressed(e as any) || e.altKey - : !isMetaEquivalentKeyPressed(e as any) || e.altKey, + : !(isMetaEquivalentKeyPressed(e as any) || e.altKey), }); } }}