Repository navigation
OpenCode 2.0.27 compatibility
OpenCode 2.0.27 upgraded its bundled Effect to 4.0 and no longer provides effect/unstable/http, so 0.2.0 shows as Failed there. This release fixes that and keeps future Effect changes in OpenCode from stopping the plugin from loading.
Changes
- Load on OpenCode 2.0.27, and still on 2.0.26.
- Stop importing Effect at load time. Effect's HTTP module is loaded only when a request fails (
effect/http, theneffect/unstable/http). Otherwise, errors are plain errors that keep the status andRetry-After. If a future OpenCode release stops providing that module, the plugin still loads and searches still work; only the provider failover after HTTP 429 is lost. - Add
npm run test:opencode, which loads the packed plugin into an isolated, throwaway OpenCode server and checks that it activates and registers the ChatGPT Codex provider. - Run that check on pull requests, daily against the latest OpenCode release (also checking the published package), and before publishing.
Upgrade
- Change the plugin entry to
opencode-codex-websearch@0.2.1. - Quit and restart OpenCode after updating.
Verification
Typechecking and all 16 tests passed. The packed package loads and registers the codex provider in OpenCode 2.0.26 and 2.0.27, including on GitHub's Linux runners. In both releases, a simulated HTTP 429 from ChatGPT put the provider into OpenCode's random-selection cooldown.
Full changes: v0.2.0...v0.2.1