From a7f80f45423f089649abf034463edd74ecc74a0c Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Thu, 12 Feb 2026 23:50:34 +0530 Subject: [PATCH] fix: show guide for GitHub Copilot in github install command Removed the TODO and added a helpful note when user cancels or doesn't select a provider, informing them about GitHub Copilot availability with a link to setup docs. --- packages/opencode/src/cli/cmd/github.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/cli/cmd/github.ts b/packages/opencode/src/cli/cmd/github.ts index 1ce95cc6cf..642da9065d 100644 --- a/packages/opencode/src/cli/cmd/github.ts +++ b/packages/opencode/src/cli/cmd/github.ts @@ -194,12 +194,21 @@ export const GithubInstallCommand = cmd({ await installGitHubApp() const providers = await ModelsDev.get().then((p) => { - // TODO: add guide for copilot, for now just hide it delete p["github-copilot"] return p }) const provider = await promptProvider() + + if (provider === undefined || !(provider in providers)) { + prompts.log.info("") + prompts.log.info("Note: GitHub Copilot is also available but requires separate setup.") + prompts.log.info("Learn more: https://opencode.ai/docs/providers#github-copilot") + prompts.log.info("") + prompts.outro("Done") + return + } + const model = await promptModel() //const key = await promptKey()