Skip to content

ci(bonk): pin opencode to 1.4.6 to dodge cf-ai-gateway ProviderInitError#902

Merged
james-elicx merged 1 commit intocloudflare:mainfrom
NathanDrake2406:nathan/pin-opencode-1.4.6
Apr 25, 2026
Merged

ci(bonk): pin opencode to 1.4.6 to dodge cf-ai-gateway ProviderInitError#902
james-elicx merged 1 commit intocloudflare:mainfrom
NathanDrake2406:nathan/pin-opencode-1.4.6

Conversation

@NathanDrake2406
Copy link
Copy Markdown
Contributor

What

Pin opencode_version: 1.4.6 in both bonk.yml and bigbonk.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:

opencode_version: "1.4.6" # pin to this version as newer versions are causing ProviderInitError issues

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 review on this PR still throws, fall back to anthropic/claude-opus-4-7 + variant: max and stop chasing GPT until upstream opencode + ai-gateway-provider settle.

Approach

  • bigbonk.yml: opencode_version: 1.14.251.4.6.
  • bonk.yml: add opencode_version: 1.4.6 (was unset, defaulted to latest).
  • gpt-5.4 model from ci(bonk): downgrade bots from gpt-5.5 to gpt-5.4 #900 stays; gpt-5.4 predates 1.4.6's bundled snapshot by over a month, so registry resolution is fine.

Validation

Comment /bigbonk review on this PR before merging. If green, merge; if red, drop OAI and revert to opus.

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.
Copilot AI review requested due to automatic review settings April 25, 2026 20:18
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 25, 2026

Open in StackBlitz

npm i https://pkg.pr.new/vinext@902

commit: b47d2fd

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.6 to .github/workflows/bonk.yml (previously defaulted to latest).
  • Downgrade .github/workflows/bigbonk.yml from opencode_version: 1.14.25 to 1.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
@james-elicx james-elicx merged commit e7706ea into cloudflare:main Apr 25, 2026
26 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants