|
|
@@ -1204,7 +1204,7 @@ function AssistantMessage(props: { message: AssistantMessage; parts: Part[]; las
|
|
|
)
|
|
|
}}
|
|
|
</For>
|
|
|
- <Show when={props.message.error}>
|
|
|
+ <Show when={props.message.error && props.message.error.name !== "MessageAbortedError"}>
|
|
|
<box
|
|
|
border={["left"]}
|
|
|
paddingTop={1}
|
|
|
@@ -1219,15 +1219,27 @@ function AssistantMessage(props: { message: AssistantMessage; parts: Part[]; las
|
|
|
</box>
|
|
|
</Show>
|
|
|
<Switch>
|
|
|
- <Match when={props.last || final()}>
|
|
|
+ <Match when={props.last || final() || props.message.error?.name === "MessageAbortedError"}>
|
|
|
<box paddingLeft={3}>
|
|
|
<text marginTop={1}>
|
|
|
- <span style={{ fg: local.agent.color(props.message.agent) }}>▣ </span>{" "}
|
|
|
+ <span
|
|
|
+ style={{
|
|
|
+ fg:
|
|
|
+ props.message.error?.name === "MessageAbortedError"
|
|
|
+ ? theme.textMuted
|
|
|
+ : local.agent.color(props.message.agent),
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ ▣{" "}
|
|
|
+ </span>{" "}
|
|
|
<span style={{ fg: theme.text }}>{Locale.titlecase(props.message.mode)}</span>
|
|
|
<span style={{ fg: theme.textMuted }}> · {props.message.modelID}</span>
|
|
|
<Show when={duration()}>
|
|
|
<span style={{ fg: theme.textMuted }}> · {Locale.duration(duration())}</span>
|
|
|
</Show>
|
|
|
+ <Show when={props.message.error?.name === "MessageAbortedError"}>
|
|
|
+ <span style={{ fg: theme.textMuted }}> · interrupted</span>
|
|
|
+ </Show>
|
|
|
</text>
|
|
|
</box>
|
|
|
</Match>
|