bloby-bot 0.21.12 → 0.21.13

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": "bloby-bot",
3
- "version": "0.21.12",
3
+ "version": "0.21.13",
4
4
  "releaseNotes": [
5
5
  "1. react router implemented",
6
6
  "2. new workspace design",
@@ -1184,6 +1184,10 @@ ${!connected ? '<script>setTimeout(()=>location.reload(),4000)</script>' : ''}
1184
1184
  }
1185
1185
  if (pendingUpdate) {
1186
1186
  pendingUpdate = false;
1187
+ // End the live conversation before updating — SDK child processes
1188
+ // must be cleaned up or process.exit() may not terminate cleanly
1189
+ log.info('[orchestrator] Ending conversation before update...');
1190
+ endConversation(convId);
1187
1191
  runDeferredUpdate();
1188
1192
  }
1189
1193
  // Tell the client the agent is idle — streaming can stop
@@ -1487,6 +1491,13 @@ ${!connected ? '<script>setTimeout(()=>location.reload(),4000)</script>' : ''}
1487
1491
  pendingUpdate = true;
1488
1492
  log.info('Update requested — deferring until agent turn ends');
1489
1493
  } else {
1494
+ // End any live conversations before updating
1495
+ for (const cid of Array.from(clientConvs.values())) {
1496
+ if (hasConversation(cid)) {
1497
+ log.info(`[update] Ending conversation ${cid} before update`);
1498
+ endConversation(cid);
1499
+ }
1500
+ }
1490
1501
  runDeferredUpdate();
1491
1502
  }
1492
1503
  }