agentgui 1.0.603 → 1.0.604
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/static/js/client.js +7 -2
package/package.json
CHANGED
package/static/js/client.js
CHANGED
|
@@ -765,10 +765,15 @@ class AgentGUIClient {
|
|
|
765
765
|
this._serverProcessingEstimate = 0.7 * this._serverProcessingEstimate + 0.3 * serverTime;
|
|
766
766
|
}
|
|
767
767
|
|
|
768
|
-
//
|
|
768
|
+
// Subscribe to the session so blocks are not lost, but skip conversation
|
|
769
|
+
// re-subscribe when resumed=true to prevent infinite loop (server sends
|
|
770
|
+
// streaming_start on subscribe when activeExecutions exists, which would
|
|
771
|
+
// trigger another subscribe here, looping forever)
|
|
769
772
|
if (this.wsManager.isConnected) {
|
|
770
773
|
this.wsManager.subscribeToSession(data.sessionId);
|
|
771
|
-
|
|
774
|
+
if (!data.resumed) {
|
|
775
|
+
this.wsManager.sendMessage({ type: 'subscribe', conversationId: data.conversationId });
|
|
776
|
+
}
|
|
772
777
|
}
|
|
773
778
|
|
|
774
779
|
// If this streaming event is for a different conversation than what we are viewing,
|