Skip to content

Releases

v0.2.1 — OpenCode 2.0.27 compatibility

Choose a tag to compare

@ysm-dev ysm-dev released this 13 Oct 07:28

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, then effect/unstable/http). Otherwise, errors are plain errors that keep the status and Retry-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

v0.2.0 — OpenCode v2 native websearch

Choose a tag to compare

@ysm-dev ysm-dev released this 14 Sep 03:12
502fb17

OpenCode v2 migration

This release migrates Codex search to a native OpenCode v2 websearch provider and requires the @opencode/plugin 2.0.3 API.

Changes

  • Register the codex provider for the built-in websearch tool.
  • Resolve ChatGPT OAuth through the v2 integration API, using SQLite-backed credentials, automatic token refresh, and metadata.accountID.
  • Preserve account-scoped model discovery, bounded results, request cancellation, and a 15-second deadline.
  • Preserve native HTTP statuses and Retry-After for rate-limit handling.
  • Support npm packages and local plugin directories through a root entrypoint.

Upgrade from 0.1.x

  • Change plugin to plugins in OpenCode configuration.
  • Select codex with "websearch": { "provider": "codex" }.
  • Replace codex_web_search references with websearch.
  • Move max_results, recency, and domains into plugin options.
  • Use the websearch permission action.
  • Quit and restart OpenCode after updating.

Verification

Typechecking and all 14 regression tests passed. The packed package was also tested in an isolated OpenCode 2.0.3 host with real SQLite, synthetic OAuth credentials, and mocked ChatGPT responses, verifying credential refresh and persistence across host restarts.

PR: #1

v0.1.1

Choose a tag to compare

@ysm-dev ysm-dev released this 02 Sep 13:53

First release published through npm trusted publishing with GitHub Actions OIDC and automatic provenance.