From beec91bd7b1d76287310d0545d127e2ef04fddcb Mon Sep 17 00:00:00 2001 From: "@mrubens" <2600+mrubens@users.noreply.github.com> Date: Thu, 13 Aug 2026 23:52:12 +0000 Subject: [PATCH 1/2] improve: default GitHub Copilot roles to Luna --- .../types/src/model-provider-config.test.ts | 31 ++++++++++---- packages/types/src/model-provider-config.ts | 42 +++++++++++++++---- 2 files changed, 57 insertions(+), 16 deletions(-) diff --git a/packages/types/src/model-provider-config.test.ts b/packages/types/src/model-provider-config.test.ts index 72c0a23ad..b8a9244ba 100644 --- a/packages/types/src/model-provider-config.test.ts +++ b/packages/types/src/model-provider-config.test.ts @@ -865,13 +865,13 @@ describe('SETUP_MODEL_PROVIDER_CATALOG', () => { expect(copilotProvider).toMatchObject({ label: 'GitHub Copilot', - defaultRoomoteModel: 'github-copilot/claude-sonnet-5', + defaultRoomoteModel: 'github-copilot/gpt-5.6-luna', authKind: 'oauth', }); expect(copilotProvider?.envVarName).toBeUndefined(); expect( copilotProvider?.suggestedTaskModels.some( - (suggestion) => suggestion.id === 'github-copilot/claude-sonnet-5', + (suggestion) => suggestion.id === 'github-copilot/gpt-5.6-luna', ), ).toBe(true); }); @@ -1030,12 +1030,6 @@ describe('buildRecommendedDeploymentModelConfig', () => { 'bedrock-mantle/anthropic.claude-sonnet-5', 'bedrock-mantle/anthropic.claude-opus-5', ], - [ - 'github-copilot', - undefined, - 'github-copilot/claude-sonnet-5', - 'github-copilot/claude-opus-5', - ], ] as const)( 'recommends Sonnet 5 with medium reasoning for %s code review', (providerId, presetId, codeReviewModel, planningModel) => { @@ -1052,6 +1046,27 @@ describe('buildRecommendedDeploymentModelConfig', () => { }, ); + it('uses Luna for every GitHub Copilot role', () => { + expect( + buildRecommendedDeploymentModelConfig( + getSetupModelProvider('github-copilot'), + ), + ).toEqual({ + roomoteModel: 'github-copilot/gpt-5.6-luna', + roomoteSmallModel: 'github-copilot/gpt-5.6-luna', + roomoteVisionModel: 'github-copilot/gpt-5.6-luna', + roomoteCodeReviewModel: 'github-copilot/gpt-5.6-luna', + roomoteExploreModel: 'github-copilot/gpt-5.6-luna', + roomotePlanningModel: 'github-copilot/gpt-5.6-luna', + roomoteModelReasoningEffort: 'medium', + roomoteSmallModelReasoningEffort: 'low', + roomoteVisionModelReasoningEffort: 'low', + roomoteCodeReviewModelReasoningEffort: 'high', + roomoteExploreModelReasoningEffort: 'low', + roomotePlanningModelReasoningEffort: 'high', + }); + }); + it('recommends only the coding default for providers without a role mapping', () => { expect( buildRecommendedDeploymentModelConfig(getSetupModelProvider('xai')), diff --git a/packages/types/src/model-provider-config.ts b/packages/types/src/model-provider-config.ts index 9bc7970fe..32f7783cf 100644 --- a/packages/types/src/model-provider-config.ts +++ b/packages/types/src/model-provider-config.ts @@ -804,7 +804,7 @@ export const SETUP_MODEL_PROVIDER_CATALOG = [ href: 'https://docs.github.com/en/copilot', linkLabel: 'GitHub Copilot docs', }, - defaultRoomoteModel: 'github-copilot/claude-sonnet-5', + defaultRoomoteModel: 'github-copilot/gpt-5.6-luna', authKind: 'oauth', suggestedTaskModels: mapRecommendedTaskModels({ 'claude-fable-5': 'github-copilot/claude-fable-5', @@ -817,13 +817,39 @@ export const SETUP_MODEL_PROVIDER_CATALOG = [ 'kimi-k3': 'github-copilot/kimi-k3', 'kimi-k2-7-code': 'github-copilot/kimi-k2.7-code', }), - recommendedRoleModels: { - helper: 'github-copilot/claude-haiku-4.5', - codeReview: 'github-copilot/claude-sonnet-5', - explore: 'github-copilot/claude-haiku-4.5', - planning: 'github-copilot/claude-opus-5', - }, - recommendedRoleReasoningEfforts: { codeReview: 'medium' }, + recommendedPresets: [ + { + id: 'default', + label: 'Recommended', + default: true, + roles: { + coding: { + modelId: 'github-copilot/gpt-5.6-luna', + reasoningEffort: 'medium', + }, + helper: { + modelId: 'github-copilot/gpt-5.6-luna', + reasoningEffort: 'low', + }, + vision: { + modelId: 'github-copilot/gpt-5.6-luna', + reasoningEffort: 'low', + }, + codeReview: { + modelId: 'github-copilot/gpt-5.6-luna', + reasoningEffort: 'high', + }, + explore: { + modelId: 'github-copilot/gpt-5.6-luna', + reasoningEffort: 'low', + }, + planning: { + modelId: 'github-copilot/gpt-5.6-luna', + reasoningEffort: 'high', + }, + }, + }, + ], }, { id: OPENAI_COMPATIBLE_PROVIDER_ID, From 876a0faf53d1a8efd94d2cc884e5ef6d4241e69a Mon Sep 17 00:00:00 2001 From: "@mrubens" <2600+mrubens@users.noreply.github.com> Date: Fri, 14 Aug 2026 00:16:54 +0000 Subject: [PATCH 2/2] fix: preserve Copilot role reasoning defaults --- .../types/src/model-provider-config.test.ts | 22 +++++++++---------- packages/types/src/model-provider-config.ts | 20 ----------------- 2 files changed, 11 insertions(+), 31 deletions(-) diff --git a/packages/types/src/model-provider-config.test.ts b/packages/types/src/model-provider-config.test.ts index b8a9244ba..94bf81acd 100644 --- a/packages/types/src/model-provider-config.test.ts +++ b/packages/types/src/model-provider-config.test.ts @@ -1046,24 +1046,24 @@ describe('buildRecommendedDeploymentModelConfig', () => { }, ); - it('uses Luna for every GitHub Copilot role', () => { + it('uses Luna for GitHub Copilot with other roles following coding', () => { expect( buildRecommendedDeploymentModelConfig( getSetupModelProvider('github-copilot'), ), ).toEqual({ roomoteModel: 'github-copilot/gpt-5.6-luna', - roomoteSmallModel: 'github-copilot/gpt-5.6-luna', - roomoteVisionModel: 'github-copilot/gpt-5.6-luna', - roomoteCodeReviewModel: 'github-copilot/gpt-5.6-luna', - roomoteExploreModel: 'github-copilot/gpt-5.6-luna', - roomotePlanningModel: 'github-copilot/gpt-5.6-luna', + roomoteSmallModel: null, + roomoteVisionModel: null, + roomoteCodeReviewModel: null, + roomoteExploreModel: null, + roomotePlanningModel: null, roomoteModelReasoningEffort: 'medium', - roomoteSmallModelReasoningEffort: 'low', - roomoteVisionModelReasoningEffort: 'low', - roomoteCodeReviewModelReasoningEffort: 'high', - roomoteExploreModelReasoningEffort: 'low', - roomotePlanningModelReasoningEffort: 'high', + roomoteSmallModelReasoningEffort: null, + roomoteVisionModelReasoningEffort: null, + roomoteCodeReviewModelReasoningEffort: null, + roomoteExploreModelReasoningEffort: null, + roomotePlanningModelReasoningEffort: null, }); }); diff --git a/packages/types/src/model-provider-config.ts b/packages/types/src/model-provider-config.ts index 32f7783cf..ad6bcd29e 100644 --- a/packages/types/src/model-provider-config.ts +++ b/packages/types/src/model-provider-config.ts @@ -827,26 +827,6 @@ export const SETUP_MODEL_PROVIDER_CATALOG = [ modelId: 'github-copilot/gpt-5.6-luna', reasoningEffort: 'medium', }, - helper: { - modelId: 'github-copilot/gpt-5.6-luna', - reasoningEffort: 'low', - }, - vision: { - modelId: 'github-copilot/gpt-5.6-luna', - reasoningEffort: 'low', - }, - codeReview: { - modelId: 'github-copilot/gpt-5.6-luna', - reasoningEffort: 'high', - }, - explore: { - modelId: 'github-copilot/gpt-5.6-luna', - reasoningEffort: 'low', - }, - planning: { - modelId: 'github-copilot/gpt-5.6-luna', - reasoningEffort: 'high', - }, }, }, ],