Skip to content

Commit d4ff071

Browse files
committed
test(github-copilot): cover Opus 5 manifest reasoning levels
1 parent 27b1cb9 commit d4ff071

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎extensions/github-copilot/index.test.ts‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,26 @@ describe("github-copilot plugin", () => {
455455
expect(profile?.levels.map((level) => level.id)).toContain("xhigh");
456456
});
457457

458+
it("exposes xhigh and max thinking for the bundled Claude Opus 5 model", () => {
459+
const provider = registerProviderWithPluginConfig({});
460+
const model = expectDefined(
461+
manifest.modelCatalog.providers["github-copilot"].models.find(
462+
(candidate) => candidate.id === "claude-opus-5",
463+
),
464+
"bundled GitHub Copilot Claude Opus 5 model",
465+
);
466+
467+
const profile = provider.resolveThinkingProfile({
468+
provider: "github-copilot",
469+
modelId: model.id,
470+
compat: model.compat,
471+
});
472+
473+
expect(profile?.levels.map((level) => level.id)).toEqual(
474+
expect.arrayContaining(["xhigh", "max"]),
475+
);
476+
});
477+
458478
it("exposes max thinking for catalog-supported Copilot reasoning efforts", () => {
459479
const provider = registerProviderWithPluginConfig({});
460480

0 commit comments

Comments
 (0)