diff --git a/web/components/common/completion-input.tsx b/web/components/common/completion-input.tsx index 3b40006ba..23bdcbc78 100644 --- a/web/components/common/completion-input.tsx +++ b/web/components/common/completion-input.tsx @@ -60,6 +60,7 @@ function CompletionInput({ children, loading, onSubmit, handleFinish, ...props } if (!userInput.trim()) return; if (e.keyCode === 13) { if (e.shiftKey) { + e.preventDefault() setUserInput((state) => state + '\n'); return; }