@adhdev/daemon-core 0.9.82-rc.233 → 0.9.82-rc.234
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/mesh/mesh-events-coordinator.ts +3 -3
package/dist/index.mjs
CHANGED
|
@@ -7543,7 +7543,7 @@ function injectMeshSystemMessage(components, args) {
|
|
|
7543
7543
|
if (workerCoordinatorDaemonId && localDaemonId && workerCoordinatorDaemonId !== localDaemonId) return false;
|
|
7544
7544
|
return true;
|
|
7545
7545
|
});
|
|
7546
|
-
const
|
|
7546
|
+
const isTerminalEvent = (/* @__PURE__ */ new Set(["refine:completed", "refine:failed", "agent:generating_completed", "agent:stopped"])).has(args.event);
|
|
7547
7547
|
if (coordinatorInstances.length === 0) {
|
|
7548
7548
|
if (queuePendingMeshCoordinatorEvent({
|
|
7549
7549
|
event: args.event,
|
|
@@ -7563,13 +7563,13 @@ function injectMeshSystemMessage(components, args) {
|
|
|
7563
7563
|
}
|
|
7564
7564
|
return { success: true, forwarded: 0 };
|
|
7565
7565
|
}
|
|
7566
|
-
const allCoordinatorsGenerating =
|
|
7566
|
+
const allCoordinatorsGenerating = isTerminalEvent && coordinatorInstances.every((inst) => {
|
|
7567
7567
|
const s = inst.getState();
|
|
7568
7568
|
const status = readNonEmptyString2(s.status).toLowerCase();
|
|
7569
7569
|
const activeChatStatus = readNonEmptyString2(s.activeChat?.status).toLowerCase();
|
|
7570
7570
|
return status === "generating" || status === "streaming" || status === "long_generating" || activeChatStatus === "generating" || activeChatStatus === "streaming";
|
|
7571
7571
|
});
|
|
7572
|
-
if (!
|
|
7572
|
+
if (!isTerminalEvent || allCoordinatorsGenerating) {
|
|
7573
7573
|
if (queuePendingMeshCoordinatorEvent({
|
|
7574
7574
|
event: args.event,
|
|
7575
7575
|
meshId: args.meshId,
|