more flickering fixes

pull/3983/head
Dax Raad 2025-11-22 13:03:29 -05:00
parent e03a41144a
commit b52b7c6ded
1 changed files with 3 additions and 1 deletions

View File

@ -1041,7 +1041,9 @@ function AssistantMessage(props: { message: AssistantMessage; parts: Part[]; las
<Match
when={
(props.message.time.completed &&
props.parts.some((item) => item.type === "step-finish" && item.reason !== "tool-calls")) ||
props.parts.some(
(item) => item.type === "step-finish" && !["tool-calls", "unknown"].includes(item.reason),
)) ||
props.last
}
>