Late October shipped two more tagged OpenCode releases after v2.2.0, which has its own write-up: v2.2.1 (October 29) on the current line and v1.19.5 (October 28) on the 1.x line. This digest covers both: a /goal command that keeps a session working toward an objective, opt-in image generation, a new default model picker in Desktop, and a @opencode/ai cleanup with provider removals.
Keep working toward a goal with /goal
v2.2.1 adds /goal <objective> in the TUI and Desktop: the session continues until a reviewer confirms the objective is met, and /goal pause, /goal resume, and /goal clear control it. The TUI shows the goal status below the prompt and provides a dialog for pausing, resuming, or clearing it, and Desktop shows the goal state and actions in a composer pill. Plugins get the experimental experimental.idle Session hook so they can continue work before a session goes idle (improvements).
Opt-in image generation
v2.2.1 adds the opt-in image_generate tool: enable experimental.image_generate to let agents create or edit images, with the default model optionally set through experimental.image_generate.model. GPT Image 2 is offered after Codex sign-in, and MiniMax and Meta Muse image generation support is added (improvements).
Desktop: a new default model picker and background shell inspection
- The redesigned searchable model picker is now the default in Desktop: it searches favorites, recent models, providers, and variants, with dedicated Favorites and Recent sections and keyboard-accessible provider controls (improvement).
- Selecting a background shell from the activity pill shows its live output and a Stop action, so you can stop it without leaving the menu (improvement).
/reloadis added to reload configuration without restarting (improvement).
Breaking changes in @opencode/ai (v2.2.1)
These changes affect code that imports @opencode/ai directly; the CLI, Desktop, and HTTP API are unchanged.
- The fal, Black Forest Labs, Replicate, and Stability providers are removed, along with their
./providers/fal,./providers/black-forest-labs,./providers/replicate, and./providers/stabilityentry points. - Five legacy entry points are removed — import the nested paths instead, which 2.2.0 already exports:
./providers/amazon-bedrock-mantle→./providers/amazon-bedrock/mantle, and./providers/google-vertex-chat,-interactions,-mistral, and-responses→./providers/google-vertex/chat,/interactions,/mistral, and/responses. - Each provider’s
configure()input type is now namedConfig(for example,Groq.LanguageModelOptions→Groq.Config), andmodel()settings are optional when every setting is optional.
On the SDK side, experimental generated-client methods are grouped under client.experimental, and previous locations remain as deprecated aliases until the next minor release. The SDK also adds client.experimental.schedule.{create,list,get,pause,resume,delete} for managing scheduled prompts (improvements).
Also worth knowing
- Opt-in scheduled prompts are added through
/schedule, agent tools, andexperimental.schedules(v2.2.1, an improvement). - Responses API support is added for OpenRouter, DigitalOcean, and Venice, including freeform tools (v2.2.1, an improvement).
- Snapshot performance is improved by coalescing captures and avoiding repeated ignore-file work (v2.2.1, an improvement).
- More context headroom is preserved when fitting tool output into the context window, and provider throttling is retried correctly instead of being reported as context overflow (v2.2.1, bugfixes).
- Git snapshots keep working in repositories that use a split index, and credential metadata and prompt-cache settings are kept out of model settings and variants (v2.2.1, bugfixes).
- On the 1.x line, v1.19.5 fixes failed TUI worker requests: they now return an error instead of leaving the caller hanging.
For the per-tag detail, the release feed remains the authoritative source.