Repository navigation
perf(renderer): share retained TabBar projections - #10094
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 (4)
📝 WalkthroughWalkthroughTab bar projection logic now uses reusable projection helpers and a cached selector gated by experimental native chat. The selector normalizes inputs, preserves referential equality for unchanged projections, tracks projection scans through optional callbacks, and exposes a default instance. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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 |
Description
ELI5
Previously, every retained tab strip reread the same two address books whenever Orca published state. Now the first strip makes one small answer sheet and the others reuse it. If native chat is off, Orca does not open either address book at all.
Proof of zero regression
pnpm test: 3,258 files and 34,732 tests passed; 7 files and 57 tests retain the suite's existing skips.pnpm run typecheck: node, CLI, and web projects passed.git diff --checkpassed.TabBar.Known unrelated baseline gates:
pnpm run lintreaches the pre-existingverify:skill-bundle-manifestfailure for releasedorca-clirevision 9 history.verify:localization-catalogreports pre-existing missing keys inNewWorkspaceComposerCard.tsx,SshHostAdvancedFields.tsx, andsleep-worktree-flow.ts.Proof of performance improvement
Deterministic local benchmark: 100 retained consumers, 500 statuses, 250 layouts, 5 trials.
The tracked deterministic tests enforce the operation-count result. The cache retains only the latest input/output tuple and drops raw and derived references when native chat is disabled.