tui: fix task display nesting so running status only shows when toolcalls exist
This commit is contained in:
parent
98309fdd58
commit
8d232d35eb
1 changed files with 8 additions and 4 deletions
|
|
@ -1982,12 +1982,16 @@ function Task(props: ToolProps<typeof TaskTool>) {
|
||||||
part={props.part}
|
part={props.part}
|
||||||
>
|
>
|
||||||
Task {props.input.description}
|
Task {props.input.description}
|
||||||
<Show when={isRunning() && tools().length > 0}> · {tools().length} toolcalls</Show>
|
<Show when={isRunning() && tools().length > 0}>
|
||||||
<Show fallback={"\n└ Running..."} when={current()}>
|
{" "}
|
||||||
{"\n└"} {Locale.titlecase(current()!.tool)} {(current()!.state as any).title}
|
· {tools().length} toolcalls
|
||||||
|
<Show fallback={"\n└ Running..."} when={current()}>
|
||||||
|
{"\n└"} {Locale.titlecase(current()!.tool)} {(current()!.state as any).title}
|
||||||
|
</Show>
|
||||||
</Show>
|
</Show>
|
||||||
<Show when={duration() && props.part.state.status === "completed"}>
|
<Show when={duration() && props.part.state.status === "completed"}>
|
||||||
{"\n└ "} {tools().length} toolcalls · {Locale.duration(duration())}
|
{"\n└ "}
|
||||||
|
{tools().length} toolcalls · {Locale.duration(duration())}
|
||||||
</Show>
|
</Show>
|
||||||
</InlineTool>
|
</InlineTool>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue