Merge pull request #228 from multica-ai/fix/tool-empty-div-flicker

fix(ui): prevent empty div flicker between tool transitions
This commit is contained in:
Naiyuan Qing 2026-02-26 16:23:01 +08:00 committed by GitHub
commit c10ad352e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -119,8 +119,8 @@ export const MessageList = memo(function MessageList({
<ThinkingItem thinking={thinking} isStreaming={isStreaming} />
)}
{/* Render text content (if any) */}
{(text || isStreaming) && (
{/* Render text content (if any) - require actual text, not just streaming state */}
{text && (
<div
className={cn(
"flex items-center gap-1.5",