agentgui 1.0.544 → 1.0.545

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.545",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
@@ -190,6 +190,20 @@ class AgentGUIClient {
190
190
  const dot = document.querySelector('.connection-dot');
191
191
  if (dot) dot.classList.remove('degrading');
192
192
  });
193
+
194
+ // Preserve controls state across tab switches
195
+ window.addEventListener('view-switched', (e) => {
196
+ const view = e.detail.view;
197
+ if (view === 'chat') {
198
+ const convId = this.state.currentConversation?.id;
199
+ const isStreaming = convId && this.state.streamingConversations.has(convId);
200
+ if (isStreaming) {
201
+ this.disableControls();
202
+ } else {
203
+ this.enableControls();
204
+ }
205
+ }
206
+ });
193
207
  }
194
208
 
195
209
  /**