mirror of
https://github.com/wassname/HumanAgent-MCP.git
synced 2026-09-12 12:00:51 +08:00
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:
Vendored
+1625
File diff suppressed because it is too large
Load Diff
@@ -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
@@ -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}\`);
|
||||
|
||||
Reference in New Issue
Block a user