Uh oh!
There was an error while loading. Please reload this page.
fix(mobile): resolve Antigravity provider icon and normalize driver matching - #9495
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:4898a038b9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Uh oh!
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a two-line, mobile-only bug fix with bounded effects: canonical Antigravity driver variants receive the correct icon, while unrelated drivers remain distinct, and incomplete catalog metadata gets a safe fallback. It introduces no schema, deployment, security, billing, or static-analysis changes. You can add or adjust custom eligibility rules. Learn more. |
Invictine
commented
Sep 3, 2026
Updated to address Macroscope review feedback:
|
Uh oh!
There was an error while loading. Please reload this page.
Summary
Fixes an issue where the Antigravity section header in the mobile model picker sheet (
ThreadSettingsSheet) displays the fallback Codex swirl icon instead of the Antigravity logo.Problem & Root Cause
ProviderIcon:ProviderIcon.tsxcheckedprops.provider === "antigravity"using strict case-sensitive equality. If passed uppercase or mixed-case strings ("ANTIGRAVITY","Antigravity"), it fell through to the default Codex swirl SVG.ThreadSettingsSheet: InuseThreadSettingsCatalogItems(ThreadSettingsSheet.tsx),driverwas resolved fromgroup.models[0]?.providerDriver. Ifgroup.models[0]was not yet populated or lackedproviderDriver,driverevaluated toundefined, immediately falling through to the Codex swirl.Changes
apps/mobile/src/components/ProviderIcon.tsx: Case-insensitive and trimmed check for"antigravity"(props.provider?.trim().toLowerCase() === "antigravity").apps/mobile/src/features/threads/ThreadSettingsSheet.tsx: Addgroup.providerKeyfallback whengroup.models[0]?.providerDriveris absent.Note
Low Risk
Localized mobile UI/icon resolution with no auth, data, or routing changes.
Overview
Fixes the mobile model picker showing the default Codex swirl instead of the Antigravity logo for some provider groups.
ProviderIconnow matches Antigravity after trimming and lowercasingprops.provider, so variant casing or stray whitespace no longer miss the dedicated asset.useThreadSettingsCatalogItemsinThreadSettingsSheetresolves the headerdriverfrom the first model’sproviderDriver, and falls back togroup.providerKeywhen that field is missing so icon selection still runs before models are fully populated.Reviewed by Cursor Bugbot for commit d1f930a. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Fix Antigravity provider icon matching and normalize driver fallback in
useThreadSettingsCatalogItemsProviderIcontrim whitespace and compare case-insensitively so the correct icon displays despite minor value variationsuseThreadSettingsCatalogItemsto use the provider group key when the first model in a catalog group has no provider driver, so primary-provider status is still determined correctlyMacroscope summarized d1f930a.