Repository navigation
perf(renderer): batch dashboard orchestration selection - #10149
Merged
Merged
Conversation
Contributor
📝 WalkthroughWalkthroughAdds a cached batch selector for runtime agent orchestration across worktrees, including pane attribution, live and retained agent sources, cache invalidation, and reference reuse. Dashboard snapshots now use batch selection for multiple active worktrees, singleton selection for one, and release behavior for zero. New tests cover routing, metadata propagation, cache lifecycle, attribution parity, operation counts, and runtime scan reuse. 🚥 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 |
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
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.
Description
two or more unarchived worktrees, instead of rescanning the global runtime map
for every dashboard card.
preserve runtime order, duplicate-tab fanout, parent-pane attribution, and
exact-key live/retained attribution.
releases the batch cache, and a one-worktree snapshot uses the legacy selector
exactly; only the multi-worktree path batches.
cache state to the latest source generation.
ELI5
The dashboard used to reread the same global agent address book once for every
worktree card. It now reads that address book once and sorts the answers into the
requested cards. A dashboard with only one card still takes the original path,
so the optimization does not make that small case heavier.
Proof of zero regression
singleton slowdown. The final production route sends zero/one-worktree
snapshots through the empty/legacy paths and batches only two or more
worktrees; the same reviewer found no remaining correctness, lifecycle,
platform, or material performance issue.
live/retained lookup, parent panes, archived filtering, partial store mocks,
SSH-before-tab attribution, cache transitions, and bounded cache ownership.
tests were skipped by the existing suite.
formatting, max-lines ratchet, localization catalog/coverage, and
git diff --checkpassed.reliability gates, max-lines, and bundled-guide checks. Its only failure was
the released
orca-clirevision-9 skill-manifest blocker, reproducedidentically on clean
origin/main; this diff changes no skill files.commands, provider behavior, or native dependencies. macOS, Linux, Windows,
WSL, SSH, relay, and runtime hosts continue to supply the same immutable store
snapshots.
Proof of performance improvement
buildDashboardSnapshotbenchmark, seven alternating runs of 5,000live-status invalidations with 128 runtime contexts:
faster.
noise and independently confirmed as no material regression.
24 to 1 and runtime-context visits fall from 3,072 to 128 (95.83% fewer).
churn rescans the 128 runtime contexts once while retaining the requested tab
membership index.
useWorktreeAgentRowsand its existingper-worktree selector are intentionally unchanged, so mounted consumers that
do not receive dashboard-precomputed rows retain their prior per-consumer
scan cost.