This build was committed by a bot.

This commit is contained in:
github-actions[bot]
2026-02-17 04:00:17 +00:00
parent 64151baeb0
commit f87e8ce1d7
4 changed files with 7 additions and 12 deletions

View File

@@ -29,5 +29,4 @@ 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; }

View File

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