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:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user