[PR #5123] fix: #5064 ProviderInitError github-copilot-enterprise #11252

Closed
opened 2026-02-16 18:16:03 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5123

State: closed
Merged: Yes


Fixes #5064.

When using GitHub Copilot Enterprise, the error occurred because models inherited from github-copilot had providerID: "github-copilot" instead of "github-copilot-enterprise". This caused s.providers[model.providerID] to return undefined.

Test:

bun dev run "test"
$ bun run --cwd packages/opencode --conditions=browser src/index.ts run test

It looks like you want to run the tests for this project. Based on the instructions in AGENTS.md, the correct command to run all tests is:

```bash
bun test
```

I will run this command now to execute all tests in the project and report the results.
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5123 **State:** closed **Merged:** Yes --- Fixes #5064. When using GitHub Copilot Enterprise, the error occurred because models inherited from github-copilot had providerID: "github-copilot" instead of "github-copilot-enterprise". This caused `s.providers[model.providerID]` to return `undefined`. Test: ```` bun dev run "test" $ bun run --cwd packages/opencode --conditions=browser src/index.ts run test It looks like you want to run the tests for this project. Based on the instructions in AGENTS.md, the correct command to run all tests is: ```bash bun test ``` I will run this command now to execute all tests in the project and report the results. ````
yindo added the pull-request label 2026-02-16 18:16:03 -05:00
yindo closed this issue 2026-02-16 18:16:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11252