@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/package.json
CHANGED
|
@@ -1318,7 +1318,7 @@ function injectMeshSystemMessage(components: DaemonComponents, args: {
|
|
|
1318
1318
|
return true;
|
|
1319
1319
|
});
|
|
1320
1320
|
|
|
1321
|
-
const
|
|
1321
|
+
const isTerminalEvent = new Set(['refine:completed', 'refine:failed', 'agent:generating_completed', 'agent:stopped']).has(args.event);
|
|
1322
1322
|
|
|
1323
1323
|
if (coordinatorInstances.length === 0) {
|
|
1324
1324
|
if (queuePendingMeshCoordinatorEvent({
|
|
@@ -1340,7 +1340,7 @@ function injectMeshSystemMessage(components: DaemonComponents, args: {
|
|
|
1340
1340
|
return { success: true, forwarded: 0 };
|
|
1341
1341
|
}
|
|
1342
1342
|
|
|
1343
|
-
const allCoordinatorsGenerating =
|
|
1343
|
+
const allCoordinatorsGenerating = isTerminalEvent && coordinatorInstances.every((inst) => {
|
|
1344
1344
|
const s = inst.getState();
|
|
1345
1345
|
const status = readNonEmptyString(s.status).toLowerCase();
|
|
1346
1346
|
const activeChatStatus = readNonEmptyString(s.activeChat?.status).toLowerCase();
|
|
@@ -1348,7 +1348,7 @@ function injectMeshSystemMessage(components: DaemonComponents, args: {
|
|
|
1348
1348
|
|| activeChatStatus === 'generating' || activeChatStatus === 'streaming';
|
|
1349
1349
|
});
|
|
1350
1350
|
|
|
1351
|
-
if (!
|
|
1351
|
+
if (!isTerminalEvent || allCoordinatorsGenerating) {
|
|
1352
1352
|
if (queuePendingMeshCoordinatorEvent({
|
|
1353
1353
|
event: args.event,
|
|
1354
1354
|
meshId: args.meshId,
|