Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions tests/unit/auto-combo-credentialed-model-pool.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ test("credentialed providers expose one logical candidate per visible registry m
);
for (const model of [
"antigravity/claude-sonnet-4-6",
"antigravity/gemini-3-flash-agent",
"antigravity/gemini-3.5-flash-low",
"antigravity/gemini-3.5-flash-extra-low",
"antigravity/gemini-3.6-flash-low",
"antigravity/gemini-3.6-flash-medium",
"antigravity/gemini-3.6-flash-high",
]) {
assert.ok(modelStrings.includes(model), `${model} should be eligible for auto routing`);
}
Expand Down Expand Up @@ -134,8 +134,10 @@ test("connection model exclusions narrow only that model's account allowlist", a
assert.deepEqual(candidate.allowedConnectionIds, [second.id]);
}

const sonnet = candidates.find((candidate) => candidate.model === "antigravity/claude-sonnet-4-6");
assert.ok(sonnet, "Claude Sonnet 4.6 should remain in the candidate pool");
const sonnet = candidates.find(
(candidate) => candidate.model === "antigravity/claude-sonnet-4-6"
);
assert.ok(sonnet, "Claude Sonnet 5 should remain in the candidate pool");
assert.deepEqual([...(sonnet.allowedConnectionIds ?? [])].sort(), [first.id, second.id].sort());
});

Expand All @@ -148,9 +150,9 @@ test("hiding the first registry model does not drop the credentialed provider",

assert.equal(modelStrings.includes("antigravity/claude-sonnet-4-6"), false);
for (const model of [
"antigravity/gemini-3-flash-agent",
"antigravity/gemini-3.5-flash-low",
"antigravity/gemini-3.5-flash-extra-low",
"antigravity/gemini-3.6-flash-low",
"antigravity/gemini-3.6-flash-medium",
"antigravity/gemini-3.6-flash-high",
]) {
assert.ok(modelStrings.includes(model), `${model} should remain after Sonnet is hidden`);
}
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/model-alias-seed.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ test("default model alias seed writes missing aliases and is idempotent", async
assert.equal(aliases["gemini-3-flash-preview"], undefined);

const routed = await sseModelService.getModelInfo("gemini-3.1-pro");
// The stored alias target is "agy/gemini-pro-agent", but getModelInfo canonicalizes
// the "agy" alias to its provider id "antigravity" (ALIAS_TO_PROVIDER_ID, #8013).
assert.deepEqual(routed, {
provider: "antigravity",
model: "gemini-pro-agent",
Expand Down
9 changes: 6 additions & 3 deletions tests/unit/t31-t33-t34-t38-model-specs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ const {
capThinkingBudget,
} = await import("../../src/shared/constants/modelSpecs.ts");

test("T31: antigravity static catalog exposes client-visible Gemini model IDs", () => {
// Antigravity's static catalog surfaces the live, client-visible model IDs returned by
// the model selector (#8013 refactor: gemini-3.6-flash-high is the current defaultAgentModelId).
test("T31: antigravity static catalog exposes client-visible Gemini preview IDs", () => {
// Antigravity exposes client-visible Gemini IDs even though the upstream still
// accepts its internal model identifiers. #8013 (align official clients / callable
// catalog) retired the `gemini-3-pro-preview` alias, so assert the current
// client-visible top flash tier instead.
const staticIds = (getStaticModelsForProvider("antigravity") || []).map((m) => m.id);
assert.ok(staticIds.includes("gemini-3.6-flash-high"));
assert.ok(!staticIds.includes("gemini-3-pro-preview"));
// #3303 (agy parity, discussion #3184): the Gemini + Claude budget tiers ARE
// client-visible on the Antigravity OAuth backend (Claude was never removed).
assert.ok(staticIds.includes("gemini-3.1-pro-low"));
Expand Down
Loading