Skip to content

Commit 064ab67

Browse files
committed
fix: render markdown for single-line reasoning
1 parent 77d2c99 commit 064ab67

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/components/Messages/ReasoningMessage.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,18 @@ export const ReasoningMessage: React.FC<ReasoningMessageProps> = ({ message, cla
7272
<span className="text-xs">
7373
<Lightbulb className={cn("size-3.5", isStreaming && "animate-pulse")} />
7474
</span>
75-
<span className="truncate">
75+
<div className="truncate">
7676
{isStreaming ? (
7777
<Shimmer colorClass="var(--color-thinking-mode)">Thinking...</Shimmer>
7878
) : isSingleLineTrace ? (
79-
trimmedContent
79+
<MarkdownRenderer
80+
content={trimmedContent}
81+
className="truncate [&_*]:inline [&_*]:whitespace-nowrap [&_*]:align-baseline"
82+
/>
8083
) : (
8184
"Thought"
8285
)}
83-
</span>
86+
</div>
8487
</div>
8588
{isCollapsible && (
8689
<span

0 commit comments

Comments
 (0)