-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
GitHub Copilot Enterprise provider fails to initialize after following the troubleshooting steps for re-authentication. The provider was working previously but now throws a ProviderInitError when attempting to run any commands.
OpenCode version
1.0.132
Steps to reproduce
- Logout from GitHub Copilot Enterprise:
opencode auth logout
# Selected: github-copilot-enterprise (oauth)- Clear opencode data directories as per [troubleshooting docs](https://opencode.ai/docs/troubleshooting/#provideriniterror):
rm -rf ~/.local/share/opencode
rm -rf ~/.cache/opencode- Re-authenticate with GitHub Copilot Enterprise:
opencode auth login
# Selected: GitHub Copilot > GitHub Enterprise
# Entered GitHub Enterprise URL
# Completed device flow authentication successfully- Set default model in ~/.config/opencode/opencode.json
`"model": "github-copilot-enterprise/gpt-4.1"`
- Attempt to run a command (or ask question in opencode):
opencode run "test"Application crashes with ProviderInitError:
ProviderInitError: ProviderInitError
data: {
providerID: "github-copilot",
},
at getSDK (src/provider/provider.ts:786:13)
TypeError: undefined is not an object (evaluating 'provider.options')
at getSDK (src/provider/provider.ts:712:28)
Logs
Full log output:
opencode run "test"
Application crashes with ProviderInitError:
ProviderInitError: ProviderInitError
data: {
providerID: "github-copilot",
},
at getSDK (src/provider/provider.ts:786:13)
TypeError: undefined is not an object (evaluating 'provider.options')
at getSDK (src/provider/provider.ts:712:28)
Screenshot and/or share link
No response
Operating System
macos 26.1
Terminal
Ghostty
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working