Commit 75406a7
committed
fix: implement comprehensive gray state recovery for subtask completion failures
- Add error recovery in Task.resumePausedTask() to handle provider disconnections gracefully
- Enhance Task.recursivelyMakeClineRequests() with recovery mechanisms for API failures
- Add ClineProvider.recoverFromGrayState() method with multiple recovery strategies
- Enhance ClineProvider.finishSubTask() with comprehensive error handling
- Add UI state validation in ChatView.tsx to detect and recover from gray state
- Include comprehensive test suite for gray state recovery mechanisms
Fixes #5892: Gray state issue where Orchestrator subtask completion with provider disconnection leaves parent task unusable1 parent 38d8edf commit 75406a7
File tree
4 files changed
+436
-7
lines changed- src
- core
- task
- webview
- tests
- webview-ui/src/components/chat
4 files changed
+436
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
783 | | - | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
784 | 793 | | |
785 | 794 | | |
786 | 795 | | |
| |||
1457 | 1466 | | |
1458 | 1467 | | |
1459 | 1468 | | |
1460 | | - | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
1461 | 1482 | | |
1462 | 1483 | | |
1463 | 1484 | | |
| |||
1731 | 1752 | | |
1732 | 1753 | | |
1733 | 1754 | | |
1734 | | - | |
| 1755 | + | |
1735 | 1756 | | |
1736 | 1757 | | |
1737 | 1758 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
235 | 285 | | |
236 | 286 | | |
237 | 287 | | |
| |||
0 commit comments