[WRONG BRANCH] fix(vision): bound validation error prompts - #201
Conversation
|
Warning Review limit reached
Next review available in: 21 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Comment |
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Its title has been prefixed with |
Motivation
Description
MAX_MIME_CHARS(127) bound invalidateImageUrl()and return a small canonical error ("invalid image media type") for oversized or syntactically invalid media types (file:src/vision/describe.ts).boundedError()insrc/vision/index.tsto strip control characters and clamp error text toDESC_MAX_CHARS, and use it when rendering sidecar errors so they cannot expand the upstream prompt.tests/vision-cache.test.tsthat verifies oversized data-URL media types are rejected without echoing long input and that thrown/sidecar errors are sanitized and size-bounded.Testing
node_modules/@oven/bun-linux-x64-baseline/bin/bun test tests/vision-cache.test.ts— passed (focused regression tests succeeded).PATH="$PWD/node_modules/@oven/bun-linux-x64-baseline/bin:$PATH" bun run test— passed (full test suite run with the pinned baseline Bun binary succeeded).bun run typecheck— succeeded (typecheck passed).bun run privacy:scan— succeeded (privacy scan passed).bun test tests/vision-cache.test.ts) was an older runtime (1.2.14) which produced an unrelatednode:zlibexport mismatch, so the repository-pinned Bun binary was used for reliable test execution.Codex Task