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; }

4
dist/index.html vendored
View File

@@ -15,8 +15,8 @@
<script type="module" crossorigin src="/assets/index-DwDBh_Bf.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BF4OXe6U.css">
<script type="module" crossorigin src="/assets/index-Bm-nT3Zo.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BnyJnb2d.css">
<link rel="manifest" href="/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>
<body class="bg-white text-gray-900 selection:bg-black/10" x-data @click.window="if($event.target.closest('button')) haptic(); if(!document.getElementById('threadPopover').contains($event.target)&&!$event.target.closest('[data-thread-menu]')) hideThreadPopover(); if(!document.getElementById('sunePopover').contains($event.target)&&!$event.target.closest('[data-sune-menu]')) hideSunePopover(); if(!document.getElementById('userMenu').contains($event.target)&&!document.getElementById('userMenuBtn').contains($event.target)) document.getElementById('userMenu').classList.add('hidden')">
<div class="flex flex-col h-dvh max-h-dvh overflow-hidden">

2
dist/sw.js vendored
View File

@@ -1 +1 @@
if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()}).then(()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didnt register its module`);return e}));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const c=e=>i(e,t),d={module:{uri:t},exports:o,require:c};s[t]=Promise.all(n.map(e=>d[e]||c(e))).then(e=>(r(...e),o))}}define(["./workbox-8c29f6e4"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"index.html",revision:"55250d2b6fdd52eba68ef6365c90cc0a"},{url:"assets/index-DwDBh_Bf.js",revision:null},{url:"assets/index-BF4OXe6U.css",revision:null},{url:"manifest.webmanifest",revision:"7a6c5c6ab9cb5d3605d21df44c6b17a2"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))});
if(!self.define){let e,n={};const s=(s,i)=>(s=new URL(s+".js",i).href,n[s]||new Promise(n=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=n,document.head.appendChild(e)}else e=s,importScripts(s),n()}).then(()=>{let e=n[s];if(!e)throw new Error(`Module ${s} didnt register its module`);return e}));self.define=(i,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(n[t])return;let o={};const d=e=>s(e,t),l={module:{uri:t},exports:o,require:d};n[t]=Promise.all(i.map(e=>l[e]||d(e))).then(e=>(r(...e),o))}}define(["./workbox-8c29f6e4"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"index.html",revision:"13f8458aeb5438a63755301d6614e55d"},{url:"assets/index-BnyJnb2d.css",revision:null},{url:"assets/index-Bm-nT3Zo.js",revision:null},{url:"manifest.webmanifest",revision:"7a6c5c6ab9cb5d3605d21df44c6b17a2"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))});