Debug AI response storage issue

Found root cause: HumanAgent_Chat tool only stores AI responses when params.sessionId exists,
but sessionId detection may be failing. Only user messages are being stored in ChatManager,
causing web interface to show incomplete conversation history.

Next: Fix sessionId detection and add message source tracking.
This commit is contained in:
B Harper
2025-10-24 11:55:42 +11:00
parent 0fcc0a7b0e
commit b5d0190474
3 changed files with 1628 additions and 1 deletions
+1625
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -12,3 +12,5 @@
2025-10-24T00:43:00.103Z - RESPONSE ENDPOINT CALLED - RequestID: 3-1761266557759
2025-10-24T00:43:44.783Z - RESPONSE ENDPOINT CALLED - RequestID: 4-1761266590985
2025-10-24T00:44:34.053Z - RESPONSE ENDPOINT CALLED - RequestID: 5-1761266631221
2025-10-24T00:45:57.000Z - RESPONSE ENDPOINT CALLED - RequestID: 6-1761266677885
2025-10-24T00:53:39.981Z - RESPONSE ENDPOINT CALLED - RequestID: 7-1761266763696
+1 -1
View File
@@ -1222,7 +1222,7 @@ export class McpServer extends EventEmitter {
for (const sessionId of sessions) {
try {
const response = await fetch(\`/messages/\${sessionId}\`);
const response = await fetch(\`/sessions/\${sessionId}/messages\`);
if (response.ok) {
const data = await response.json();
const messagesContainer = document.getElementById(\`messages-\${sessionId}\`);