agentgui 1.0.619 → 1.0.620

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.619",
3
+ "version": "1.0.620",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
package/static/index.html CHANGED
@@ -1786,11 +1786,9 @@
1786
1786
  list-style: none;
1787
1787
  font-size: 0.85rem;
1788
1788
  line-height: 1.3;
1789
- background: #e5e7eb;
1790
1789
  transition: background 0.15s;
1791
1790
  }
1792
1791
  html.dark .folded-tool-bar {
1793
- background: #404040;
1794
1792
  }
1795
1793
  .folded-tool-bar::-webkit-details-marker { display: none; }
1796
1794
  .folded-tool-bar::marker { display: none; content: ''; }
@@ -12,14 +12,24 @@
12
12
 
13
13
  function getCwd() {
14
14
  try {
15
- if (window.conversationManager) {
15
+ // Try conversation manager first
16
+ if (window.conversationManager && window.conversationManager.activeId) {
16
17
  var mgr = window.conversationManager;
17
18
  var id = mgr.activeId;
18
- if (id && mgr.conversations) {
19
+ if (mgr.conversations) {
19
20
  var conv = mgr.conversations.find(function(c) { return c.id === id; });
20
21
  if (conv && conv.workingDirectory) return conv.workingDirectory;
21
22
  }
22
23
  }
24
+ // Fallback to global currentConversation
25
+ if (window.currentConversation) {
26
+ var convId = window.currentConversation;
27
+ if (window.conversationManager && window.conversationManager.conversations) {
28
+ var convList = window.conversationManager.conversations;
29
+ var match = convList.find(function(c) { return c.id === convId; });
30
+ if (match && match.workingDirectory) return match.workingDirectory;
31
+ }
32
+ }
23
33
  } catch (_) {}
24
34
  return undefined;
25
35
  }
Binary file
Binary file