From d8b9ace39cc1f60825d7ecfa251c224b2f567d2a Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 29 Apr 2026 12:31:08 +0100 Subject: [PATCH] fix(ci): repair github copilot setup types --- extensions/github-copilot/index.ts | 4 ++-- .../configure.gateway-auth.prompt-auth-config.test.ts | 4 ++-- src/plugin-sdk/github-copilot-login.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/extensions/github-copilot/index.ts b/extensions/github-copilot/index.ts index 6ba7a5924a9..6e843ec7658 100644 --- a/extensions/github-copilot/index.ts +++ b/extensions/github-copilot/index.ts @@ -321,8 +321,8 @@ export default definePluginEntry({ choiceLabel: "GitHub Copilot", choiceHint: "Device login with your GitHub account", methodId: "device", - modelAllowlist: { - loadCatalog: true, + modelSelection: { + promptWhenAuthChoiceProvided: true, }, }, }, diff --git a/src/commands/configure.gateway-auth.prompt-auth-config.test.ts b/src/commands/configure.gateway-auth.prompt-auth-config.test.ts index 48e82086c76..41cca5989ef 100644 --- a/src/commands/configure.gateway-auth.prompt-auth-config.test.ts +++ b/src/commands/configure.gateway-auth.prompt-auth-config.test.ts @@ -345,8 +345,8 @@ describe("promptAuthConfig", () => { auth: [], wizard: { setup: { - modelAllowlist: { - loadCatalog: true, + modelSelection: { + promptWhenAuthChoiceProvided: true, }, }, }, diff --git a/src/plugin-sdk/github-copilot-login.ts b/src/plugin-sdk/github-copilot-login.ts index 2a42bec9203..aa688554ac0 100644 --- a/src/plugin-sdk/github-copilot-login.ts +++ b/src/plugin-sdk/github-copilot-login.ts @@ -4,7 +4,7 @@ import { loadBundledPluginPublicSurfaceModuleSync } from "./facade-loader.js"; type FacadeModule = { githubCopilotLoginCommand: ( - opts: { profileId?: string; yes?: boolean }, + opts: { profileId?: string; yes?: boolean; agentDir?: string }, runtime: RuntimeEnv, ) => Promise; };