perf(tools): resolve tool-choice catalogs in linear time - #2335
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughTool-choice resolution now uses a reusable indexed resolver. Adapters delegate filtering to shared predicates, response parsing uses resolver candidate counts, and tests cover ambiguous names, catalog mutations, and barrel export identity. ChangesTool-choice resolution
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This PR improves tool-choice resolution performance while preserving lookup behavior and passes the listed validation checks; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
✅ Deterministic PR hygiene checks passed. |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request is already Ready for Review. |
리뷰 · 우선순위 57 / 80설명: 이 PR은 도구 선택(tool_choice)을 검사할 때, 도구 목록을 매번 처음부터 다시 훑지 않도록 한 번 인덱스로 모아 두는 성능 개선이다. 지금 CURRENT src/types/tools.ts toolChoiceCandidates/toolAllowedByChoice - 공개 함수는 호출마다 전체 인덱스를 다시 만들어, predicate/parser만 컴파일 공유가 된다 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
f07b852 to
29acc67
Compare
29acc67 to
e418f91
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
011 records work-phase 1: four green PRs merged (lidge-jun#2309, lidge-jun#2339, lidge-jun#2335, lidge-jun#2313), lidge-jun#2359 held on a reproduced test failure, a correction to 001 (dev IS protected, by rulesets rather than classic branch protection), and an honest incident record of a hard reset that dropped an unpushed commit and how it was recovered. 090 records work-phase 9, the four PRs that arrived mid-loop. lidge-jun#2361 merged; lidge-jun#2362, lidge-jun#2363 and lidge-jun#2364 left open with their blockers restated. Two of those verdicts rest on falsification rather than diff reading: lidge-jun#2363's tests still pass with its real call site deleted, and lidge-jun#2364's second commit deleted the management validation its first commit added. It also records a CodeRabbit finding that was dismissed as wrong on the evidence.
Summary
Verification
ced9a85c5a44ec13bb68f8a008bb00fe004cda20e418f91a7af34d2dcfbb35e6a2c8bf9c5ed4c47e68da99268d8089a5c58dba5fd8384a42a64256b3exactly.1.4.0-canary.1(9fcdea80b): the isolated performance and barrel regressions passed 21/21 with 44 assertions on the exact head.finally; the exact-head run used--isolate.bun run typecheck: passed on the exact head.bun run privacy:scan: passed on the exact head.git diff --check origin/dev...HEAD: passed on the exact head.Checklist
Review readiness checklist