返回 DeepSeek-Reasonix
StreamingReasoningText.tsx
根目录 / desktop / frontend / src / components / StreamingReasoningText.tsx
1 import { memo } from "react";
2
3 // Streaming reasoning renders as plain, append-only text: no truncation
4 // window and no markdown re-parse, so the visible text keeps a stable prefix
5 // and the region grows monotonically (#8657/#8688). The completed reasoning
6 // swaps to the formatted Markdown view exactly once, when the stream ends.
7 export const StreamingReasoningText = memo(function StreamingReasoningText({ text }: { text: string }) {
8 return <pre className="reasoning__stream-text">{text}</pre>;
9 });
10
10 lines Plain Text