agentgui 1.0.544 → 1.0.546

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.544",
3
+ "version": "1.0.546",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
@@ -190,6 +190,29 @@ class AgentGUIClient {
190
190
  const dot = document.querySelector('.connection-dot');
191
191
  if (dot) dot.classList.remove('degrading');
192
192
  });
193
+
194
+ // Switch to idle view when selecting non-streaming conversation
195
+ window.addEventListener('conversation-selected', (e) => {
196
+ const convId = e.detail.conversationId;
197
+ const isStreaming = convId && this.state.streamingConversations.has(convId);
198
+ if (!isStreaming && window.switchView) {
199
+ window.switchView('chat');
200
+ }
201
+ });
202
+
203
+ // Preserve controls state across tab switches
204
+ window.addEventListener('view-switched', (e) => {
205
+ const view = e.detail.view;
206
+ if (view === 'chat') {
207
+ const convId = this.state.currentConversation?.id;
208
+ const isStreaming = convId && this.state.streamingConversations.has(convId);
209
+ if (isStreaming) {
210
+ this.disableControls();
211
+ } else {
212
+ this.enableControls();
213
+ }
214
+ }
215
+ });
193
216
  }
194
217
 
195
218
  /**
@@ -179,6 +179,8 @@
179
179
  });
180
180
  }
181
181
 
182
+ window.switchView = switchView;
183
+
182
184
  if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', init);
183
185
  else init();
184
186
  })();