Skip to content
Open
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
23 changes: 23 additions & 0 deletions src/common/utils/ai/providerOptions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,29 @@ describe("buildProviderOptions - mappedToModel resolution", () => {
expect(anthropic.effort).toBe("high");
});

test("resolves custom alias to gpt-5.3-codex-spark for reasoning summary gating", () => {
const providersConfig = createMockProvidersConfig({
"openai:custom-spark": "openai:gpt-5.3-codex-spark",
});

const result = buildProviderOptions(
"openai:custom-spark",
"medium",
undefined,
undefined,
undefined,
undefined,
undefined,
providersConfig
) as Record<string, unknown>;
const openai = result.openai as Record<string, unknown> | undefined;

expect(openai).toBeDefined();
expect(openai?.reasoningEffort).toBe("medium");
expect(openai?.reasoningSummary).toBeUndefined();
expect(openai?.include).toEqual(["reasoning.encrypted_content"]);
});

test("works without providersConfig (backward compat)", () => {
const result = buildProviderOptions("anthropic:claude-sonnet-4-5-20250514", "medium");

Expand Down
Loading