@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.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/mesh/mesh-events.ts +7 -3
package/package.json
CHANGED
package/src/mesh/mesh-events.ts
CHANGED
|
@@ -153,13 +153,17 @@ export function triggerMeshQueue(components: DaemonComponents, meshId: string) {
|
|
|
153
153
|
const settings = state.settings as Record<string, unknown> || {};
|
|
154
154
|
|
|
155
155
|
const instMeshId = readNonEmptyString(settings.meshNodeFor);
|
|
156
|
-
if (instMeshId !== meshId
|
|
156
|
+
if (instMeshId !== meshId) continue;
|
|
157
157
|
|
|
158
158
|
const nodeId = readNonEmptyString(settings.meshNodeId) || readNonEmptyString(settings.nodeId);
|
|
159
159
|
if (!nodeId) continue;
|
|
160
160
|
|
|
161
|
-
//
|
|
162
|
-
|
|
161
|
+
// Only genuinely idle live sessions can pull work. Restored/stopped
|
|
162
|
+
// records are kept for transcript/recovery visibility, but assigning
|
|
163
|
+
// queue items to them strands tasks in assigned/pending without chat.
|
|
164
|
+
const status = readNonEmptyString(state.status).toLowerCase();
|
|
165
|
+
if (['stopped', 'failed', 'terminated', 'exited', 'closed'].includes(status)) continue;
|
|
166
|
+
if (status !== 'idle' && state.activeChat?.status !== 'waiting_input') continue;
|
|
163
167
|
|
|
164
168
|
const sessionId = state.instanceId;
|
|
165
169
|
const providerType = state.type || readNonEmptyString(settings.providerType);
|