Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): resume Antigravity threads without repeated sign-in #9647

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/9647/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 5 changed files with 62 additions and 8 deletions (loading 2).

x
0 of 5 viewed, 5 left
36 additions and 0 deletionsapps/web/src/components/chat/ProviderStatusBanner.test.tsxModified
View file
@@ -28,6 +28,42 @@
​
describe("ProviderStatusBanner", () => {
+ it("waits for an Antigravity auth result before showing a sign-in warning", () => {
+ const status: ServerProvider = {
+ ...warningProvider(),
+ instanceId: ProviderInstanceId.make("google_work"),
+ driver: ProviderDriverKind.make("antigravity"),
+ auth: { status: "unknown" },
+ message: "Antigravity is installed. Google account access is not checked yet.",
+ };
+​
+ expect(shouldShowProviderStatusBanner(status, null)).toBe(false);
+ expect(
+ shouldShowProviderStatusBanner(
+ {
+ ...status,
+ auth: { status: "unauthenticated" },
+ message: "Sign in with Google to use Antigravity.",
+ },
+ null,
+ ),
+ ).toBe(true);
+ });
+​
+ it("shows Antigravity installation and startup failures before auth is checked", () => {
+ const status: ServerProvider = {
+ ...warningProvider(),
+ driver: ProviderDriverKind.make("antigravity"),