@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.9.77-rc.32",
3
+ "version": "0.9.77-rc.33",
4
4
  "description": "ADHDev daemon core — CDP, IDE detection, providers, command execution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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 && !settings.launchedByCoordinator) continue;
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
- // Is it idle? (online and waiting for input)
162
- if (state.status !== 'idle' && state.status !== 'stopped' && state.activeChat?.status !== 'waiting_input') continue;
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);