From 39677b773c183f9aa8cdeff273553854dddc2121 Mon Sep 17 00:00:00 2001 From: ukarpenkov Date: Fri, 19 Jun 2026 12:29:39 +0300 Subject: [PATCH] fix(tui): make task sidebar glyph reactive so status updates in real-time MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The glyph (✓/⏸/✗/ ) in TaskItem was a plain variable computed once on mount, so it never updated when a task changed status. This caused the sidebar to show [ ] instead of [✓] after marking a task done (Fixes #926). --- packages/opencode/src/cli/cmd/tui/component/task-item.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/opencode/src/cli/cmd/tui/component/task-item.tsx b/packages/opencode/src/cli/cmd/tui/component/task-item.tsx index f1daa8b50..e37389057 100644 --- a/packages/opencode/src/cli/cmd/tui/component/task-item.tsx +++ b/packages/opencode/src/cli/cmd/tui/component/task-item.tsx @@ -20,7 +20,7 @@ export function TaskItem(props: TaskItemProps) { const { theme } = useTheme() const kv = useKV() const running = () => props.status === "in_progress" - const glyph = + const glyph = () => props.status === "done" ? "✓" : props.status === "blocked" @@ -40,7 +40,7 @@ export function TaskItem(props: TaskItemProps) { when={running()} fallback={ - [{glyph}]{" "} + [{glyph()}]{" "} } >