Commit 033eccc
authored
🤖 feat: Hide completed TODOs while streaming (#469)
## Problem
When agents are actively working and updating their TODO list, completed
items clutter the display and make it harder to see what's currently
being worked on.
## Solution
Only show completed TODOs in the pinned TODO list when the chat is
**not** streaming:
- **While streaming:** Hide completed todos, only show
pending/in_progress
- **After streaming:** Show all todos including completed for context
## Implementation
Modified `PinnedTodoList` component to:
1. Check `canInterrupt` from workspace state (indicates active
streaming)
2. Filter out `completed` todos when streaming
3. Pass filtered list to `TodoList` component
## Benefits
- **Cleaner UI during active work** - Focus on what's happening now
- **Context when idle** - See full history of what was accomplished
- **No data loss** - Completed todos still exist, just hidden
temporarily
---
_Generated with `cmux`_1 parent 54d8b9d commit 033eccc
File tree
2 files changed
+23
-8
lines changed- src
- components
- utils/tools
2 files changed
+23
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
31 | 41 | | |
32 | 42 | | |
33 | 43 | | |
| |||
47 | 57 | | |
48 | 58 | | |
49 | 59 | | |
50 | | - | |
| 60 | + | |
51 | 61 | | |
52 | 62 | | |
53 | 63 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
192 | 197 | | |
193 | 198 | | |
194 | 199 | | |
| |||
0 commit comments