Commit graph

2 commits

Author SHA1 Message Date
Roo Code
37cac2e167 fix: resolve TypeScript compilation errors in gray state recovery tests
- Remove invalid clineStack property from ClineProvider mock (private property)
- Remove invalid webview property from ClineProvider mock (non-existent property)
- Tests now compile and pass successfully (8/8 tests passing)
- Fixes compilation errors that were blocking CI checks
2025-07-18 20:39:58 +00:00
Roo Code
75406a7d9b 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 unusable
2025-07-18 15:20:47 +00:00