Skip to content

1.0.1

Choose a tag to compare

@Blind-Striker Blind-Striker released this 10 Nov 21:10
· 368 commits to master since this release
8dcbffb

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 pinned 2.2.5.
  • Breaking: ConfigWarming.Interval changes from string? Interval to ConfigWarmingInterval? Interval, because opencode 2.2.6 declares it as "auto" or a duration. A reader changes string? interval = warming.Interval; to string? interval = warming.Interval?.Value;; assigning a non-null string still compiles through the implicit conversion, while a null string? now throws ArgumentNullException where it was a valid value, and ConfigWarmingInterval.Auto names "auto".
  • Breaking: IMcpServerConfig gains bool? Pool { get; }, so a type outside the SDK that implements the interface adds that member. McpLocalConfig.Pool and McpRemoteConfig.Pool set opencode's option to share one connection to a server across every directory that configures it identically.
  • client.Experimental.ListJobsAsync lists the server's active and unconsumed background jobs: JobShell, JobSubagent and JobImage behind IJobInfo. ExperimentalJobListRequest filters them by SessionId, Descendants, Kind and Status.
  • ProviderCache.Warming is a provider's or model's cache warming, which overrides the top-level ConfigWarming: a boolean, or ProviderCacheWarmingSettings with Interval and Duration.
  • client.FileSystem.ReadFileAsync reports FsReadResponse.ContentType as text/plain; charset=utf-8 for 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 OpenCodeTransportException naming 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.CompactAsync and SessionClient.AddSyntheticMessageAsync no longer declare a 404 LocationNotFoundError: opencode 2.2.6 stops resolving a location for these two calls, so a missing session is their only 404.
  • ConfigInfoExperimental gains AllFlags, PartRows and CodemodeVm, the policy actions gain WebsearchUse, and IntegrationAttempt.Paste says 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 Exited with code 143, where it was 130: the pinned opencode 2.2.6 exits with 143 on SIGTERM. SIGINT still exits with 130, and Windows still reports code 1.
  • The packages are built on the GA .NET 11 SDK (11.0.100), where 1.0.0 was 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 (previously CONTEXT.md), and the getting-started guide points there.
  • OpenCodeServer's and OpenCodeServer.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, IMcpServerConfig among 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 and OpenCodeServerExitKind'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.0 stated. A version follows the bump type of the upstream opencode release it pins, where 1.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 said 1.0.1 would have no API change; it moves the pin to opencode 2.2.6.