mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
20 lines
716 B
JavaScript
20 lines
716 B
JavaScript
|
|
// Debug the actual message content
|
|
console.log('🔍 DETAILED MESSAGE ANALYSIS:');
|
|
console.log('Messages array:', chat.messages);
|
|
chat.messages.forEach((msg, i) => {
|
|
console.log(`Message ${i}:`, {
|
|
id: msg.id,
|
|
role: msg.role,
|
|
content: msg.content,
|
|
contentType: typeof msg.content,
|
|
contentLength: Array.isArray(msg.content) ? msg.content.length : 'not array',
|
|
firstContentItem: Array.isArray(msg.content) ? msg.content[0] : 'not array'
|
|
});
|
|
});
|
|
|
|
// Check if BaseChat is receiving the messages
|
|
console.log('🔍 BaseChat props check:');
|
|
console.log('filteredMessages length:', document.querySelector('[data-testid="chat-messages"]') ? 'Chat container found' : 'Chat container NOT found');
|
|
|