agentgui 1.0.373 → 1.0.374
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 +7 -2
package/package.json
CHANGED
package/static/js/client.js
CHANGED
|
@@ -205,7 +205,7 @@ class AgentGUIClient {
|
|
|
205
205
|
// Parse path-based URL: /conversations/<conversationId>
|
|
206
206
|
const pathMatch = window.location.pathname.match(/\/conversations\/([^\/]+)$/);
|
|
207
207
|
const conversationId = pathMatch ? pathMatch[1] : null;
|
|
208
|
-
|
|
208
|
+
|
|
209
209
|
// Session ID still in query params
|
|
210
210
|
const params = new URLSearchParams(window.location.search);
|
|
211
211
|
const sessionId = params.get('session');
|
|
@@ -216,7 +216,12 @@ class AgentGUIClient {
|
|
|
216
216
|
this.routerState.currentSessionId = sessionId;
|
|
217
217
|
}
|
|
218
218
|
console.log('Restoring conversation from URL:', conversationId);
|
|
219
|
-
this.
|
|
219
|
+
this.state.currentConversation = conversationId;
|
|
220
|
+
if (window.conversationManager) {
|
|
221
|
+
window.conversationManager.select(conversationId);
|
|
222
|
+
} else {
|
|
223
|
+
this.loadConversationMessages(conversationId);
|
|
224
|
+
}
|
|
220
225
|
}
|
|
221
226
|
}
|
|
222
227
|
|