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 +1 -1
- package/static/js/client.js +14 -0
package/package.json
CHANGED
package/static/js/client.js
CHANGED
|
@@ -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
|
/**
|