Skip to content

fix: address PR #2685 review comments - #2687

Merged
mikib0 merged 1 commit into
developmentfrom
fix/pr-2685-review-comments
Aug 10, 2026
Merged

fix: address PR #2685 review comments#2687
mikib0 merged 1 commit into
developmentfrom
fix/pr-2685-review-comments

Conversation

@mikib0

@mikib0 mikib0 commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Addresses the CodeRabbit review comments on #2685 that land on code added in this release. Two findings, both valid.

1. packrat_list_pack_items advertised a bogus nextOffset

Real bug, not just a style nit. The handler passed limit: items.length into withNextOffset, whose continuation check is items.length >= limit — true for every response, including an empty pack, which returned nextOffset: 0. A consumer that follows nextOffset could call the tool repeatedly or duplicate items.

This endpoint accepts only pack_id and returns every item in one response, so there is never a next page. It now returns nextOffset: null directly instead of routing through withNextOffset. The comment explains the reasoning so it doesn't get "simplified" back into the helper later.

2. /support bypassed the canonical support contract

The page hardcoded support@packratai.com, but apps/landing/config/site.ts defines siteConfig.support.email as hello@packratai.com and __tests__/legal.pages.test.ts asserts that value. The page now renders siteConfig.support.email / .mailto.

⚠️ Visible change: the support page now shows hello@packratai.com, matching the canonical config and the address given in the Anthropic submission.

Also refreshes the now-stale comment in site.ts that said "we don't run a separate support web page yet."

Not addressed here

The other 8 CodeRabbit findings on #2685 are on the Swift outbox / APIClient work from #2673, #2674 and #2676 — retry backoff and 429/408 classification, local- legacy ID migration, removing unreachable throws, displayMessage whitespace trimming. Several involve real design calls, so they're left to those authors rather than guessed at.

Testing

  • bun test:mcp1273 pass, 23 skipped
  • tsc + biome clean on all three files
  • The one failing landing test (terms-of-service robots metadata) is pre-existing on development and unrelated — verified by re-running it with these changes stashed.

Two valid findings, both on code added in this release.

1. packrat_list_pack_items advertised a bogus nextOffset. Passing
   `limit: items.length` to withNextOffset made its `items.length >= limit`
   check true for every response — including an empty pack, which returned
   `nextOffset: 0`. A consumer following that value could call the tool
   repeatedly or duplicate items. The endpoint takes only pack_id and returns
   every item in one response, so there is never a next page: return
   `nextOffset: null` directly and don't route it through withNextOffset.
   Comment explains why, so this isn't 'simplified' back later.

2. /support hardcoded support@packratai.com, bypassing the canonical
   siteConfig.support contract (hello@packratai.com, asserted by
   __tests__/legal.pages.test.ts). Render siteConfig.support.email/.mailto
   instead. Also refreshes the now-stale site.ts comment that said we don't
   run a support web page.

The remaining CodeRabbit findings are on the Swift outbox/APIClient work from
other PRs in this release and are left to those authors.

MCP tests 1273 pass; tsc + biome clean. The one failing landing test
(terms-of-service robots metadata) is pre-existing on development and
unrelated.
@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@mikib0, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 30 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: a227e27b-1eb6-440b-9dea-ecffbb42f32e

📥 Commits

Reviewing files that changed from the base of the PR and between dc2c9a4 and e628815.

📒 Files selected for processing (3)
  • apps/landing/app/support/page.tsx
  • apps/landing/config/site.ts
  • packages/mcp/src/tools/packs.ts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the web label Aug 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report for packages/units (./packages/units)

Status Category Percentage Covered / Total
🟢 Lines 100% (🎯 100%) 35 / 35
🟢 Statements 100% (🎯 100%) 35 / 35
🟢 Functions 100% (🎯 100%) 6 / 6
🟢 Branches 100% (🎯 100%) 11 / 11
File CoverageNo changed files found.
Generated in workflow #599 for commit e628815 by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report for packages/overpass (./packages/overpass)

Status Category Percentage Covered / Total
🟢 Lines 100% (🎯 80%) 155 / 155
🟢 Statements 100% (🎯 80%) 155 / 155
🟢 Functions 100% (🎯 80%) 13 / 13
🟢 Branches 95.65% (🎯 70%) 44 / 46
File CoverageNo changed files found.
Generated in workflow #599 for commit e628815 by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report for apps/expo (./apps/expo)

Status Category Percentage Covered / Total
🟢 Lines 97.64% (🎯 95%) 623 / 638
🟢 Statements 97.64% (🎯 95%) 623 / 638
🟢 Functions 100% (🎯 97%) 52 / 52
🟢 Branches 95.19% (🎯 92%) 218 / 229
File CoverageNo changed files found.
Generated in workflow #599 for commit e628815 by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report for packages/api (./packages/api)

Status Category Percentage Covered / Total
🟢 Lines 99.01% (🎯 95%) 1906 / 1925
🟢 Statements 99.01% (🎯 95%) 1906 / 1925
🟢 Functions 100% (🎯 97%) 100 / 100
🟢 Branches 97.08% (🎯 92%) 665 / 685
File CoverageNo changed files found.
Generated in workflow #599 for commit e628815 by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report for packages/analytics (./packages/analytics)

Status Category Percentage Covered / Total
🟢 Lines 100% (🎯 80%) 745 / 745
🟢 Statements 100% (🎯 80%) 745 / 745
🟢 Functions 100% (🎯 85%) 48 / 48
🟢 Branches 87.35% (🎯 80%) 152 / 174
File CoverageNo changed files found.
Generated in workflow #599 for commit e628815 by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report for packages/mcp (./packages/mcp)

Status Category Percentage Covered / Total
🟢 Lines 99.28% (🎯 80%) 4316 / 4347
🟢 Statements 99.28% (🎯 80%) 4316 / 4347
🟢 Functions 100% (🎯 80%) 101 / 101
🟢 Branches 98.35% (🎯 80%) 597 / 607
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/mcp/src/tools/packs.ts 98.87% 95% 100% 98.87% 252-257
Generated in workflow #599 for commit e628815 by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report for packages/utils (./packages/utils)

Status Category Percentage Covered / Total
🟢 Lines 100% (🎯 100%) 92 / 92
🟢 Statements 100% (🎯 100%) 92 / 92
🟢 Functions 100% (🎯 100%) 1 / 1
🟢 Branches 100% (🎯 100%) 1 / 1
File CoverageNo changed files found.
Generated in workflow #599 for commit e628815 by the Vitest Coverage Report Action

@mikib0
mikib0 merged commit ce90c76 into development Aug 10, 2026
21 checks passed
@mikib0
mikib0 deleted the fix/pr-2685-review-comments branch August 10, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant