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