autonaming error logging

This commit is contained in:
Storme-bit
2026-04-13 20:12:14 -07:00
parent 4e0f7d33aa
commit 70959e945a

View File

@@ -125,6 +125,7 @@ async function chat(externalId, userMessage, options = {}) {
}
async function chatStream(externalId, userMessage, onChunk, options = {}) {
console.log('[orchestration] chatStream called:', { externalId, userMessage: userMessage.slice(0, 50) });
let session = await memory.getSessionByExternalId(externalId);
if (!session) session = await memory.createSession(externalId);
@@ -175,6 +176,7 @@ async function chatStream(externalId, userMessage, onChunk, options = {}) {
}
} catch (err) {
console.error('[orchestration] Failed to parse inference SSE event:', raw, err.message);
throw err; // add this temporarily
}
}
}