@adhdev/daemon-standalone 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.js CHANGED
@@ -32595,10 +32595,12 @@ Follow these recovery rules:
32595
32595
  const state = inst.getState();
32596
32596
  const settings = state.settings || {};
32597
32597
  const instMeshId = readNonEmptyString(settings.meshNodeFor);
32598
- if (instMeshId !== meshId && !settings.launchedByCoordinator) continue;
32598
+ if (instMeshId !== meshId) continue;
32599
32599
  const nodeId = readNonEmptyString(settings.meshNodeId) || readNonEmptyString(settings.nodeId);
32600
32600
  if (!nodeId) continue;
32601
- if (state.status !== "idle" && state.status !== "stopped" && state.activeChat?.status !== "waiting_input") continue;
32601
+ const status = readNonEmptyString(state.status).toLowerCase();
32602
+ if (["stopped", "failed", "terminated", "exited", "closed"].includes(status)) continue;
32603
+ if (status !== "idle" && state.activeChat?.status !== "waiting_input") continue;
32602
32604
  const sessionId = state.instanceId;
32603
32605
  const providerType = state.type || readNonEmptyString(settings.providerType);
32604
32606
  if (providerType) {