loki-mode 5.8.0 → 5.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/api/server.js +10 -2
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.8.
|
|
1
|
+
5.8.2
|
package/api/server.js
CHANGED
|
@@ -477,14 +477,22 @@ class ProcessManager {
|
|
|
477
477
|
}
|
|
478
478
|
|
|
479
479
|
getStatus() {
|
|
480
|
+
// If no process is running, show 'idle' instead of stale status
|
|
481
|
+
// This prevents showing 'failed' when the session has ended
|
|
482
|
+
const isActive = !!this.process;
|
|
483
|
+
const effectiveStatus = isActive ? this.status :
|
|
484
|
+
(this.status === 'completed' || this.status === 'failed') ? 'idle' : this.status;
|
|
485
|
+
|
|
480
486
|
return {
|
|
481
|
-
status:
|
|
487
|
+
status: effectiveStatus,
|
|
482
488
|
pid: this.process?.pid || null,
|
|
483
489
|
provider: this.provider,
|
|
484
490
|
prd: this.prdPath,
|
|
485
491
|
startedAt: this.startedAt,
|
|
486
492
|
uptime: this.startedAt ? Date.now() - new Date(this.startedAt).getTime() : 0,
|
|
487
|
-
dashboard: this.lastDashboardState
|
|
493
|
+
dashboard: this.lastDashboardState,
|
|
494
|
+
// Include last session result for debugging
|
|
495
|
+
lastSessionResult: isActive ? null : this.status
|
|
488
496
|
};
|
|
489
497
|
}
|
|
490
498
|
}
|