@adhdev/daemon-core 0.9.82-rc.247 → 0.9.82-rc.249

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.82-rc.247",
3
+ "version": "0.9.82-rc.249",
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",
@@ -1318,8 +1318,6 @@ function injectMeshSystemMessage(components: DaemonComponents, args: {
1318
1318
  return true;
1319
1319
  });
1320
1320
 
1321
- const isTerminalEvent = new Set(['refine:completed', 'refine:failed', 'agent:generating_completed', 'agent:stopped']).has(args.event);
1322
-
1323
1321
  if (coordinatorInstances.length === 0) {
1324
1322
  if (queuePendingMeshCoordinatorEvent({
1325
1323
  event: args.event,
@@ -1340,6 +1338,11 @@ function injectMeshSystemMessage(components: DaemonComponents, args: {
1340
1338
  return { success: true, forwarded: 0 };
1341
1339
  }
1342
1340
 
1341
+ // Non-terminal events are also queued for MCP coordinator dual delivery.
1342
+ // Terminal events are forwarded directly without buffering — previously
1343
+ // they were buffered when coordinators were generating and auto-flushed on
1344
+ // idle, but auto-flush was unreliable and events were silently lost.
1345
+ const isTerminalEvent = new Set(['refine:completed', 'refine:failed', 'agent:generating_completed', 'agent:stopped']).has(args.event);
1343
1346
  if (!isTerminalEvent) {
1344
1347
  if (queuePendingMeshCoordinatorEvent({
1345
1348
  event: args.event,