Fix: AgentCard - removed inline contentTypes object causing infinite loop

This commit is contained in:
Gemini AI
2025-12-14 18:20:45 +04:00
Unverified
parent 816fd5ccae
commit 2854f65cfd

View File

@@ -1580,18 +1580,13 @@ const AgentCard = ({ content, isStreaming, width }) => {
flexGrow: 1, flexGrow: 1,
minWidth: 10 minWidth: 10
}, },
// Content with professional streaming // Content with professional streaming - use stable DEFAULT_CONTENT_TYPES
h(Box, { width: contentWidth }, h(Box, { width: contentWidth },
isStreaming isStreaming
? h(ProfessionalTypewriter, { ? h(ProfessionalTypewriter, {
children: content || '', children: content || '',
baseSpeed: 20, baseSpeed: 20
contentTypes: { // Uses DEFAULT_CONTENT_TYPES automatically
text: 25, // Normal text
code: 8, // Code - faster
thinking: 40, // Thinking - deliberate
bold: 18 // Bold text - slightly faster
}
}) })
: h(Markdown, { syntaxTheme: 'github', width: contentWidth }, content || '') : h(Markdown, { syntaxTheme: 'github', width: contentWidth }, content || '')
) )