Repository navigation
2.1.0
2.1.0 pins opencode 2.4.1. It is a minor release that moves the protocol pin, so generated
types change the way upstream changed them: a blob no longer reports its expiry, three experimental
config flags are removed because automations and MCP events ship without one, video_generate also
takes an options object, and a voice model requires an engine and a name. All four are listed as
breaking under protocol changes. Background jobs can be cancelled, machines can be listed, added
and removed, and the server no longer waits for plugins at startup. Sessions.GetTotalCostAsync
totals a session's cost with its subagent sessions, and HQ is redesigned.
🔌 Protocol changes
- The SDK pins opencode
2.4.1, where it pinned2.3.2. - Breaking:
BlobInfo.ExpiresAtis removed, because opencode 2.4.0 no longer reports a blob's expiry. opencode still deletes a blob seven days after writing it. Before:double expires = blob.ExpiresAt;. After: remove the read. - Breaking:
ConfigInfoExperimental.Automations,McpEventsandSchedulesare removed, because opencode 2.4.0 ships automations and MCP events without a feature flag. Automations are on by default and switch off with the newConfigInfo.Automations. Before:new ConfigInfoExperimental { Automations = true }. After: nothing to set; to turn automations off,new ConfigInfo { Automations = false }. - Breaking:
ConfigInfoExperimental.VideoGeneratechanges frombool?toConfigInfoExperimentalVideoGenerate?, which holds either aBooleanor aConfigVideoGenerateOptionsnaming the video tool's defaultModel. Before:new ConfigInfoExperimental { VideoGenerate = true }. After:new ConfigInfoExperimental { VideoGenerate = ConfigInfoExperimentalVideoGenerate.FromBoolean(true) }. - Breaking:
VoiceModelgains requiredEngineandName, so code that constructs the record sets both. ExperimentalClient.CreateVideoGenerationAsyncandGetVideoGenerationAsyncno longer answer403ForbiddenError: opencode 2.4.0 no longer checks a flag before generating video. A video generation is listed as a background job,JobVideo, withJobKind.Video.ExperimentalClient.CancelJobAsync(experimental.job.cancel) cancels a background job, andExperimentalJobUpdated, withExperimentalJobUpdatedData, joinsIEvent;EventType.ExperimentalJobUpdatedfilters the event subscription toexperimental.job.updated.ExperimentalClient.ListMachinesAsync,AddMachineAsyncandRemoveMachineAsync(experimental.machine.list,.add,.remove) manage machines.AddMachineAsyncreturns aMachineInvitewhoseJoinis a single-use join string carrying the join secret; the record's printed form masks it.ConfigInfoExperimental.Machinesexposes the machines flag. The machine link, the WebSocket a machine connects through (experimental.machine.link), has no door yet; one is planned.- An automation can run a fixed shell command:
AutomationShellActionInputcreates one, andAutomationActionShellreads it back. ModelInfo.Experimental.Speed(ModelSpeed) names a model's service tier, andConfigInfoExperimental.ModelSpeedsexposes its flag.ConfigInfoExperimental.HomeMemory,OpencodeApi,ProjectOverlay,RecommendedApiandSqliteFtsexpose the other new feature flags.- Since opencode 2.4.0 the server no longer waits for plugins: listing models and providers, the default model, web search, and experimental generation and voice answer right after startup with what has loaded, so a list can be empty or partial, and they no longer answer
503ServiceUnavailableErrorwhile plugins load.Plugins.WaitForPluginsAsyncandLanguageModels.WaitForDefaultAsyncare unchanged and still poll the plugin list as opencode's CLI does.
✨ Added
Sessions.GetTotalCostAsyncreturns a session's total cost as opencode's own clients show it: a
session's cost plus the cost of every descendant subagent session, and a subagent session's own cost.
An unknown session fails with the server's not-found error, where opencode's client shows 0.
🐛 Fixes
- An
OpenCodeApiExceptionwhose server message already ends in.,!or?no longer gets a
second period, so the readable 500 opencode answers handler defects with reads
"… Check server logs for details." instead of ending in "..".
📚 Documentation
- HQ's redesigned board and session screens show named asks, edit previews, rendered Markdown and
coloured diffs, with Changes and Terminal tabs and an SDK calls dock remembered across reloads.
Permission asks offer Deny, Allow always and Allow once; questions can be submitted or dismissed,
and a running turn can be stopped. Session titles follow later renames, and untitled rows stay
clickable. A session's asks are listed again when its page opens and when one of its turns ends,
so an ask a stopped turn dropped no longer stays on the board. - HQ can rename, archive and delete a session.
- HQ can fork a session from a message, compact it, and switch its agent and model.
- QuickStart picks a free model only when every price tier lists zero input and output rates, as the
README example does. - The README is reorganized around a quick start and the runnable apps. A new versioning-and-support
guide holds the target-framework rule, the version policy and the support policy. The contributing
guide moves to the repository root, a support page is added, and usage questions go to the Q&A
category of GitHub Discussions. - The README shows HQ's board. On NuGet.org the image comes from the commit the package was built
from, like the README's links. - The getting-started guide says the server no longer waits for plugins and that a catalog can be
empty or partial right after startup, and names the*.updatedevents a long-lived application
can refresh on. The README's streaming example and QuickStart no longer treat a503as "the
server is still starting".