You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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)
Activity
rekram1-node commentedon Dec 4, 2025
Is it still broken on latest?
justmejulian commentedon Dec 5, 2025
Yes 🙃
rekram1-node commentedon Dec 5, 2025
ugh sorry will fix
justmejulian commentedon Dec 5, 2025
Could it be that
providerID: "github-copilot"is wrong?Because I am using
"github-copilot-enterprise"fix: anomalyco#5064 ProviderInitError github-copilot-enterprise
fix: #5064 ProviderInitError github-copilot-enterprise (#5123)
sync: merge upstream v1.0.134 (#90)
fix: anomalyco#5064 ProviderInitError github-copilot-enterprise (anom…
fix: anomalyco#5064 ProviderInitError github-copilot-enterprise (anom…
fix: #5064 ProviderInitError github-copilot-enterprise (#5123)
fix: anomalyco#5064 ProviderInitError github-copilot-enterprise (anom…