@adhdev/daemon-core 0.9.82-rc.179 → 0.9.82-rc.180

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
@@ -5337,6 +5337,18 @@ function setupMeshEventForwarding(components) {
5337
5337
  } catch {
5338
5338
  }
5339
5339
  if (!meshIdFromDirectDispatch) return;
5340
+ } else {
5341
+ const workspaceMesh = getCachedMeshByWorkspace(workspace);
5342
+ const workspaceMeshId = readNonEmptyString2(workspaceMesh?.id);
5343
+ if (workspaceMeshId) {
5344
+ try {
5345
+ const activeDispatches = getActiveDirectDispatches(workspaceMeshId);
5346
+ if (activeDispatches.some((d) => d.sessionId === instanceId) || hasUnterminalDirectDispatchLedgerEntry(workspaceMeshId, instanceId)) {
5347
+ meshIdFromDirectDispatch = workspaceMeshId;
5348
+ }
5349
+ } catch {
5350
+ }
5351
+ }
5340
5352
  }
5341
5353
  const meshIdFromRuntime = readNonEmptyString2(settings.meshNodeFor) || meshIdFromDirectDispatch;
5342
5354
  const isMeshDelegate = Boolean(meshIdFromRuntime || settings.launchedByCoordinator);