Commit 8942282
Eric Wheeler
fix: ensure all Cline instances update history UI for new tasks
Refactors state update logic to ensure that when task history
is modified (e.g., a new task is created or status changes),
all active ClineProvider instances (sidebar and editor tabs)
receive the updated state and refresh their UI.
The `postStateToWebview()` call is removed from `Task.addToClineMessages()`
and is now handled within `ClineProvider.updateTaskHistory()`, which
iterates over all active instances to broadcast the new state.
This guarantees timely UI updates across all open views.
Signed-off-by: Eric Wheeler <[email protected]>1 parent 7539ab4 commit 8942282
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1446 | 1446 | | |
1447 | 1447 | | |
1448 | 1448 | | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
1449 | 1455 | | |
1450 | 1456 | | |
1451 | 1457 | | |
| |||
0 commit comments