ci(bonk): pin opencode to 1.4.6 to dodge cf-ai-gateway ProviderInitError#902
Merged
james-elicx merged 1 commit intocloudflare:mainfrom Apr 25, 2026
Merged
Conversation
Every bonk and bigbonk run since opencode 1.14.25 throws UnknownError: ProviderInitError during cf-ai-gateway SDK init, regardless of model. Verified across gpt-5.5 (cloudflare#898), gpt-5.4 (cloudflare#900), and the throw fires before any per-model code path runs. workers-sdk hit the same regression and pinned opencode_version to 1.4.6 with an inline comment naming ProviderInitError as the cause. Several other Cloudflare repos pin 1.2.27 / 1.4.6 for the same reason. vinext is the only Cloudflare repo running OAI through cf-ai-gateway, so the OAI-specific path stayed unobserved until cloudflare#898 re-tried it on 1.14.25. Pinning to 1.4.6 here reuses workers-sdk's known-good version. The gpt-5.4 model from cloudflare#900 stays; gpt-5.4 predates 1.4.6's bundled snapshot by over a month, so registry resolution is fine.
james-elicx
approved these changes
Apr 25, 2026
commit: |
There was a problem hiding this comment.
Pull request overview
Pins the Bonk GitHub Actions workflows to a known-good opencode version to avoid the cf-ai-gateway ProviderInitError regression described in the PR context.
Changes:
- Add
opencode_version: 1.4.6to.github/workflows/bonk.yml(previously defaulted to latest). - Downgrade
.github/workflows/bigbonk.ymlfromopencode_version: 1.14.25to1.4.6.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/bonk.yml | Pins opencode_version to stabilize Bonk runs against the cf-ai-gateway init regression. |
| .github/workflows/bigbonk.yml | Re-pins opencode_version to the known-good version to avoid ProviderInitError during SDK init. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| variant: "xhigh" | ||
| permissions: write | ||
| opencode_dev: false | ||
| opencode_version: 1.4.6 |
| permissions: write | ||
| opencode_dev: false | ||
| opencode_version: 1.14.25 | ||
| opencode_version: 1.4.6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Pin
opencode_version: 1.4.6in bothbonk.ymlandbigbonk.yml.Why
@james-elicx — #900 downgraded the model to gpt-5.4 but bots still throw
UnknownError: ProviderInitError(run https://github.com/cloudflare/vinext/actions/runs/24939417069). Real regression is opencode 1.14.25, not the model. The throw fires during cf-ai-gateway SDK init before any per-model code path runs, so model swaps don't help.workers-sdk hit the same regression on the same opencode bump and pinned
opencode_version: "1.4.6"with an inline comment:Other Cloudflare repos (containers, workers-py, kumo, workerd) pin 1.2.27 / 1.4.6 for the same reason. vinext is the only CF repo running OpenAI through cf-ai-gateway, which is why the OAI path stayed unobserved until #898.
Treat this as the last attempt at OAI on cf-ai-gateway. If
/bigbonk reviewon this PR still throws, fall back toanthropic/claude-opus-4-7+variant: maxand stop chasing GPT until upstream opencode + ai-gateway-provider settle.Approach
bigbonk.yml:opencode_version: 1.14.25→1.4.6.bonk.yml: addopencode_version: 1.4.6(was unset, defaulted to latest).Validation
Comment
/bigbonk reviewon this PR before merging. If green, merge; if red, drop OAI and revert to opus.