|
@@ -1041,7 +1041,9 @@ function AssistantMessage(props: { message: AssistantMessage; parts: Part[]; las
|
|
|
<Match
|
|
<Match
|
|
|
when={
|
|
when={
|
|
|
(props.message.time.completed &&
|
|
(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
|
|
props.last
|
|
|
}
|
|
}
|
|
|
>
|
|
>
|