Skip to content

Commit 9bae5f7

Browse files
committed
fix(providers): retain Antigravity credential display labels
1 parent 30fd5ba commit 9bae5f7

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎apps/server/src/provider/AntigravityProvider.test.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ it.layer(layerTest)("Antigravity provider snapshots", (it) => {
384384
expect(yield* harness.provider.snapshot.getSnapshot).toMatchObject({
385385
installed: true,
386386
status: "warning",
387-
auth: { status: "unauthenticated", type: auth.type },
387+
auth: { status: "unauthenticated", type: auth.type, label: auth.label },
388388
message: "Connect with Gemini API key to use Antigravity and load models.",
389389
models: [],
390390
slashCommands: [],
@@ -398,7 +398,11 @@ it.layer(layerTest)("Antigravity provider snapshots", (it) => {
398398
expect((yield* harness.provider.snapshot.getSnapshot).models).toEqual([]);
399399
}
400400
const refreshed = yield* harness.provider.snapshot.refresh;
401-
expect(refreshed.auth).toEqual({ status: "unauthenticated", type: auth.type });
401+
expect(refreshed.auth).toEqual({
402+
status: "unauthenticated",
403+
type: auth.type,
404+
label: auth.label,
405+
});
402406
expect(refreshed.message).toBe(
403407
"Connect with Gemini API key to use Antigravity and load models.",
404408
);

‎apps/server/src/provider/AntigravityProvider.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ export const makeAntigravityProvider = Effect.fn("makeAntigravityProvider")(func
430430
...state.draft,
431431
auth: {
432432
status: "unauthenticated",
433-
...(usesCredentials ? { type: options.auth.type } : {}),
433+
...(usesCredentials ? options.auth : {}),
434434
},
435435
status: "warning",
436436
message: signInMessage,

0 commit comments

Comments
 (0)