Repository navigation
Conversation
Branch and repository inventories share one page collector with a fixed page ceiling, and it logs a warning when it stops at that ceiling. Review-thread comment follow-ups are capped per thread and per request, with a small concurrency limit, so one review-threads call performs a fixed amount of provider work and keeps a bounded response.
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryThe incremental commit routes Assumptions: Files Reviewed (2 files)
Notes
Previous Review Summaries (4 snapshots, latest commit be63fbf)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit be63fbf)Status: No Issues Found | Recommendation: Merge Executive SummaryThe incremental commit adds a Overview
Files Reviewed (5 files)
Notes
Previous review (commit 874b067)Status: 1 Issue Found | Recommendation: Address before merge Executive SummaryThe incremental commit corrects the budget documentation, but review-thread truncation still reaches clients with no signal, so the mobile thread header understates long threads. Overview
Issue Details (click to expand)WARNING
Files Reviewed (2 files)
Notes
Fix these issues in Kilo Cloud Previous review (commit c178cce)Status: 3 Issues Found | Recommendation: Address before merge Executive SummaryThe incremental commit resolves the nondeterministic budget race and the false ceiling warning, but review-thread truncation still has no client-visible signal and the follow-up budget constant's documentation now describes behavior the code no longer has. Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (7 files)
Notes
Fix these issues in Kilo Cloud Previous review (commit 5eed81d)Status: 4 Issues Found | Recommendation: Address before merge Executive SummaryThe page/budget ceilings are implemented correctly and covered by focused tests, but review-thread truncation is invisible to clients and silently understates the comment count shown by the mobile discussion UI. Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (6 files)
Notes
Reviewed by deepseek-flash-latest · Input: 36.4K · Output: 6.2K · Cached: 540.4K Review guidance: REVIEW.md from base branch |
Review-thread follow-up comments are now divided evenly across the page's threads before any request runs, so identical responses give identical results, and each request asks only for the comments it keeps. The listing collector reads GitHub's Link header and warns at its page ceiling only when the provider still reports another page.
The budget comment now states how the request limits are divided.
Each review thread now reports whether the response carries all of its comments, so a client can present a long thread as partial instead of as the whole list.
Route the inline review comment listing through the shared bounded page collector, with the same page ceiling the bot review-comment scan already uses, and cover the ceiling with mocked full pages.
|
bot: Review-thread reads must keep following every page until the provider reports no next page, because the thread contract promises the complete comment list and a test pins it. Address provider cost at the call site with a visible partial-result signal, never with a silent ceiling. |
Pull request was closed
Change
Branch, repository, maintenance repository, and inline review-comment reads in the GitHub adapter share one bounded page collector. Each call reads at most the page count its listing configures (10 for branches, 50 for repositories, 5 for inline review comments) and returns the entries it read; when the provider still advertises a following page at that point, it logs a warning. Return types are unchanged, so existing callers keep working.
Review-thread enrichment keeps a per-thread page limit of 5. The request's 500-comment follow-up allowance is split evenly across the page's threads before any request runs, each request asks only for the comments its allowance keeps, and at most 5 requests are in flight, so identical responses produce identical results. Each thread reports
commentsTruncatedso a client can present a long thread as partial.Tests
adapter.pagination.test.ts: with provider pages of 100 entries, a branch listing makes 10 page requests, a repository listing makes 50, and an inline review-comment listing makes 5; a short page ends a listing early; the warning appears only when a full page still advertises a following page; archived repositories stay filtered; the inline review-comment mapping keepsline, author, and outdated state.review-thread-comments.test.ts: the per-thread page limit, a request that asks only for the comments its allowance keeps, the 5-request concurrency limit, the even 500-comment split repeating identically across runs, and thetruncatedresult for complete and partial threads.github-pr-review-router.test.ts: onelistReviewThreadscall over 50 threads returns 500 follow-up comments — 10 per thread — after one request per thread, each markedcommentsTruncated.Verification
pnpm exec jestoversrc/lib/integrations,src/lib/github-pr-review,src/lib/bot/platforms/github.test.ts,src/lib/code-reviews/triggers/prepare-review-payload.test.ts,src/lib/cloud-agent/provider-branch-listing.test.ts, and the GitHub Apps and PR-review routers: 89 suites, 1342 tests passed, 1 pre-existing skip.githubApps.listRepositoriesreturned 4,950 repositories from 50 page requests,githubApps.listBranchesreturned 1,000 branches from 10,githubPrReview.listReviewThreadsreturned 60 comments per thread for a page of 50 threads with one follow-up request per thread and at most 5 in flight, and a single thread returned 300 comments from 5 follow-up requests.commentsTruncated: true.tsgo --noEmitexit 0;oxlinton the changed files: 0 warnings, 0 errors;oxfmt --list-different: no differences.Proxy answers
The owner's proxy gave these answers in the owner's place.
fetchGitHubBranches/fetchGitHubRepositoriesdo? (fetchGitHubRepositoriesreturnsGitHubRepository[]to an excluded-feature caller, so a return-shape change is not available for it.)Answer: Truncate + warn log
Confidence: 0.70
Answer: 10 pages branches / 50 pages repos
Confidence: 0.60
listReviewThreadsenrichment?Answer: 5 pages/thread, 500/request, concurrency 5
Confidence: 0.60
fetchGitHubRepositoriesForMaintenancecarry the same page ceiling?Answer: Yes, same ceiling
Confidence: 0.85