[PR #2360] Refactor to support multiple instances inside single opencode process #10293

Closed
opened 2026-02-16 18:14:55 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2360

State: closed
Merged: Yes


This release has a bunch of minor breaking changes if you are using opencode plugins or sdk

  1. storage events have been removed (we might bring this back but had some issues)
  2. concept of app is gone - there is a new concept called project and endpoints to list projects and get the current project
  3. plugin receives directory which is cwd and worktree which is where the root of the project is if it's a git repo
  4. the session.chat function has been renamed to session.prompt in sdk. it no longer requires model to be passed in (model is now an object)
  5. every endpoint takes an optional directory parameter to operate as though opencode is running in that directory
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2360 **State:** closed **Merged:** Yes --- This release has a bunch of minor breaking changes if you are using opencode plugins or sdk 1. storage events have been removed (we might bring this back but had some issues) 2. concept of `app` is gone - there is a new concept called `project` and endpoints to list projects and get the current project 3. plugin receives `directory` which is cwd and `worktree` which is where the root of the project is if it's a git repo 4. the session.chat function has been renamed to session.prompt in sdk. it no longer requires model to be passed in (model is now an object) 5. every endpoint takes an optional `directory` parameter to operate as though opencode is running in that directory
yindo added the pull-request label 2026-02-16 18:14:55 -05:00
yindo closed this issue 2026-02-16 18:14:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10293