Skip to content

Commit f75befa

Browse files
committed
Fix logic: show all when streaming, only completed when idle
1 parent c88d560 commit f75befa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/PinnedTodoList.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ export const PinnedTodoList: React.FC<PinnedTodoListProps> = ({ workspaceId }) =
3333
() => workspaceStore.getWorkspaceState(workspaceId).canInterrupt
3434
);
3535

36-
// Filter completed todos while streaming
37-
const displayTodos = canInterrupt ? todos.filter((todo) => todo.status !== "completed") : todos;
36+
// When idle (not streaming), only show completed todos for clean summary
37+
// When streaming, show all todos so user can see active work
38+
const displayTodos = canInterrupt
39+
? todos
40+
: todos.filter((todo) => todo.status === "completed");
3841

3942
if (displayTodos.length === 0) {
4043
return null;

0 commit comments

Comments
 (0)