@adhdev/daemon-core 0.9.77-rc.32 → 0.9.77-rc.33

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/dist/index.mjs CHANGED
@@ -1374,10 +1374,12 @@ function triggerMeshQueue(components, meshId) {
1374
1374
  const state = inst.getState();
1375
1375
  const settings = state.settings || {};
1376
1376
  const instMeshId = readNonEmptyString(settings.meshNodeFor);
1377
- if (instMeshId !== meshId && !settings.launchedByCoordinator) continue;
1377
+ if (instMeshId !== meshId) continue;
1378
1378
  const nodeId = readNonEmptyString(settings.meshNodeId) || readNonEmptyString(settings.nodeId);
1379
1379
  if (!nodeId) continue;
1380
- if (state.status !== "idle" && state.status !== "stopped" && state.activeChat?.status !== "waiting_input") continue;
1380
+ const status = readNonEmptyString(state.status).toLowerCase();
1381
+ if (["stopped", "failed", "terminated", "exited", "closed"].includes(status)) continue;
1382
+ if (status !== "idle" && state.activeChat?.status !== "waiting_input") continue;
1381
1383
  const sessionId = state.instanceId;
1382
1384
  const providerType = state.type || readNonEmptyString(settings.providerType);
1383
1385
  if (providerType) {