From 2854f65cfd34282e14c84fa43678261daa76f34a Mon Sep 17 00:00:00 2001 From: Gemini AI Date: Sun, 14 Dec 2025 18:20:45 +0400 Subject: [PATCH] Fix: AgentCard - removed inline contentTypes object causing infinite loop --- bin/opencode-ink.mjs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/bin/opencode-ink.mjs b/bin/opencode-ink.mjs index ae9a3c3..c302f9b 100644 --- a/bin/opencode-ink.mjs +++ b/bin/opencode-ink.mjs @@ -1580,18 +1580,13 @@ const AgentCard = ({ content, isStreaming, width }) => { flexGrow: 1, minWidth: 10 }, - // Content with professional streaming + // Content with professional streaming - use stable DEFAULT_CONTENT_TYPES h(Box, { width: contentWidth }, isStreaming ? h(ProfessionalTypewriter, { children: content || '', - baseSpeed: 20, - contentTypes: { - text: 25, // Normal text - code: 8, // Code - faster - thinking: 40, // Thinking - deliberate - bold: 18 // Bold text - slightly faster - } + baseSpeed: 20 + // Uses DEFAULT_CONTENT_TYPES automatically }) : h(Markdown, { syntaxTheme: 'github', width: contentWidth }, content || '') )