mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
fix stream persistence
This commit is contained in:
@@ -207,7 +207,12 @@ export function ChatContent({ content, isStreaming = false, onOptionSelect }: Ch
|
||||
|
||||
return (
|
||||
<div className={cn(PROSE_CLASSES, '[&>:first-child]:mt-0 [&>:last-child]:mb-0')}>
|
||||
<Streamdown isAnimating={isStreaming} animated components={MARKDOWN_COMPONENTS}>
|
||||
<Streamdown
|
||||
mode={isStreaming ? undefined : 'static'}
|
||||
isAnimating={isStreaming}
|
||||
animated={isStreaming}
|
||||
components={MARKDOWN_COMPONENTS}
|
||||
>
|
||||
{rendered}
|
||||
</Streamdown>
|
||||
</div>
|
||||
|
||||
@@ -277,14 +277,6 @@ export async function runStreamLoop(
|
||||
return
|
||||
}
|
||||
|
||||
if (
|
||||
streamEvent.type === MothershipStreamV1EventType.text &&
|
||||
typeof streamEvent.payload.text === 'string'
|
||||
) {
|
||||
await options.onEvent?.(streamEvent)
|
||||
return
|
||||
}
|
||||
|
||||
if (
|
||||
streamEvent.type === MothershipStreamV1EventType.tool &&
|
||||
streamEvent.payload.phase === 'args_delta' &&
|
||||
|
||||
Reference in New Issue
Block a user