Repository navigation
1.0.1
1.0.1 pins opencode 2.2.6 and is built on the GA .NET 11 SDK. It is a patch that moves the
protocol pin, so two generated types change the way upstream changed them: ConfigWarming.Interval
is now a ConfigWarmingInterval?, and IMcpServerConfig gains Pool. Both are listed as
breaking under protocol changes. Disposing a standalone server on Linux and macOS reports exit
code 143, where it reported 130. The Important Notes explain the version rule this release follows,
which differs from the one 1.0.0 stated.
🔌 Protocol changes
- The SDK pins opencode
2.2.6, where it pinned2.2.5. - Breaking:
ConfigWarming.Intervalchanges fromstring? IntervaltoConfigWarmingInterval? Interval, because opencode 2.2.6 declares it as"auto"or a duration. A reader changesstring? interval = warming.Interval;tostring? interval = warming.Interval?.Value;; assigning a non-null string still compiles through the implicit conversion, while a nullstring?now throwsArgumentNullExceptionwhere it was a valid value, andConfigWarmingInterval.Autonames"auto". - Breaking:
IMcpServerConfiggainsbool? Pool { get; }, so a type outside the SDK that implements the interface adds that member.McpLocalConfig.PoolandMcpRemoteConfig.Poolset opencode's option to share one connection to a server across every directory that configures it identically. client.Experimental.ListJobsAsynclists the server's active and unconsumed background jobs:JobShell,JobSubagentandJobImagebehindIJobInfo.ExperimentalJobListRequestfilters them bySessionId,Descendants,KindandStatus.ProviderCache.Warmingis a provider's or model's cache warming, which overrides the top-levelConfigWarming: a boolean, orProviderCacheWarmingSettingswithIntervalandDuration.client.FileSystem.ReadFileAsyncreportsFsReadResponse.ContentTypeastext/plain; charset=utf-8for HTML, JavaScript and XML files, SVG included, where it reported the file's own type: opencode 2.2.6 serves every file as a download and those types as plain text. The bytes are unchanged; a caller that needs the type reads it from the path.- A PTY read throws
OpenCodeTransportExceptionnaming close status 1012 ("location shut down") when the server shuts the PTY's location down, for example on a reload: opencode 2.2.6 closes the socket that way. SessionClient.CompactAsyncandSessionClient.AddSyntheticMessageAsyncno longer declare a404LocationNotFoundError: opencode 2.2.6 stops resolving a location for these two calls, so a missing session is their only404.ConfigInfoExperimentalgainsAllFlags,PartRowsandCodemodeVm, the policy actions gainWebsearchUse, andIntegrationAttempt.Pastesays an automatic OAuth attempt also accepts the redirect URL pasted from the browser as its code.
🔧 Changes
- Disposing a standalone server on Linux and macOS now reports
Exitedwith code 143, where it was 130: the pinned opencode 2.2.6 exits with 143 onSIGTERM.SIGINTstill exits with 130, and Windows still reports code 1. - The packages are built on the GA .NET 11 SDK (
11.0.100), where1.0.0was built on the go-live release candidate as a one-time exception to the rule that a non-preview package is built only on a GA SDK (ADR-0002).
📚 Documentation
- The domain glossary is
GLOSSARY.md(previouslyCONTEXT.md), and the getting-started guide points there. OpenCodeServer's andOpenCodeServer.StartAsync's summaries name the two servers outside the Windows job: a batch shim's real server and one whose job assignment Windows refuses, which end with a crashed owner only through the stdin lease.- The remark on every generated union and hoisted interface,
IMcpServerConfigamong them, no longer says that a minor version may move the pin: a release of any bump type may move it (ADR-0034), so the remark now says only that the members change when the SDK moves to a newer pin. Likewise,OpenCodeServerExit.Kind's andOpenCodeServerExitKind's summaries say members may be added in a later version, where they said a minor one: the SDK's own additions are a patch.
📋 Important Notes
- The version rule differs from the one
1.0.0stated. A version follows the bump type of the upstream opencode release it pins, where1.0.0's notes said only a minor moves the pin. A patch such as this one can therefore move the pin and change generated protocol types the way upstream changed them; each such change is listed as breaking under protocol changes. A family marked[Experimental]may change in any release that moves the pin, where it was any minor. The SDK's own fixes and additions are a patch, and a break of the hand-written surface needs a major (ADR-0034).1.0.0's notes also said1.0.1would have no API change; it moves the pin to opencode2.2.6.