Conversation
…lure Carry the held-event limits and lazy flush from #481 onto current upstream dev. Close the source review finding by routing read/limit failures through shared pre-execution leg cleanup. Add stream lifecycle regressions and document the UTF-16 accounting boundary. Source commit: 1efcfad Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe web-search bridge now bounds held client-tool events per leg, releases them lazily, and uses shared cleanup for read failures and exhausted continuation budgets. Tests cover limits, cancellation, ordering, terminal handling, and search-cell closure. ChangesPassthrough bridge lifecycle
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to No actionable merge risk is identified from the available evidence; proceed with normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Git: CodeRabbit could not clone the repository, so clone-backed analysis was skipped and this review may be incomplete. Verify repository clone access, such as SSH credentials, before requesting another full review. If clone access is intentionally unavailable, use 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 |
|
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. Automatic ready-for-review conversion failed; please mark the pull request ready manually if it is still a draft. |
|
Publication verification at head
|
리뷰 · 우선순위 73 / 80이 PR은 web-search 패스스루 브리지가 leg 운명이 정해지기 전에 보류(withheld)하는 클라이언트 툴 이벤트를 개수(1,000)와 SSE data 페이로드 UTF-16 코드유닛(8,388,608)으로 묶고, upstream read/limit 실패·continuation 예산 소진 시 이미 보여 준 search cell을 닫는 공통 UTF-16 code unit 카운트는 바이트/힙 총량이 아니라고 주석·structure에 명시돼 있어, 운영자가 “8MiB RSS 캡”으로 오해하지 않게 한 점은 좋습니다. 한도 초과 throw가 bridgeStreamBlocks catch → failLegFrames로 이어져 cell을 닫는지도 테스트(
메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com>
5d922e8 to
0abc196
Compare
|
Carried in #4801 on the current dev head with your commit and a Co-authored-by trailer preserved. Two changes on top: the 1,000-event bound counts every held function_call_arguments delta, so a sizeable client-executed apply_patch streamed as fine-grained deltas could cross it and the leg would discard a legitimate tool call — the count is re-derived from the 8 MiB code-unit budget that is the real memory guard, with the derivation stated; and overflow now reports as a proxy-side bound rather than through the upstream-read-failure message. Cancelling the run on this head so the carry gets the macOS runners. |
…vents (#4775, #4743) (#4801) Maintainer integration for the 2.57.0 stabilization scope. Exact head 14b4d30 has a green aggregate ci check with no failing job. Carries #4775 and #4743 with their review fixes. The #4743 event bound was raised because the original 1,000 counted every held argument delta, so a sizeable client-executed apply_patch could cross it and the leg would discard a legitimate tool call; the count is now derived from the code-unit budget that is the real memory guard, and overflow reports as a proxy-side bound instead of blaming the upstream read. Host-owned merge decision; no local suite, typecheck, build, or install was run.
|
Landed through #4801 with your commit and attribution preserved, with the event bound re-derived and the overflow message corrected. |
…vents (lidge-jun#4775, lidge-jun#4743) (lidge-jun#4801) Maintainer integration for the 2.57.0 stabilization scope. Exact head 14b4d30 has a green aggregate ci check with no failing job. Carries lidge-jun#4775 and lidge-jun#4743 with their review fixes. The lidge-jun#4743 event bound was raised because the original 1,000 counted every held argument delta, so a sizeable client-executed apply_patch could cross it and the leg would discard a legitimate tool call; the count is now derived from the code-unit budget that is the real memory guard, and overflow reports as a proxy-side bound instead of blaming the upstream read. Host-owned merge decision; no local suite, typecheck, build, or install was run.
Summary
The hosted web-search bridge can retain an unbounded number of client-tool events while waiting to decide a leg's outcome. If the upstream reader then fails, search cells already shown to the client can remain open. This change bounds the retained events and closes those cells before emitting the failed terminal.
response.failedand one[DONE]. No search execution or continuation follows that failure.Coverage includes index-only and item-ID-only delta floods, repeated added-item events, aggregate character overflow with small frames, closure of two opened search cells, a throwing upstream reader, exact acceptance of 1,000 held events with lossless arguments and monotonic numbering, and failed/incomplete terminal controls. Pull-driven fixtures assert upstream cancellation without a live provider.
Verification
Validated after merging upstream
devat5e3029e6fdcc85e3ed3c6963b74c554df6bc9bd3; candidate headf7204e0dad4cdceb8dd5d0d9d4e04c048ec1d7a7.bun test tests/web-search/web-search-progress-stream.test.ts tests/web-search/web-search-passthrough-bridge.test.ts --timeout 20000— 98 tests, 441 assertions.Checklist
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
All CI tests are green on my local testing. Exact-head run 35082021781 on 0abc196 passed all 26 jobs; all jobs passed on the first attempt.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings. No unresolved current review threads remain.
My PR is ready for review.
Summary by CodeRabbit
Bug Fixes
Documentation
Tests