Repository navigation
refresh: pin opencode v2.4.1 - #988
Merged
Merged
Conversation
The accepted snapshot moves from the v2.3.2 tag to v2.4.1 through refresh-spec: 178 operations, five of them new, and 531 components. Restore patch 003 is rebased for context, because upstream added a comment line inside the user message schema while the projection it repairs is unchanged; patch 002 still applies as it was. The job cancel and machine list, add and remove operations are generated with names following the existing patterns. The machine link is a WebSocket upgrade, so it is transport-owned and fingerprinted like the other WebSocket operations; its door is planned, and the README and roadmap say so. The object form of video_generate is named after its image_generate twin and reuses the model selection type, the two boolean flags whose names look like secrets are cleared, and a machine invite's join string, which carries the join secret, prints masked. MachineReach joins the CA1056 rule for wire strings the schema does not mark as URIs. The removed config members, the blob expiry and the video_generate retype are recorded as baseline suppressions against 2.0.1, since the pin moves. The server no longer waits for plugins, so the getting-started guide, the README example, QuickStart and the live readiness helper stop describing a startup 503; the source-watch rows for location, model, generate and the shared event feed follow the new behaviour. The pinned version, its test literals and the consumer pins move to 2.4.1.
The RPC handler still has no activation barrier at v2.4.1, so the note that a one-shot external-mode call proves rpc.unavailable holds at the new pin.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The protocol pin moves from opencode
v2.3.2tov2.4.1(6f0514052a3c859894ad01bb14cc14dda1e44b96). Under the versioning rule, an upstream minor is an SDK minor, so this ships as2.1.0.VersionPrefixis unchanged here; it moves at the release cut.The refresh follows
spec/SNAPSHOT.md:refresh-spec --ref v2.4.1prepares the snapshot from upstream's own generator, over the two Restore patches.+/-lines are identical, and the manifest records the new hash.refresh-spec --applyinstalls it. That moves the submodule, rendersSNAPSHOT.md, writes the receipt, and re-pins the watched sources.generatethen regenerates the SDK.Protocol delta
experimental.job.cancel,experimental.machine.{list,add,remove}andexperimental.machine.link.experimental.generate.video.{create,get}no longer declare403;event.subscribegainsexperimental.job.updated;session.createchanges are description-only.Automation.Action.Shell,Automation.ShellActionInput,Job.Video,Machine.{AddPayload,Info,Invite,Reach},MachineNotFoundErrorEncoded,Model.Speed,experimental.job.updated.Config.InfoEncoded,Blob.Info(noexpiresAt),Blob.ID(pattern),VoiceModel(requiredengineandname),Model.Info(experimental.speed),Job.InfoandJob.Kind(video),V2Event,Mcp.Protocol(the default negotiation is nowauto), and the automation action and trigger schemas.Curation
CancelJobAsyncandAddMachineAsynctake reviewed rows, because neithercancelnoraddis a grammar verb;ListMachinesAsyncandRemoveMachineAsynccome from the grammar.Machinemodel family is owned by the experimental client.experimental.machine.linkis transport-owned. It is a WebSocket upgrade: its document response is a placeholder, and its binary stream needs a hand-written door outside the HTTP pipeline. It is fingerprinted like the other three WebSocket operations. The SDK does not offer a door for it yet; one is planned.video_generate's object form is namedConfigVideoGenerateOptions, after itsimage_generatetwin. Itsmodelreuses the agent model selection type through an alias. The generated union isConfigInfoExperimentalVideoGenerate, the same shape the image union has.recommended_apiandopencode_apiflags are cleared as secret-looking names: both are boolean feature flags (packages/schema/src/config/flag.ts).MachineInvite.Joinprints masked. The join string base64url-encodes the join secret (packages/core/src/machine/join.ts).MachineReach.Urljoins the existing CA1056 rule in.editorconfigfor wire strings that the schema does not mark asformat: uri.session-message.ts,config/experimental.ts). Two inventory entries (SessionMessageAssistantand itsContent) leave the upstream-doc inventory, because upstream added an implementation note above them; their curated descriptions stay.Breaking changes that follow the pin
They are listed in the CHANGELOG under Protocol changes, each marked Breaking. They are recorded as baseline suppressions against
2.0.1: 36 entries, allCP0002andIsBaselineSuppression, 9 per target and no cross-asset entry.BlobInfo.get_ExpiresAt,set_ExpiresAt(Double)ConfigInfoExperimental.get_Automations,set_Automations(Nullable<Boolean>)ConfigInfo.Automationsswitches them offConfigInfoExperimental.get_McpEvents,set_McpEvents(Nullable<Boolean>)ConfigInfoExperimental.get_Schedules,set_Schedules(Nullable<Boolean>)ConfigInfoExperimental.get_VideoGeneratebool?to the boolean-or-options unionVoiceModel's new requiredEngineandNameare source-breaking for code that constructs the record. This is not a binary break, so it has no suppression.Hand-written code and tests that follow the pin
PinnedRelease.Versionbecomes2.4.1. The version-mismatch, resolver and resolve-live tests follow it, including the resolver's near-miss literals.MachineNotFoundError;experimental.machine.linkadded.experimental.job.updatedtoExperimentalJobUpdated.503while plugins load. In response:503as "still starting";WaitForDefaultAsyncandWaitForPluginsAsynckeep their poll, as opencode's CLI does.VideoGenerate's union, and the four client methods.Documentation
503catch;2.4.1.*.updatedevents a long-lived application can refresh on.OPENCODE001list names machines.v2.4.1: the RPC handler still has no activation barrier at the new pin.2.4.1:Watched upstream sources
At this pin, 26 watched files changed and every anchor but one still holds. Each SDK-owned diff was read against its behaviour text.
Re-described:
server/src/location.tsserver/src/handlers/model.tsWaitForDefaultAsynckeeps its own pollserver/src/handlers/generate.tsclient/src/shared-events.tsMoved, rows hold, no SDK reach:
package.json(versions;effectstill4.1.0);cli/src/index.ts,cli/test/service.test.ts;client/src/promise/generated/client.ts,client/src/solid/data.ts(jobs and send sequencing; the cost and child-paging code is untouched),client/test/shared-events.test.ts;core/package.json,core/src/mcp/index.ts,core/src/session/session.ts,core/src/tool/runtime.ts;httpapi-codegen/src/index.ts;protocol/src/errors.ts(addsMachineNotFoundError),protocol/src/groups/session.ts;server/src/handlers/persistent-pty.ts,server/src/middleware/authorization.ts,server/src/process.ts,server/src/routes.ts;tui/src/component/terminal-pane.tsx.The three paths owned by another consumer moved too, and were not analysed here.
Verification
On this head, with the submodule at the new pin:
generate --verifyandrefresh-spec --verify;2.0.1;OpenCode.Sdk.Testsonnet10.0andnet11.04,977 each, Tools 2,875, Extensions 42, HQ 165);net472build and a clean tree.@opencode/pty0.6.0, and the lockfile resolves it to the same integrity hash at both tags. Upstream's in-repo daemon source did change (Windows pipe handling) without a release, so the next@opencode/ptyversion will need that rerun.docs/engineering/quality-gates.md).