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:
1 parent
bfd1767471
commit
8150b58110
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user