revert: restore full streaming display (text + thinking)
This commit is contained in:
parent
13a1748162
commit
7c0580e666
@ -354,12 +354,12 @@ export default function ChatPanel({ chatId, projectId }: Props) {
|
||||
<span className="animate-pulse">●</span>
|
||||
</div>
|
||||
{streaming.thinking && (
|
||||
<details className="ml-5 mb-1">
|
||||
<details className="ml-5 mb-1" open>
|
||||
<summary className="text-xs text-[var(--muted)] cursor-pointer hover:text-[var(--fg)]">
|
||||
💭 Размышления ({streaming.thinking.length} символов)
|
||||
💭 Размышления
|
||||
</summary>
|
||||
<div className="mt-1 text-xs text-[var(--muted)] whitespace-pre-wrap bg-white/5 rounded p-2 max-h-[200px] overflow-y-auto">
|
||||
{streaming.thinking.length > 500 ? '…' + streaming.thinking.slice(-500) : streaming.thinking}
|
||||
{streaming.thinking}
|
||||
</div>
|
||||
</details>
|
||||
)}
|
||||
@ -372,8 +372,8 @@ export default function ChatPanel({ chatId, projectId }: Props) {
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
{streaming.text && !streaming.tools.some(t => t.status === "running") && (
|
||||
<div className="ml-5 whitespace-pre-wrap">{streaming.text.length > 500 ? '…' + streaming.text.slice(-500) : streaming.text}</div>
|
||||
{streaming.text && (
|
||||
<div className="ml-5 whitespace-pre-wrap">{streaming.text}</div>
|
||||
)}
|
||||
{!streaming.text && streaming.tools.length === 0 && !streaming.thinking && (
|
||||
<div className="ml-5 text-[var(--muted)] italic">Думает...</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user