Skip to content

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