mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-24 06:45:22 +00:00
tui: simplify running tool display to show tool names more directly in task UI
This commit is contained in:
@@ -1986,14 +1986,7 @@ function Task(props: ToolProps<typeof TaskTool>) {
|
||||
{" "}
|
||||
· {tools().length} toolcalls
|
||||
<Show fallback={"\n↳ Running..."} when={current()}>
|
||||
{(item) => {
|
||||
const title = createMemo(() => (item().state as any).title)
|
||||
return (
|
||||
<>
|
||||
{"\n"}↳ {Locale.titlecase(item().tool)} {title()}
|
||||
</>
|
||||
)
|
||||
}}
|
||||
{"\n"}↳ {Locale.titlecase(current()!.tool)} {(current()!.state as any).title}
|
||||
</Show>
|
||||
</Show>
|
||||
<Show when={duration() && props.part.state.status === "completed"}>
|
||||
|
||||
Reference in New Issue
Block a user