Skip to content

Commit 8c05eb2

Browse files
authored
fix(markdown): Add streaming prop to markdown element (anomalyco#11025)
1 parent f607353 commit 8c05eb2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • packages/opencode/src/cli/cmd/tui/routes/session

packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,12 @@ function TextPart(props: { last: boolean; part: TextPart; message: AssistantMess
13411341
<box id={"text-" + props.part.id} paddingLeft={3} marginTop={1} flexShrink={0}>
13421342
<Switch>
13431343
<Match when={Flag.OPENCODE_EXPERIMENTAL_MARKDOWN}>
1344-
<markdown syntaxStyle={syntax()} content={props.part.text.trim()} conceal={ctx.conceal()} />
1344+
<markdown
1345+
syntaxStyle={syntax()}
1346+
streaming={true}
1347+
content={props.part.text.trim()}
1348+
conceal={ctx.conceal()}
1349+
/>
13451350
</Match>
13461351
<Match when={!Flag.OPENCODE_EXPERIMENTAL_MARKDOWN}>
13471352
<code

0 commit comments

Comments
 (0)