Skip to content
This repository was archived by the owner on Oct 19, 2026. It is now read-only.

Migrate plugin to OpenCode V2 SDK - #2

Closed
scotynau wants to merge 2 commits into
pawelma:masterfrom
scotynau:migrate-to-opencode-v2
Closed

scotynau wants to merge 2 commits into
pawelma:masterfrom
scotynau:migrate-to-opencode-v2

Conversation

@scotynau

Copy link
Copy Markdown

This PR migrates the plugin to the OpenCode V2 SDK (@opencode/plugin v2.0.32).

Changes

  • Updated @opencode-ai/plugin to @opencode/plugin (^2.0.32).
  • Migrated plugin definition to V2 Plugin.define({ id: "autotitle", setup(ctx) { ... } }).
  • Adapted event listener loop to consume ctx.event.subscribe() async iterator stream.
  • Implemented dual compatibility layer so session and provider methods work cleanly with both V2 and V1 SDK signatures.
  • Added V2 integration test cases in src/index.test.ts (182 total tests passing across source and dist).
  • Updated coding agent guidelines in AGENTS.md.

@pawelma

pawelma commented Oct 19, 2026

Copy link
Copy Markdown
Owner

Closing this PR — archiving the repository.

OpenCode 2.0 now includes built-in session title configuration with small model support, making this plugin redundant. No further maintenance planned.

Thank you for the migration effort!

@pawelma pawelma closed this Oct 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants