diff --git a/ui/desktop/src/components/Input.tsx b/ui/desktop/src/components/Input.tsx index 3ed4ec7da965..1f797e289a1e 100644 --- a/ui/desktop/src/components/Input.tsx +++ b/ui/desktop/src/components/Input.tsx @@ -131,7 +131,11 @@ export default function Input({ const handleFileSelect = async () => { const path = await window.electron.selectFileOrDirectory(); if (path) { - setValue(path); + // Append the path to existing text, with a space if there's existing text + setValue((prev) => { + const currentText = prev.trim(); + return currentText ? `${currentText} ${path}` : path; + }); textAreaRef.current?.focus(); } };