Skip to content

feat(connect): support Google AI Ultra plan order, icon, and sign-in default model - #1967

Merged
Hona merged 3 commits into
devfrom
upstream-f/up-364-google-ai-plan
Dec 1, 2026
Merged

Hona merged 3 commits into
devfrom
upstream-f/up-364-google-ai-plan

Conversation

@Hona

@Hona Hona commented Dec 1, 2026

Copy link
Copy Markdown
Member

Ports the app/ui portion of official anomalyco/opencode#67447 (feat(core): Sign in with Google to use your Google AI Ultra plan, commit 3df2df7160).

Summary

  • Provider icon (crates/opencode-ui/src/{provider_mark,widgets}.rs, features/connect/src/ui.rs): Add GOOGLE_AI_PLAN (viewBox 0 0 40 40, exact SVG from packages/ui/src/assets/icons/provider/google-ai-plan.svg) and resolve google-ai-plan across provider marks.
  • Popular providers order (crates/session-view/src/pickers/host.rs, features/connect/src/view.rs, features/settings/src/pages/{models,providers}.rs): Add google-ai-plan after opencode in POPULAR, matching packages/app/src/providers/catalog/order.ts.
  • Sign-in default model & variant (features/connect/src/{dialog,run,lib}.rs, apps/desktop/src/dialogs/connect.rs): Add ModelChoice { key, variant } to Snapshot.sign_in_model and Effect::Apply; when google-ai-plan finishes signing in and offers gemini-4-hydrogen, close the Connect dialog and select gemini-4-hydrogen (with high variant when offered) instead of opening the Models step (dialog-machine.ts:758-767, controller.ts:33,113-126).

Verification

  • Local scripts/guardrails.ps1: 11/11 passed.
  • Visual scene: --scene connect.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 06:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Hona
Hona merged commit 123ce37 into dev Dec 1, 2026
8 checks passed
@Hona
Hona deleted the upstream-f/up-364-google-ai-plan branch December 1, 2026 07:47
Hona added a commit that referenced this pull request Dec 1, 2026
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.

2 participants