@adhdev/daemon-core 0.9.82-rc.233 → 0.9.82-rc.235
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.js
CHANGED
|
@@ -7549,7 +7549,7 @@ function injectMeshSystemMessage(components, args) {
|
|
|
7549
7549
|
if (workerCoordinatorDaemonId && localDaemonId && workerCoordinatorDaemonId !== localDaemonId) return false;
|
|
7550
7550
|
return true;
|
|
7551
7551
|
});
|
|
7552
|
-
const
|
|
7552
|
+
const isTerminalEvent = (/* @__PURE__ */ new Set(["refine:completed", "refine:failed", "agent:generating_completed", "agent:stopped"])).has(args.event);
|
|
7553
7553
|
if (coordinatorInstances.length === 0) {
|
|
7554
7554
|
if (queuePendingMeshCoordinatorEvent({
|
|
7555
7555
|
event: args.event,
|
|
@@ -7569,13 +7569,13 @@ function injectMeshSystemMessage(components, args) {
|
|
|
7569
7569
|
}
|
|
7570
7570
|
return { success: true, forwarded: 0 };
|
|
7571
7571
|
}
|
|
7572
|
-
const allCoordinatorsGenerating =
|
|
7572
|
+
const allCoordinatorsGenerating = isTerminalEvent && coordinatorInstances.every((inst) => {
|
|
7573
7573
|
const s = inst.getState();
|
|
7574
7574
|
const status = readNonEmptyString2(s.status).toLowerCase();
|
|
7575
7575
|
const activeChatStatus = readNonEmptyString2(s.activeChat?.status).toLowerCase();
|
|
7576
7576
|
return status === "generating" || status === "streaming" || status === "long_generating" || activeChatStatus === "generating" || activeChatStatus === "streaming";
|
|
7577
7577
|
});
|
|
7578
|
-
if (!
|
|
7578
|
+
if (!isTerminalEvent || allCoordinatorsGenerating) {
|
|
7579
7579
|
if (queuePendingMeshCoordinatorEvent({
|
|
7580
7580
|
event: args.event,
|
|
7581
7581
|
meshId: args.meshId,
|