feat: Remaining Phases (4+5+6) - Background Concurrency, Panel UI, Task Visibility (#12330)#12349
Open
roomote-v0[bot] wants to merge 5 commits into
Open
feat: Remaining Phases (4+5+6) - Background Concurrency, Panel UI, Task Visibility (#12330)#12349roomote-v0[bot] wants to merge 5 commits into
roomote-v0[bot] wants to merge 5 commits into
Conversation
…ner) Implements the MVP for Phase 4 of the parallel execution roadmap: - Add BackgroundTaskRunner service that manages concurrent read-only background tasks separately from the clineStack - Add isBackgroundTask flag to Task class that suppresses webview updates and auto-approves all tool uses - Extend new_task tool with optional background parameter - Background tasks are restricted to read-only tools only - Results are delivered asynchronously to the parent task via onBackgroundComplete callback - Configurable concurrency limit (default 3) and timeout (default 5min) - Proper cleanup on task cancellation, parent cancellation, and provider disposal - 17 new tests for BackgroundTaskRunner, all existing tests pass Issue #12330
…nd timeouts - Add BackgroundTaskRunnerCallbacks interface with onTaskTimeout and onTaskError - Wire VS Code notifications in ClineProvider: info on completion, warning on timeout/error - Document auto-approval design decision for read-only background tasks - Add 2 new tests for callback invocation (19 total, all passing)
Adds a collapsible Background Tasks Panel to the chat sidebar that shows active and recently completed background tasks. This builds on the Phase 4 BackgroundTaskRunner to give users visibility into background work. Key changes: - BackgroundTaskStatusInfo type for exposing task status to the webview - BackgroundTaskRunner tracks completed tasks with result summaries - BackgroundTaskRunner.getTasksStatus() returns combined active + completed - BackgroundTaskRunner.onStateChanged callback for UI refresh - backgroundTasks field added to ExtensionState and getStateToPostToWebview - cancelBackgroundTask webview message handler - postBackgroundTasksToWebview() for lightweight status-only updates - BackgroundTasksPanel React component with collapsible panel, cancel buttons, active count badge, and result summaries - 31 backend tests (BackgroundTaskRunner) + 7 UI tests (panel component)
…tension-point comments
…#12330) Phase 4: Background Read-Only Concurrency Phase 5: Background Tasks Panel UI Phase 6a: Conversation Replay for background tasks Phase 6b: Tab/Panel Switching for background tasks Phase 6c: Real-time Progress Streaming
2 tasks
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR attempts to address Issue #12330 by combining the remaining phases (4, 5, and 6) into a single PR with proper stacked branching.
What is included
Phase 4: Background Read-Only Concurrency
Phase 5: Background Tasks Panel UI
Phase 6a: Conversation Replay
Phase 6b: Tab/Panel Switching
Phase 6c: Real-time Progress Streaming
Branch Stack
feature/enhanced-subtask-handoff-summary(Phase 1 - PR feat: enrich subtask handoff with structured context summaries (Phase 1 of #12330) #12332)feature/phase-2-3-combined(Phase 2+3 - PR feat: Phase 2 + Phase 3 - Sequential Fan-Out, Task Isolation, Permissions, Context Handoff (#12330) #12348)feature/remaining-phases-4-5-6(Phases 4+5+6)Phase 3d remains deferred per discussion in #12330.
Feedback and guidance are welcome.
Interactively review PR in Roo Code Cloud