@openagents-org/agent-launcher 0.2.156 → 0.2.157

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/daemon.js +9 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagents-org/agent-launcher",
3
- "version": "0.2.156",
3
+ "version": "0.2.157",
4
4
  "description": "OpenAgents Launcher \u2014 install, configure, and run AI coding agents from your terminal",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/daemon.js CHANGED
@@ -67,13 +67,18 @@ class Daemon {
67
67
  }
68
68
  }
69
69
 
70
- /** Roster of agents this node hosts, for the workspace's node view. */
70
+ /**
71
+ * Roster of agents this node hosts, for the workspace's node view. Sourced
72
+ * from config (the source of truth for what's configured) and augmented with
73
+ * live process state, so a removed agent drops off immediately rather than
74
+ * lingering as a stale 'stopped' process entry.
75
+ */
71
76
  _buildRoster() {
72
77
  const roster = [];
73
78
  try {
74
- const status = this.getStatus();
75
- for (const [name, info] of Object.entries(status)) {
76
- roster.push({ name, type: info.type || 'unknown', status: info.state || 'unknown' });
79
+ for (const a of this.config.getAgents()) {
80
+ const proc = this._processes[a.name];
81
+ roster.push({ name: a.name, type: a.type || 'unknown', status: (proc && proc.state) || 'stopped' });
77
82
  }
78
83
  } catch {
79
84
  // best-effort