Skip to content

2.1.0

Choose a tag to compare

@Blind-Striker Blind-Striker released this 24 Nov 19:37
664282c

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 pinned 2.3.2.
  • Breaking: BlobInfo.ExpiresAt is 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, McpEvents and Schedules are 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 new ConfigInfo.Automations. Before: new ConfigInfoExperimental { Automations = true }. After: nothing to set; to turn automations off, new ConfigInfo { Automations = false }.
  • Breaking: ConfigInfoExperimental.VideoGenerate changes from bool? to ConfigInfoExperimentalVideoGenerate?, which holds either a Boolean or a ConfigVideoGenerateOptions naming the video tool's default Model. Before: new ConfigInfoExperimental { VideoGenerate = true }. After: new ConfigInfoExperimental { VideoGenerate = ConfigInfoExperimentalVideoGenerate.FromBoolean(true) }.
  • Breaking: VoiceModel gains required Engine and Name, so code that constructs the record sets both.
  • ExperimentalClient.CreateVideoGenerationAsync and GetVideoGenerationAsync no longer answer 403 ForbiddenError: opencode 2.4.0 no longer checks a flag before generating video. A video generation is listed as a background job, JobVideo, with JobKind.Video.
  • ExperimentalClient.CancelJobAsync (experimental.job.cancel) cancels a background job, and ExperimentalJobUpdated, with ExperimentalJobUpdatedData, joins IEvent; EventType.ExperimentalJobUpdated filters the event subscription to experimental.job.updated.
  • ExperimentalClient.ListMachinesAsync, AddMachineAsync and RemoveMachineAsync (experimental.machine.list, .add, .remove) manage machines. AddMachineAsync returns a MachineInvite whose Join is a single-use join string carrying the join secret; the record's printed form masks it. ConfigInfoExperimental.Machines exposes 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: AutomationShellActionInput creates one, and AutomationActionShell reads it back.
  • ModelInfo.Experimental.Speed (ModelSpeed) names a model's service tier, and ConfigInfoExperimental.ModelSpeeds exposes its flag. ConfigInfoExperimental.HomeMemory, OpencodeApi, ProjectOverlay, RecommendedApi and SqliteFts expose 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 503 ServiceUnavailableError while plugins load. Plugins.WaitForPluginsAsync and LanguageModels.WaitForDefaultAsync are unchanged and still poll the plugin list as opencode's CLI does.

✨ Added

  • Sessions.GetTotalCostAsync returns 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 OpenCodeApiException whose 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 *.updated events a long-lived application
    can refresh on. The README's streaming example and QuickStart no longer treat a 503 as "the
    server is still starting".