Block message send during active stream

Prevent sending messages via Enter key while a stream/response is active.
sendMessage() now returns early if isStreaming is true.
This commit is contained in:
Meleki committed 2026-03-17 10:20:52 +01:00
1 parent bfd1767471
commit 8150b58110
1 file changed
+1
+1
View File
@@ -319,6 +319,7 @@ async function _runStream(fetchPromise) {
// ── Send Message ──
async function sendMessage() {
if (isStreaming) return;
const input = $('#input');
const text = input.value.trim();
if (!text && pendingFiles.length === 0 && pendingRefs.length === 0) return;