debug: check sentMsg constructor and result property

This commit is contained in:
admin
2026-05-05 13:53:25 +00:00
Unverified
parent fbc6b9a377
commit a4a9e31e79

View File

@@ -60,7 +60,8 @@ export async function sendStreamingMessage(ctx, text, options = {}) {
// Log response structure - try to understand the format
logger.info('📡 Response typeof:', typeof sentMsg);
logger.info('📡 sentMsg:', JSON.stringify(sentMsg).substring(0, 300));
logger.info('📡 sentMsg constructor:', sentMsg?.constructor?.name);
logger.info('📡 sentMsg has result?:', 'result' in (sentMsg || {}));
// The response might be wrapped in a 'result' property
const response = sentMsg?.result || sentMsg;