Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:iphone: status

Vanessa45d1dc10e811
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts
index 0d08c19fd2..e7d4972479 100644
--- a/app/src/dialog/processSystem.ts
+++ b/app/src/dialog/processSystem.ts
@@ -278,6 +278,7 @@ export const transactionError = () => {
});
};
+let statusMobileTimeout:number;
export const progressStatus = (data: IWebSocketData) => {
const statusElement = document.querySelector("#status") as HTMLElement;
if (!statusElement) {
@@ -287,9 +288,10 @@ export const progressStatus = (data: IWebSocketData) => {
if (!document.querySelector("#keyboardToolbar").classList.contains("fn__none")) {
return;
}
+ clearTimeout(statusMobileTimeout);
statusElement.innerHTML = data.msg;
statusElement.style.bottom = "0";
- setTimeout(() => {
+ statusMobileTimeout = window.setTimeout(() => {
statusElement.style.bottom = "";
}, 5000);
return;