agentgui 1.0.372 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.372",
3
+ "version": "1.0.374",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
@@ -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.loadConversationMessages(conversationId);
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