agentgui 1.0.559 → 1.0.560

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.559",
3
+ "version": "1.0.560",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
@@ -2515,7 +2515,8 @@ class AgentGUIClient {
2515
2515
  this.conversationCache.delete(conversationId);
2516
2516
  this.syncPromptState(conversationId);
2517
2517
  this.restoreScrollPosition(conversationId);
2518
- this.enableControls();
2518
+ // Prompt state is immutable: computed from shouldResumeStreaming via syncPromptState
2519
+ // Do not call enableControls/disableControls here - prompt state is determined by streaming status
2519
2520
  return;
2520
2521
  }
2521
2522
  }
@@ -2747,8 +2748,11 @@ class AgentGUIClient {
2747
2748
  }
2748
2749
 
2749
2750
  syncPromptState(conversationId) {
2750
- const isStreaming = this.state.streamingConversations.has(conversationId);
2751
+ const conversation = this.state.currentConversation;
2752
+ if (!conversation || conversation.id !== conversationId) return;
2753
+
2751
2754
  if (this.ui.messageInput) {
2755
+ const isStreaming = this.state.streamingConversations.has(conversationId);
2752
2756
  if (isStreaming) {
2753
2757
  this.ui.messageInput.disabled = true;
2754
2758
  } else {