agentgui 1.0.545 → 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.545",
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",
@@ -191,6 +191,15 @@ class AgentGUIClient {
191
191
  if (dot) dot.classList.remove('degrading');
192
192
  });
193
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
+
194
203
  // Preserve controls state across tab switches
195
204
  window.addEventListener('view-switched', (e) => {
196
205
  const view = e.detail.view;
@@ -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
  })();