fix stream persistence

This commit is contained in:
Vikhyath Mondreti
2026-04-09 11:54:00 -07:00
parent 2abf6ac245
commit a738a6d711
2 changed files with 6 additions and 9 deletions

View File

@@ -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>

View File

@@ -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' &&