Release

OpenCode in late October: the /goal command, opt-in image generation, and an @opencode/ai cleanup

Two releases this week: v2.2.1 adds the /goal command, opt-in image generation, and @opencode/ai provider removals; v1.19.5 fixes hanging TUI worker requests.

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

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.

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

For the per-tag detail, the release feed remains the authoritative source.

ソース: https://github.com/anomalyco/opencode/releases

次に読む