Repository navigation
Bound concurrent repo scans and trace renderer breadcrumbs - #5608
Conversation
- Limit worktree refresh concurrency to 5 parallel workers to prevent launching too many concurrent git scans during startup and activation. - Record renderer breadcrumbs as tracer spans to provide durable pre-crash context for native main-process crashes. - Log a breadcrumb when activating a worktree from the sidebar.
|
Ready to review this PR? Stage has broken it down into 3 individual chapters for you:
Chapters generated by Stage for commit d2cdcce on Jun 17, 2026 6:08pm UTC. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThe pull request contains two independent changes. The first adds observability tracing to the renderer breadcrumb IPC path: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…5608) - Limit worktree refresh concurrency to 5 parallel workers to prevent launching too many concurrent git scans during startup and activation. - Record renderer breadcrumbs as tracer spans to provide durable pre-crash context for native main-process crashes. - Log a breadcrumb when activating a worktree from the sidebar.
Summary
Bounds concurrent repository scans during startup/hydration to a limit of 5, avoiding CPU and process spikes. In addition, renderer-side crash breadcrumbs are now traced via durable trace spans in the main process to provide context for native crash analysis.
Screenshots
No visual change
Testing
pnpm lintpnpm typecheckpnpm testpnpm buildUnit tests were added in
worktrees.test.tsto assert concurrent repo scans are capped at a maximum of 5, and incrash-reporting.test.tsto verify tracing spans are successfully started and ended on renderer breadcrumbs.AI Review Report
Security Audit
sanitizeCrashReportDetailsfor renderer breadcrumb data to safeguard against prototype pollution and invalid types.sanitizeCrashReportString.Notes
None