Commit 48ea5d4
committed
fix(task): reset isStreaming state in abortTask to prevent UI lock after task switch
When a task switch occurs via abortTask() (e.g., removeClineFromStack,
clearTask), the isStreaming flag was not being reset. This left the chat
input locked in 'API Request...' state because ClineProvider checks
getCurrentTask()!.isStreaming to determine if the UI should be enabled.
Added isStreaming=false and isWaitingForFirstChunk=false reset in
abortTask() alongside the existing abort=true flag, ensuring the UI
unlocks immediately when a task is aborted or abandoned.
Fixes #2571 parent 82bd057 commit 48ea5d4
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2118 | 2118 | | |
2119 | 2119 | | |
2120 | 2120 | | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
2121 | 2128 | | |
2122 | 2129 | | |
2123 | 2130 | | |
| |||
0 commit comments