fix: restore model activity reasoning stream
This commit is contained in:
@@ -24,13 +24,13 @@ export function formatModelActivity(text: string): string {
|
||||
* (refreshing as the stream grows); the expand toggle reveals the full stream. Opened
|
||||
* on demand from the rotating activity icon. */
|
||||
export function ModelActivityPanel({ onClose }: { onClose: () => void }) {
|
||||
const transcript = useSessionStore((s) => s.transcript);
|
||||
const activity = useSessionStore((s) => s.activity);
|
||||
const [expanded, setExpanded] = useState(false);
|
||||
|
||||
// Blank lines are markdown's paragraph separator — split on them (not on every "\n",
|
||||
// which would also break single soft-wrapped lines apart) so each block below is a
|
||||
// real paragraph and the tail cut lands on paragraph boundaries.
|
||||
const paragraphs = transcript
|
||||
const paragraphs = activity
|
||||
.map((e) => e.text)
|
||||
.join("\n\n")
|
||||
.split(/\n{2,}/)
|
||||
|
||||
Reference in New Issue
Block a user