OpenCode 2.2 lets plugins build into the desktop app and drops its GitHub Action
2 hours ago
OpenCode 2.2, the open source coding agent's v2.2.0 release, lets plugins add panels, commands and settings pages to OpenCode Desktop (experimental). Also: Focus and Pro layouts, rewind and fork from any message, a configurable prompt cache lifetime, session instructions that keep the cache, image and decision generation for plugins and the SDK, and GPT-6.1 Terra. Gone: the OpenCode GitHub Action; terminal plugins now need OpenTUI 0.7; @opencode/ai's root is now the Promise API. Upgrade steps are in the release notes. https://github.com/anomalyco/opencode/releases/tag/v2.2.0 https://opencode.ai/v2/docs/build/plugins/gui https://github.com/anomalyco/opencode/blob/v2.2.0/CHANGELOG.md
Ask about this presentation
Chapters
0:00OpenCode 2.2 lets plugins build into the desktop app
0:1301 Desktop plugins
0:16One package, three parts
0:29Desktop plugins use the app's own controls
0:43Plugins live under Extensions
1:0002 The desktop app
1:02Focus or Pro layout
1:15Rewind or fork from any message
1:28Model dialog, todo list, Windows updates
1:4103 Sessions and models
1:44Session instructions keep the cache
1:58Set how long the prompt cache lasts
2:12Image and decision generation
2:25GPT-6.1 Terra, two context fixes
2:4004 What's gone
2:43The GitHub Action is gone
2:57Terminal plugins need OpenTUI 0.7
3:11@opencode/ai leads with Promises
3:22Set a one-hour cache first
Show transcriptHide transcript
OpenCode 2.2 lets a plugin add its own panels, commands and settings pages to OpenCode Desktop. Desktop plugins are experimental, so their API can still change between releases.
Part one: desktop plugins.
A plugin package already shipped a server part and a terminal part. Now it adds a desktop part beside them, and the desktop app's own features are built as plugins on that same SDK.
Desktop plugins can now do what the built-in features do. They show toasts and ask in the app's own dialogs, notify you while OpenCode is in the background, and manage tabs and the prompt.
You manage desktop plugins in one place: Settings, then Extensions, then Plugins, next to your MCP servers and skills. Each plugin gets a switch, a Reload button, and its error when it fails to load.
Part two: the desktop app.
The desktop app now asks how you work. Focus puts tabs across the top, with room to write prompts. Pro moves tabs down the side, compact and icon-first. Your current tab setting carries over.
Hover any message to rewind or fork from it. Rewind hides that message and everything after it, puts your files back as they were, and returns your prompt to the composer, with an Undo.
Models now open in a searchable dialog with your favorites and recent picks. The todo list is back above the composer, if you opt in. And future Windows updates install in about a second.
Part three: sessions and models.
Plugins can now attach keyed instructions to a session. Each change arrives as a small update at the next step, so the prompt cache stays intact. The entries also survive compaction and reverts.
You can now choose how long the prompt cache lasts. On Anthropic it was five minutes, so an agent waiting on a slow tool paid to rewrite its whole context. Now set an hour per model.
Plugins and the SDK get experimental image generation, and a Decision API for models that answer structured questions about text or an image: a yes or no, a choice, or a score.
Sign in with ChatGPT adds GPT 6.1 Terra and Terra Fast. Compaction now sizes itself from the provider's reported token count, and throttled requests retry instead of showing up as a context overflow.
Part four: what's gone.
OpenCode no longer publishes its GitHub Action, and you should remove it from your workflows. Workflows that point at its existing tags keep working, because those tags are locked to older commits.
Plugins for OpenCode's terminal app now require OpenTUI 0.7. A plugin still built on OpenTUI 0.6 fails to install until its author moves it to the new version.
If you build on OpenCode's AI package, its root now exports the Promise API, matching the SDK and client packages. The Effect API moves to its own entry point.
On long Anthropic sessions, the setting I'd change first is a one-hour prompt cache. Before upgrading a plugin or an SDK app, read the breaking changes in OpenCode's 2.2 release notes.




