agentgui 1.0.24 → 1.0.25
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/01-initial-load.png +0 -0
- package/package.json +1 -1
- package/static/app.js +26 -2
|
Binary file
|
package/package.json
CHANGED
package/static/app.js
CHANGED
|
@@ -450,7 +450,23 @@ class GMGUIApp {
|
|
|
450
450
|
if (this.conversations.size === 0) {
|
|
451
451
|
console.warn('[DEBUG] No conversations to display - showing empty state');
|
|
452
452
|
console.warn('[DEBUG] conversations map contents:', this.conversations);
|
|
453
|
-
|
|
453
|
+
|
|
454
|
+
// VISUAL DEBUG: Show debug info on page
|
|
455
|
+
const debugInfo = `
|
|
456
|
+
<div style="background: #fee; padding: 1rem; border: 1px solid #f99; border-radius: 0.5rem; margin-bottom: 1rem; font-family: monospace; font-size: 0.75rem;">
|
|
457
|
+
<strong style="color: #c00;">🔍 DEBUG INFO</strong><br>
|
|
458
|
+
Conversations: ${this.conversations.size}<br>
|
|
459
|
+
BASE_URL: ${BASE_URL}<br>
|
|
460
|
+
Width: ${window.innerWidth}px<br>
|
|
461
|
+
Sidebar: ${document.getElementById('sidebar')?.offsetHeight > 0 ? 'visible' : 'hidden'}<br>
|
|
462
|
+
<br>
|
|
463
|
+
<strong>To debug (F12 console):</strong><br>
|
|
464
|
+
• app.conversations.size<br>
|
|
465
|
+
• Array.from(app.conversations.keys()).slice(0,5)
|
|
466
|
+
</div>
|
|
467
|
+
`;
|
|
468
|
+
|
|
469
|
+
list.innerHTML = debugInfo + '<p style="color: var(--text-tertiary); font-size: 0.875rem; padding: 0.5rem;">No chats yet</p>';
|
|
454
470
|
return;
|
|
455
471
|
}
|
|
456
472
|
const sorted = Array.from(this.conversations.values()).sort(
|
|
@@ -1330,7 +1346,15 @@ function initializeApp() {
|
|
|
1330
1346
|
get selectedAgent() { return window.app.selectedAgent; },
|
|
1331
1347
|
get currentConversation() { return window.app.currentConversation; },
|
|
1332
1348
|
checkChatListElement() { return document.getElementById('chatList'); },
|
|
1333
|
-
checkChatListChildCount() { return document.getElementById('chatList')?.children?.length || 0; }
|
|
1349
|
+
checkChatListChildCount() { return document.getElementById('chatList')?.children?.length || 0; },
|
|
1350
|
+
async forceRefetch() {
|
|
1351
|
+
console.log('[FORCE] Forcing fetchConversations...');
|
|
1352
|
+
await window.app.fetchConversations();
|
|
1353
|
+
console.log('[FORCE] Conversations loaded:', window.app.conversations.size);
|
|
1354
|
+
window.app.renderChatHistory();
|
|
1355
|
+
console.log('[FORCE] renderChatHistory called');
|
|
1356
|
+
return window.app.conversations.size;
|
|
1357
|
+
}
|
|
1334
1358
|
};
|
|
1335
1359
|
|
|
1336
1360
|
console.log('[DEBUG] initializeApp: GMGUIApp created successfully');
|