diff --git a/bun.lock b/bun.lock index 2422a9d109..eedb7c1fbd 100644 --- a/bun.lock +++ b/bun.lock @@ -1,5 +1,6 @@ { "lockfileVersion": 1, + "configVersion": 0, "workspaces": { "": { "name": "mux", diff --git a/src/browser/components/ChatInput/index.tsx b/src/browser/components/ChatInput/index.tsx index 6def801975..97aba4f191 100644 --- a/src/browser/components/ChatInput/index.tsx +++ b/src/browser/components/ChatInput/index.tsx @@ -1231,6 +1231,7 @@ export const ChatInput: React.FC = (props) => { if (matchesKeybind(e, KEYBINDS.CANCEL_EDIT)) { if (variant === "workspace" && editingMessage && props.onCancelEdit && !vimEnabled) { e.preventDefault(); + e.stopPropagation(); // Prevent global handler from interrupting stream setDraft(preEditDraftRef.current); props.onCancelEdit(); const isFocused = document.activeElement === inputRef.current; diff --git a/src/browser/components/VimTextArea.tsx b/src/browser/components/VimTextArea.tsx index a7af5148a9..cd66819692 100644 --- a/src/browser/components/VimTextArea.tsx +++ b/src/browser/components/VimTextArea.tsx @@ -166,6 +166,7 @@ export const VimTextArea = React.forwardRef