@agent-link/server 0.1.39 → 0.1.40
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
|
@@ -298,6 +298,8 @@ export function createConnection(deps) {
|
|
|
298
298
|
content: textAcc, timestamp: new Date(),
|
|
299
299
|
});
|
|
300
300
|
}
|
|
301
|
+
// Finalize so subsequent real-time messages create fresh streaming entries
|
|
302
|
+
finalizeStreamingMsg(scheduleHighlight);
|
|
301
303
|
scrollToBottom();
|
|
302
304
|
} else if (msg.type === 'sessions_list') {
|
|
303
305
|
historySessions.value = msg.sessions || [];
|
|
@@ -382,6 +384,9 @@ export function createConnection(deps) {
|
|
|
382
384
|
const wasConnected = status.value === 'Connected' || status.value === 'Connecting...';
|
|
383
385
|
isProcessing.value = false;
|
|
384
386
|
isCompacting.value = false;
|
|
387
|
+
// Finalize any in-flight streaming message so reconnect starts clean
|
|
388
|
+
streaming.flushReveal();
|
|
389
|
+
finalizeStreamingMsg(scheduleHighlight);
|
|
385
390
|
|
|
386
391
|
if (wasConnected || reconnectAttempts > 0) {
|
|
387
392
|
scheduleReconnect(scheduleHighlight);
|