Skip to content

refactor: retire Gemini CLI account preview - #3062

Merged
Astro-Han merged 3 commits into
mainfrom
refactor/3054-retire-gemini-cli-preview
Aug 15, 2026
Merged

Astro-Han merged 3 commits into
mainfrom
refactor/3054-retire-gemini-cli-preview

Conversation

@Astro-Han

@Astro-Han Astro-Han commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • remove the non-executable gemini-cli provider from Core, generated metadata, Desktop settings, preload, and OAuth IPC
  • remove the provider-wide preview/unavailable adapter contract that lost its only consumer; every maintained OAuth provider now uses the normal executable auth and readiness paths
  • reject new Gemini CLI account connections while preserving the ordinary google Gemini API-key provider
  • filter legacy persisted gemini-cli entries from the active connection catalog and clear a retired default target; the next catalog mutation writes the maintained set
  • preserve retired connection identities during migration so duplicate ids or slugs still fail closed before credential resolution
  • update current credential-boundary documentation while retaining historical/upstream-only references

Fixes #3054

Verification

  • node --test packages/storage/dist/__tests__/runtime-policy-stores.test.js — 41 passed
  • focused Core suites for codecs, auth, readiness, onboarding, and task submission — 39 passed
  • focused Runtime provider/conformance suites — 152 passed
  • focused Desktop readiness and model-catalog suites — 22 passed
  • npm run typecheck --workspace=@maka/core
  • npm run typecheck --workspace=@maka/runtime
  • npm run typecheck --workspace=@maka/runtime-host
  • npm run typecheck --workspace=@maka/desktop
  • Biome check on all 24 files in the follow-up simplification commit
  • git diff --check

The create-boundary test failed before removal because gemini-cli was still registered. The duplicate-identity migration test then failed before the follow-up fix because retired records were filtered before uniqueness validation.

Migration

Older connection-catalog.json files may contain a gemini-cli entry. Reads validate its persisted id and slug, preserve catalog-wide identity uniqueness, omit the retired entry from the active snapshot, and clear the default target only when it referenced the retired connection. The raw file remains recoverable until the next catalog mutation writes the canonical supported set.

Checklist

  • Tests cover the change and fail without it
  • Lint, format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

AI assistance

Codex implemented the change, added the focused tests, and ran the checks listed above. Three independent AI reviewers performed adversarial deletion, migration, and holistic architecture reviews; Codex reproduced and fixed the concrete identity-collision finding and removed the now-unneeded preview contract. The human contributor approved the retirement decision and will review the final diff and commit messages before merge.

Remove the non-executable gemini-cli provider from Core metadata and Desktop OAuth surfaces. Retire legacy persisted entries at the connection-catalog boundary without blocking supported connections, while preserving the ordinary Google API-key provider.

Generated-by: Codex
@coderabbitai

coderabbitai Bot commented Aug 15, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 13 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

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: CHILL

Plan: Pro Plus

Run ID: 964b981c-32c6-45b7-be7a-4833003ac6f0

📥 Commits

Reviewing files that changed from the base of the PR and between 820a47b and 06f1f90.

⛔ Files ignored due to path filters (1)
  • packages/core/src/model-metadata.generated.ts is excluded by !**/*.generated.*
📒 Files selected for processing (41)
  • README.md
  • README.zh-CN.md
  • SECURITY.md
  • apps/desktop/src/main/__tests__/runtime-host-oauth-ipc-main.test.ts
  • apps/desktop/src/main/chat-readiness.ts
  • apps/desktop/src/main/runtime-host-oauth-ipc-main.ts
  • apps/desktop/src/preload/bridge-contract.d.ts
  • apps/desktop/src/preload/preload.ts
  • apps/desktop/src/renderer/locales/conversation-copy.ts
  • apps/desktop/src/renderer/locales/settings-provider-copy.ts
  • apps/desktop/src/renderer/model-catalog-choices.ts
  • apps/desktop/src/renderer/settings/provider-add-form.tsx
  • apps/desktop/src/renderer/settings/provider-brand-marks.tsx
  • apps/desktop/src/renderer/settings/provider-connection-detail.tsx
  • apps/desktop/src/renderer/settings/provider-display-copy.ts
  • apps/desktop/src/renderer/settings/use-connection-detail.ts
  • apps/desktop/src/renderer/settings/use-oauth-login-flow.ts
  • apps/desktop/stories/settings/provider-settings.stories.tsx
  • packages/core/src/__tests__/onboarding.test.ts
  • packages/core/src/__tests__/provider-auth.test.ts
  • packages/core/src/__tests__/runtime-policy-codec.test.ts
  • packages/core/src/chat-model-choice.ts
  • packages/core/src/connection-error-copy.ts
  • packages/core/src/connection-readiness.ts
  • packages/core/src/llm-connections.ts
  • packages/core/src/model-metadata.ts
  • packages/core/src/model-web-search.ts
  • packages/core/src/onboarding.ts
  • packages/core/src/provider-auth.ts
  • packages/core/src/provider-contract-matrix.ts
  • packages/core/src/provider-registry.ts
  • packages/core/src/task-submission-readiness.ts
  • packages/runtime-host/src/server/execution-model-authority.ts
  • packages/runtime/src/__tests__/responses-wire-contract.test.ts
  • packages/runtime/src/model-factory.ts
  • packages/runtime/src/model-runtime.ts
  • packages/runtime/src/test-connection.ts
  • packages/storage/src/__tests__/runtime-policy-stores.test.ts
  • packages/storage/src/runtime-policy/connection-catalog-document.ts
  • packages/ui/src/chat-model-helpers.ts
  • scripts/sync-model-metadata.mjs

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

@Astro-Han
Astro-Han marked this pull request as ready for review August 15, 2026 10:48
@Astro-Han
Astro-Han requested a review from M4n5ter August 15, 2026 12:07

@M4n5ter M4n5ter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Astro-Han
Astro-Han merged commit 104fae4 into main Aug 15, 2026
19 of 20 checks passed
@Astro-Han
Astro-Han deleted the refactor/3054-retire-gemini-cli-preview branch August 15, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retire the Gemini CLI / Antigravity preview

2 participants