Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

Fix TUI working timer reset

chensheng1234540eeff5bbdde
diff --git a/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts b/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts
index 0e7155ae51..a116bcb92b 100644
--- a/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts
+++ b/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts
@@ -3161,14 +3161,17 @@ export class AppScreen implements Component, Focusable {
}
return;
}
- this.runningStoppedAtMs = null;
if (snapshot.isProcessing) {
- if (this.runningStartedAtMs === null) {
+ if (
+ this.runningStartedAtMs === null ||
+ this.runningStoppedAtMs !== null
+ ) {
this.runningStartedAtMs = Date.now();
}
} else if (teamWorking) {
this.runningStartedAtMs = teamStartedAt ?? this.runningStartedAtMs ?? Date.now();
}
+ this.runningStoppedAtMs = null;
if (this.animationTimer) {
return;
}