feat: parallel task introspection, orphan detection, error handling & telemetry#12186
Open
DavinciDreams wants to merge 7 commits intoRooCodeInc:mainfrom
Open
feat: parallel task introspection, orphan detection, error handling & telemetry#12186DavinciDreams wants to merge 7 commits intoRooCodeInc:mainfrom
DavinciDreams wants to merge 7 commits intoRooCodeInc:mainfrom
Conversation
- Strip all telemetry (PostHog, cloud telemetry) - no data leaves the machine - Disable all cloud features (auth, settings sync, sharing, Roo provider) - Rebrand extension: roo-cline -> moo-code, RooVeterinaryInc -> moo-code - Update all commands, settings, views to moo-code.* prefix - Remove upstream CI/CD workflows (marketplace publish, nightly, website) - Rewrite README, PRIVACY, CONTRIBUTING, SECURITY docs - Build verified: bin/moo-code-3.52.1.vsix (31.44 MB)
- Update all cloud package tests to match no-op implementations - All 171 tests now pass - Update src/package.json repository URL and homepage to point to actual fork
…upport - Port session memory compaction, microcompact, hooks system, and prompt-too-long retry from the Claude Code CLI source - Add spawn_parallel_tasks tool with serial queue drain fan-out pattern - Add worktree isolation: new_task/spawn_parallel_tasks accept a worktree param; ClineProvider creates/cleans up git worktrees per child task - Add completionPayload: attempt_completion result parsed as JSON and aggregated across parallel tasks for structured fan-in - Fix workspacePath priority so explicit override always wins over parent - Emit TaskSpawned event from delegateParentAndOpenChild - Scope MCP hub to per-task workspacePath for worktree-aware mcp.json - Fix microCompact bugs: touched flag, off-by-one threshold, keepRecent:0 - Fix lazy OutputChannel init in hooks executor to avoid test failures - Fix pre-existing lint warnings across src, packages/cloud, webview-ui Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…and telemetry - Introspection API: add ParallelTaskStatus type and getParallelTaskStatus() on TaskProviderLike so callers can list active child, queued tasks, and completed results (with errors) for any task ID - Worktree orphan detection: detectAndCleanOrphanedWorktrees() scans history on startup, emits telemetry for each find, and offers a VS Code cleanup prompt - Error propagation: reopenParentFromDelegation accepts childFailed flag; when abortOnChildFailure is set on the parent the remaining parallel queue is abandoned and partial results returned immediately - abortOnChildFailure option: SpawnParallelTasksTool forwards the flag through delegation so callers can opt into fail-fast queue behaviour - Worktree naming: worktree paths and branches now embed the last 8 chars of the parent task ID (e.g. project-a1b2c3d4) instead of a random suffix, making manual inspection easy - Telemetry: six new events — WORKTREE_CREATED, WORKTREE_DELETED, WORKTREE_ORPHAN_DETECTED, PARALLEL_TASK_SPAWNED, PARALLEL_TASK_COMPLETED, PARALLEL_TASK_CHILD_FAILED — with matching TelemetryService capture methods - error field on parallelResults items and abortOnChildFailure on HistoryItem schema so failure context survives process restarts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Fix HTTP-Referer URLs to point to DavinciDreams/Morse-Code - Update src/package.json repository and homepage URLs - Replace WeakRef<any>/setProvider(any) with typed TelemetryPropertiesProvider interface - Remove dead AbortController boilerplate from RetryQueue.retryRequest - Fix WebAuthService.initialize() to emit auth-state-changed event (fixes webview spinner) - Fix nightly esbuild PKG_NAME to match stable so commands resolve correctly - Fix .gitignore corruption (remove backtick-nnul, add proper 'nul' entry) - Update .roo-hooks.json.example branding to Morse Code - Update all stale test assertions (HTTP-Referer, X-Title, User-Agent) - Add docs/cloud-backend.md — implementation plan for future cloud feature branch - Add scripts/build-pr.js — PR test build tool with nightly slot support - Update scripts/install-vsix.js branding Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
getParallelTaskStatus(taskId)onTaskProviderLikereturns a snapshot of a task's parallel queue: queued tasks, completed results (with error fields), and the active child ID. Useful for debugging and future UI panels.detectAndCleanOrphanedWorktrees()runs in the background on extension activation, scans history for worktrees that still exist on disk after their tasks completed (e.g. after a crash), emits telemetry, and offers a VS Code cleanup notification.abortOnChildFailure—reopenParentFromDelegationnow accepts achildFailedflag;SpawnParallelTasksToolacceptsabortOnChildFailure: boolean; when set, a failing child abandons the remaining queue and returns partial aggregated results immediately.project-a1b2c3d4) instead of a random suffix, making manualls ~/.roo/worktrees/inspection readable.WORKTREE_CREATED,WORKTREE_DELETED,WORKTREE_ORPHAN_DETECTED,PARALLEL_TASK_SPAWNED,PARALLEL_TASK_COMPLETED,PARALLEL_TASK_CHILD_FAILEDwith matchingTelemetryServicecapture methods.parallelResultsitems gainerror?: string;HistoryItemgainsabortOnChildFailure?: boolean;parallelQueueitems gainabortOnFailure?: boolean.Test plan
abortOnChildFailure: trueand verify queue is abandoned on first failure<project>-<8-char-taskId>not random suffixgetParallelTaskStatus()on a running delegated task and verify returned snapshot🤖 Generated with Claude Code
Interactively review PR in Roo Code Cloud