Skip to content

Commit 8497e08

Browse files
committed
Merge branch '5066-new-prompt-input-ui-action-items' of github.com:Mintplex-Labs/anything-llm into 5066-normalize-translations
2 parents c2fd253 + 38ba383 commit 8497e08

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

frontend/src/pages/Main/Home/index.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,12 @@ function HomeContent({ workspace, setWorkspace, threadSlug, setThreadSlug }) {
243243
writeMode = "replace",
244244
}) {
245245
if (autoSubmit) {
246+
if (writeMode === "append") {
247+
const currentText =
248+
document.getElementById(PROMPT_INPUT_ID)?.value ?? "";
249+
text = currentText + text;
250+
}
251+
if (!text.trim()) return;
246252
submitMessage(text.trim());
247253
return;
248254
}

0 commit comments

Comments
 (0)