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.
Files changed (3) hide show
  1. package/VERSION +1 -1
  2. package/api/server.js +10 -2
  3. package/package.json +1 -1
package/VERSION CHANGED
@@ -1 +1 @@
1
- 5.8.0
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: this.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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loki-mode",
3
- "version": "5.8.0",
3
+ "version": "5.8.2",
4
4
  "description": "Multi-agent autonomous startup system for Claude Code, Codex CLI, and Gemini CLI",
5
5
  "keywords": [
6
6
  "claude",