@agent-link/server 0.1.47 → 0.1.48
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/web/modules/connection.js +23 -5
package/package.json
CHANGED
|
@@ -300,11 +300,29 @@ export function createConnection(deps) {
|
|
|
300
300
|
toolMsgMap.clear();
|
|
301
301
|
}
|
|
302
302
|
loadingHistory.value = false;
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
303
|
+
// Restore live status from agent (compacting / processing)
|
|
304
|
+
if (msg.isCompacting) {
|
|
305
|
+
isCompacting.value = true;
|
|
306
|
+
isProcessing.value = true;
|
|
307
|
+
messages.value.push({
|
|
308
|
+
id: streaming.nextId(), role: 'system',
|
|
309
|
+
content: 'Context compacting...', isCompactStart: true,
|
|
310
|
+
timestamp: new Date(),
|
|
311
|
+
});
|
|
312
|
+
} else if (msg.isProcessing) {
|
|
313
|
+
isProcessing.value = true;
|
|
314
|
+
messages.value.push({
|
|
315
|
+
id: streaming.nextId(), role: 'system',
|
|
316
|
+
content: 'Agent is processing...',
|
|
317
|
+
timestamp: new Date(),
|
|
318
|
+
});
|
|
319
|
+
} else {
|
|
320
|
+
messages.value.push({
|
|
321
|
+
id: streaming.nextId(), role: 'system',
|
|
322
|
+
content: 'Session restored. You can continue the conversation.',
|
|
323
|
+
timestamp: new Date(),
|
|
324
|
+
});
|
|
325
|
+
}
|
|
308
326
|
scrollToBottom();
|
|
309
327
|
} else if (msg.type === 'directory_listing') {
|
|
310
328
|
folderPickerLoading.value = false;
|