Repository navigation
perf(runtime): coalesce project lineage refreshes - #13638
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (7)
📝 WalkthroughWalkthroughRuntime worktree refreshes now suppress per-repository remote lineage requests. A new scheduler refreshes all repositories and then fetches host-wide lineage. It preserves repository failures, rethrows lineage-only failures, and combines simultaneous failures in an 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 7f48fec6-2c19-4bff-9625-1f1f343ff18f
📒 Files selected for processing (7)
src/renderer/src/hooks/runtime-project-refresh-scheduler.test.tssrc/renderer/src/hooks/runtime-project-refresh-scheduler.tssrc/renderer/src/hooks/useIpcEvents.test.tssrc/renderer/src/hooks/useIpcEvents.tssrc/renderer/src/store/slices/worktree-helpers.tssrc/renderer/src/store/slices/worktrees.test.tssrc/renderer/src/store/slices/worktrees.ts
205b86e to
0b8f48f
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Summary
ELI5
Lineage is the remote Orca server family tree for all workspaces on that server. Previously, when a server reported project changes, the client asked for the entire family tree once after refreshing every individual project, then asked for it one more time at the end. A server with 20 projects could therefore receive 21 copies of the same full-server request.
Now the client refreshes the project lists first and asks for the full family tree once at the end. A single worktree-change event also drops from two family-tree requests to one.
Compatibility
Validation