From d7f8e3b0d98c4b764296fbeea23b4ecd18278fd7 Mon Sep 17 00:00:00 2001 From: aedes Date: Wed, 22 Apr 2026 17:45:45 +0300 Subject: [PATCH] feat: show error text in chat output --- public/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 3142362..1a7734c 100644 --- a/public/index.html +++ b/public/index.html @@ -366,11 +366,15 @@ fullText += obj.text; outputEl.innerHTML = renderMarkdown(fullText); outputEl.scrollTop = outputEl.scrollHeight; + } else if (obj.error) { + outputEl.innerHTML = '' + obj.error + ''; } } catch(e) {} } } - } catch(e) {} finally { inFlight = false; } + } catch(e) { + outputEl.innerHTML = 'fetch error: ' + e.message + ''; + } finally { inFlight = false; } } // Auto-send on paste — all images + all text in one clipboard event go as ONE request