Breaking Changes
This release has a bunch of minor breaking changes if you are using opencode plugins or sdk
- storage events have been removed (we might bring this back but had some issues)
- concept of
app
is gone - there is a new concept calledproject
and endpoints to list projects and get the current project - plugin receives
directory
which is cwd andworktree
which is where the root of the project is if it's a git repo - 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)
- every endpoint takes an optional
directory
parameter to operate as though opencode is running in that directory
- Use a single rust LSP server instance for entire cargo workspace (#2292)
- fix: change command selection to prefer exact matches over fuzzy sear… (#2314)
- tweak: ensure run command doesn't send request if no prompt present (#2332)
- fix: resolve [pasted lines] when passing paste as arguments for command (#2333)
- add support for lsp workspace/didChangeConfiguration (#2334)
- fix: ensure command uses currently selected model (#2336)
- fix: resolve virtual envs for python LSP (#2155) Co-authored-by: rekram1-node aidenpcline@gmail.com
- fix: adjust title generation prompt to prevent direct response instead of title gen (#2338)
- fix: ensure shell cmds can be properly aborted (#2339)
- feat: Allow provider timeout override (#1982)
- fix: ensure gopls lsp id matches docs (#2344)
- add --command to opencode run (#2348)
- fix: tui attachment bound (#2361)