Repository navigation
fix: upgrade Gemini SDK with continuation regressions - #2446
groupthinking wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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 |
✅ E2E Test Results: ALL TESTS PASSED
Test Output |
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF ScorecardScorecard details
Scanned Files
|
There was a problem hiding this comment.
🔵 Needs a closer look
Required exact-head CI, build, and security validation remain unconfirmed in the supplied evidence.
No open issues 🎉
What changed in this PR
Upgrades the direct Gemini SDK and adds offline regression coverage for continuation reliability, addressing #2445 without changing gateway routing or application behavior.
Changes:
- Raises root and web
@google/genaifloors to^2.30.0. - Pins the shared lockfile resolution to
2.30.0. - Adds 12 contract cases covering continuation, grounding, safety termination, error propagation, and request serialization.
| File | Description |
|---|---|
| package.json | Raises the root SDK dependency floor. |
| package-lock.json | Updates both dependency specs and the SDK resolution. |
| apps/web/src/lib/__tests__/gemini-sdk-continuation.test.ts | Adds offline tests using the real SDK with synthetic transport responses. |
| apps/web/package.json | Aligns the web SDK dependency floor. |
Review effort: Balanced
|
Final implementation receipt — October 18, 2026 Head:
Next action: obtain approval identifying PR #2446 or this exact head under the current Watch exact-PR merge rule; then re-fetch head, checks, reviews, mergeability and use expected-head protection to merge. Do not infer production acceptance or live Gemini cost/latency from offline fixtures. No production deployment was initiated manually. |
Canonical issue
Closes #2445
Outcome
Direct Gemini calls can automatically continue generation while retaining grounding references, stopping on prompt feedback, and surfacing genuine provider/transport errors. This raises the installed SDK from 2.24.0 to 2.30.0 and adds offline regressions against its real public API.
Official evidence: Google's 2.30.0 changelog, October 14, 2026, continuation fixes, and grounding reference fixes.
Scope
@google/genaifloor^2.30.0, the single resolved lock entry, and 12 SDK contract cases.Risk
Verification
Published head:
b54bcfef377278f9ad293cb5b698d455744df5d7.Base:
560f07120dee5294da0af0f2aab8eec8b79de8b5.Tested local commit:
ddc21f567572180973a4692eabd1a4def962d60a.Both commits have identical full tree
f52a46dc4b9c0cb777c0a592a9ff7be37681e9ee; the GitHub commit was fetched and its four-file diff verified after publishing through the connector (shell push had no credentials).Node 24.19.0; final validation npm 10.8.0, Vitest 5.0.1.
npx --yes npm@10.8.0 ci --ignore-scripts --no-audit --no-fund— PASS. Reviewed repository patch then explicitly executed withnode apps/web/scripts/patch-world-vercel-undici-fetch.mjs.npx --yes npm@10.8.0 --workspace=apps/web test -- src/lib/__tests__/gemini-sdk-continuation.test.ts src/lib/__tests__/gemini-client.test.ts src/lib/__tests__/gemini-parameters.test.ts src/lib/__tests__/gemini-models.test.ts src/lib/__tests__/gemini-video-analyzer.test.ts— 44 PASS.npm --workspace=apps/web testwith provider/billing credentials blank — 1532 PASS, 28 SKIPPED, zero failures; 171 files pass. Optional Redis integration is not claimed: Redis is unavailable locally.npx --yes npm@10.8.0 --workspace=apps/web run type-check— PASS.../../node_modules/.bin/eslint src/lib/__tests__/gemini-sdk-continuation.test.ts— PASS.git diff --check— PASS.telemetry:false,sourcemaps:{disable:true},release:{create:false,finalize:false}, blankSENTRY_AUTH_TOKEN,SENTRY_DSN,NEXT_PUBLIC_SENTRY_DSN, and setNEXT_TELEMETRY_DISABLED=1; run the same npm build. The first retry found an aborted Turbopack cache, which was moved aside; the clean retry passed. The config was restored infinally, andgit diff --exit-code HEAD -- apps/web/next.config.jsand clean status verified restoration. This is local no-upload validation, not an exact-config production build claim.Production evidence
NOT RUN: live Gemini, production deployment, measured savings/cost, and production acceptance. Vercel reports READY preview on the published head; GitHub commit status
Vercelis success. Remotetest-frontendandE2E Pipeline Testsalso report success. Remaining required checks are still running; these statuses are not a live Gemini acceptance claim. UVAI's gateway route is separate; no gateway reliability improvement is claimed from this direct SDK upgrade.Agent handoff
Receipt: concept_tracker action120 in Neon project round-night-95394081 / neondb; observations259–260. Next: inspect current-head checks, automated review, preview and mergeability; address actionable findings and retain final evidence.