This build was committed by a bot.

This commit is contained in:
github-actions[bot]
2026-02-17 03:56:06 +00:00
parent b0ae63fb6a
commit aa717e6ac2
4 changed files with 12 additions and 6 deletions

View File

@@ -390,7 +390,7 @@ const SUNE = window.SUNE = new Proxy({ get list() {
}
buf += delta;
state.stream.text = buf;
renderMarkdown(suneBubble, partsToText(assistantMsg), { enhance: false });
if (buf || assistantMsg.images && assistantMsg.images.length || done) renderMarkdown(suneBubble, partsToText(assistantMsg), { enhance: false });
assistantMsg.content[0].text = buf;
if (done && !completed) {
completed = true;
@@ -596,7 +596,11 @@ const addMessage = window.addMessage = function(m, track = true) {
if (m.role === "assistant") el.composer.dispatchEvent(new CustomEvent("sune:newSuneResponse", { detail: { message: m } }));
return bubble;
};
const addSuneBubbleStreaming = (meta, id) => msgRow(Object.assign({ role: "assistant", id }, meta));
const addSuneBubbleStreaming = (meta, id) => {
const b = msgRow(Object.assign({ role: "assistant", id }, meta));
b.innerHTML = '<span class="sune-generating">✺</span>';
return b;
};
const clearChat = () => {
el.suneHtml.dispatchEvent(new CustomEvent("sune:unmount"));
state.messages = [];
@@ -1087,7 +1091,7 @@ $(el.composer).on("submit", async (e) => {
}
buf += delta;
state.stream.text = buf;
renderMarkdown(suneBubble, partsToText(assistantMsg), { enhance: false });
if (buf || assistantMsg.images && assistantMsg.images.length || done) renderMarkdown(suneBubble, partsToText(assistantMsg), { enhance: false });
assistantMsg.content[0].text = buf;
if (done && !completed) {
completed = true;

View File

@@ -29,3 +29,5 @@ mjx-container[jax="SVG"][display="true"] {
mjx-container svg {
max-width: 100%;
}
@keyframes sune-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.sune-generating { display: inline-block; animation: sune-spin 4s linear infinite; color: #9ca3af; }