The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 23:15 UTC
fix(web): show unchecked Antigravity sign-in neutrally (#18623)
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
fixfon committed
Oct 20, 2026 at 07:55 UTC
b178359fae674852b3e6865c348f92db4ae7b297
3 files changed
+118
-6
apps/web/src/components/settings/ProviderInstanceCard.tsx
+4
-5
@@ -66,9 +66,9 @@ import { readCodexSetupMode } from "./CodexSetupSection.logic";
66
import {
67
getProviderVersionAdvisoryPresentation,
68
PROVIDER_STATUS_STYLES,
69
+ getProviderStatusKey,
70
getProviderSummary,
71
getProviderVersionLabel,
71
- type ProviderStatusKey,
72
} from "./providerStatus";
73
74
const ENVIRONMENT_VARIABLE_NAME_PATTERN = /^[a-zA-Z_][a-zA-Z0-9_]*$/;
@@ -645,13 +645,12 @@ export function ProviderInstanceCard({
645
projectOverride,
646
}: ProviderInstanceCardProps) {
647
const enabled = projectOverride?.effectiveEnabled ?? resolveProviderInstanceEnabled(instance);
648
+ const effectiveProvider = liveProvider && { ...liveProvider, enabled };
649
const compatibility = enabled ? liveProvider?.compatibilityAdvisory : undefined;
649
- const statusKey: ProviderStatusKey = enabled
650
- ? ((liveProvider?.status as ProviderStatusKey | undefined) ?? "warning")
651
- : "disabled";
650
+ const statusKey = enabled ? getProviderStatusKey(effectiveProvider) : "disabled";
651
const statusStyle = PROVIDER_STATUS_STYLES[statusKey];
652
const summary = enabled
654
- ? getProviderSummary(liveProvider && { ...liveProvider, enabled: true })
653
+ ? getProviderSummary(effectiveProvider)
654
: { headline: "Disabled", detail: null };
655
const authEmail = liveProvider?.auth.email?.trim();
656
const isAuthenticated = enabled && liveProvider?.auth.status === "authenticated";
apps/web/src/components/settings/providerStatus.test.ts
+85
-1
@@ -1,7 +1,11 @@
1
import { ProviderDriverKind, ProviderInstanceId, type ServerProvider } from "@t3tools/contracts";
2
import { describe, expect, it } from "vite-plus/test";
3
4
-import { getProviderSummary, getProviderVersionAdvisoryPresentation } from "./providerStatus";
4
+import {
5
+ getProviderSummary,
6
+ getProviderVersionAdvisoryPresentation,
7
+ getProviderStatusKey,
8
+} from "./providerStatus";
9
10
const provider: ServerProvider = {
11
instanceId: ProviderInstanceId.make("codex"),
@@ -70,6 +74,86 @@ describe("getProviderSummary", () => {
74
});
75
});
76
77
+describe("Antigravity with unchecked sign-in", () => {
78
+ const unchecked: ServerProvider = {
79
+ ...provider,
80
+ instanceId: ProviderInstanceId.make("antigravity"),
81
+ driver: ProviderDriverKind.make("antigravity"),
82
+ status: "warning",
83
+ auth: { status: "unknown" },
84
+ message: "Antigravity is installed. Google account access is not checked yet.",
85
+ };
86
+
87
+ it("presents an unchecked Google sign-in neutrally without claiming authentication is required", () => {
88
+ for (const auth of [unchecked.auth, { status: "unknown", type: "oauth-personal" }] as const) {
89
+ const candidate = { ...unchecked, auth };
90
+ expect.soft(getProviderSummary(candidate)).toEqual({
91
+ headline: "Installed · Sign-in not checked",
92
+ detail: unchecked.message,
93
+ });
94
+ expect(getProviderStatusKey(candidate)).toBe("neutral");
95
+ }
96
+ });
97
+
98
+ it("preserves actionable warnings, failures and disabled states outside unchecked Google sign-in", () => {
99
+ const cases = [
100
+ {
101
+ name: "confirmed sign-out",
102
+ change: { auth: { status: "unauthenticated" } },
103
+ headline: "Not authenticated",
104
+ status: "warning",
105
+ },
106
+ {
107
+ name: "warning despite known authentication",
108
+ change: { auth: { status: "authenticated" } },
109
+ headline: "Needs attention",
110
+ status: "warning",
111
+ },
112
+ {
113
+ name: "probe failure",
114
+ change: { status: "error" },
115
+ headline: "Unavailable",
116
+ status: "error",
117
+ },
118
+ {
119
+ name: "missing CLI",
120
+ change: { installed: false },
121
+ headline: "Not found",
122
+ status: "warning",
123
+ },
124
+ {
125
+ name: "API key authentication",
126
+ change: { auth: { status: "unknown", type: "gemini-api-key" } },
127
+ headline: "Needs attention",
128
+ status: "warning",
129
+ },
130
+ {
131
+ name: "Agent Platform authentication",
132
+ change: { auth: { status: "unknown", type: "agent-platform" } },
133
+ headline: "Needs attention",
134
+ status: "warning",
135
+ },
136
+ {
137
+ name: "another provider",
138
+ change: { driver: provider.driver },
139
+ headline: "Needs attention",
140
+ status: "warning",
141
+ },
142
+ {
143
+ name: "disabled provider",
144
+ change: { enabled: false },
145
+ headline: "Disabled",
146
+ status: "disabled",
147
+ },
148
+ ] as const;
149
+ for (const { name, change, headline, status } of cases) {
150
+ const candidate = { ...unchecked, ...change };
151
+ expect.soft(getProviderSummary(candidate).headline, name).toBe(headline);
152
+ expect.soft(getProviderStatusKey(candidate), name).toBe(status);
153
+ }
154
+ });
155
+});
156
+
157
it("does not suggest copying a command that installs an incompatible latest version", () => {
158
const advisory = {
159
status: "behind_latest" as const,
apps/web/src/components/settings/providerStatus.ts
+29
@@ -11,6 +11,9 @@ export const PROVIDER_STATUS_STYLES = {
11
error: {
12
dot: "bg-destructive",
13
},
14
+ neutral: {
15
+ dot: "bg-muted-foreground",
16
+ },
17
ready: {
18
dot: "bg-success",
19
},
@@ -21,6 +24,26 @@ export const PROVIDER_STATUS_STYLES = {
24
25
export type ProviderStatusKey = keyof typeof PROVIDER_STATUS_STYLES;
26
27
+// Antigravity's local health check verifies installation, not Google sign-in.
28
+// API-key and Agent Platform warnings still need attention.
29
+function isAntigravitySignInUnchecked(provider: ServerProvider): boolean {
30
+ return (
31
+ provider.driver === "antigravity" &&
32
+ provider.installed &&
33
+ provider.status === "warning" &&
34
+ provider.auth.status === "unknown" &&
35
+ (provider.auth.type === undefined ||
36
+ provider.auth.type === "oauth-personal" ||
37
+ provider.auth.type === "oauth-business")
38
+ );
39
+}
40
+
41
+export function getProviderStatusKey(provider: ServerProvider | undefined): ProviderStatusKey {
42
+ if (provider && !provider.enabled) return "disabled";
43
+ if (provider && isAntigravitySignInUnchecked(provider)) return "neutral";
44
+ return provider?.status ?? "warning";
45
+}
46
+
47
export function getProviderSummary(provider: ServerProvider | undefined) {
48
if (!provider) {
49
return {
@@ -48,6 +71,12 @@ export function getProviderSummary(provider: ServerProvider | undefined) {
71
detail: provider.message ?? null,
72
};
73
}
74
+ if (isAntigravitySignInUnchecked(provider)) {
75
+ return {
76
+ headline: "Installed · Sign-in not checked",
77
+ detail: provider.message ?? null,
78
+ };
79
+ }
80
if (provider.status === "warning") {
81
return {
82
headline: "Needs attention",