diff --git a/packages/ui/src/components/instance/instance-shell2.tsx b/packages/ui/src/components/instance/instance-shell2.tsx index 69662ea3..7580ac9e 100644 --- a/packages/ui/src/components/instance/instance-shell2.tsx +++ b/packages/ui/src/components/instance/instance-shell2.tsx @@ -851,7 +851,7 @@ const InstanceShell2: Component = (props) => { if (!todoState) { return

Nothing planned yet.

} - return + return } const sections = [ diff --git a/packages/ui/src/components/tool-call/renderers/todo.tsx b/packages/ui/src/components/tool-call/renderers/todo.tsx index 2f276920..0e0a57d7 100644 --- a/packages/ui/src/components/tool-call/renderers/todo.tsx +++ b/packages/ui/src/components/tool-call/renderers/todo.tsx @@ -1,4 +1,4 @@ -import { For } from "solid-js" +import { For, Show } from "solid-js" import type { ToolState } from "@opencode-ai/sdk" import type { ToolRenderer } from "../types" import { readToolStatePayload } from "../utils" @@ -61,6 +61,7 @@ function getTodoStatusLabel(status: TodoViewStatus): string { interface TodoListViewProps { state?: ToolState emptyLabel?: string + showStatusLabel?: boolean } export function TodoListView(props: TodoListViewProps) { @@ -88,12 +89,15 @@ export function TodoListView(props: TodoListViewProps) { role="listitem" > -
-
- {todo.content} - {label} +
+
+ {todo.content} + + {label} + +
-
+
) }}