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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.603",
3
+ "version": "1.0.604",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
@@ -765,10 +765,15 @@ class AgentGUIClient {
765
765
  this._serverProcessingEstimate = 0.7 * this._serverProcessingEstimate + 0.3 * serverTime;
766
766
  }
767
767
 
768
- // Always subscribe to the session so blocks are not lost regardless of which conversation is active
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
- this.wsManager.sendMessage({ type: 'subscribe', conversationId: data.conversationId });
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,