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 +1 -1
- package/supervisor/index.ts +11 -0
package/package.json
CHANGED
package/supervisor/index.ts
CHANGED
|
@@ -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
|
}
|