1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-12-02 20:22:52 +00:00

show star in title while generating

This commit is contained in:
2025-11-04 02:02:12 +01:00
parent 468f7c04c9
commit 6531456bda

View File

@@ -74,6 +74,7 @@
scrollResize = false, scrollResize = false,
isUploading = false, isUploading = false,
isDumping = false, isDumping = false,
isGenerating = false,
totalCost = 0; totalCost = 0;
function updateTotalCost() { function updateTotalCost() {
@@ -89,7 +90,7 @@
$titleText.textContent = title; $titleText.textContent = title;
document.title = `whiskr${chatTitle ? ` - ${chatTitle}` : ""}`; document.title = `whiskr${isGenerating ? "*" : ""}${chatTitle ? ` - ${chatTitle}` : ""}`;
storeValue("title", chatTitle); storeValue("title", chatTitle);
} }
@@ -1243,6 +1244,10 @@
setFollowTail(true); setFollowTail(true);
} }
isGenerating = true;
updateTitle();
const body = buildRequest(noPush); const body = buildRequest(noPush);
const controller = new AbortController(); const controller = new AbortController();
@@ -1314,6 +1319,10 @@
stopTimeout?.(); stopTimeout?.();
isGenerating = false;
updateTitle();
finish(); finish();
$chat.classList.remove("completing"); $chat.classList.remove("completing");