Repository navigation
refresh: pin opencode v2.3.2 - #972
Merged
Merged
Conversation
The accepted snapshot moves from the v2.3.0 tag to v2.3.2 through refresh-spec, with both restore patches still applying: 173 operations, six schedule operations replaced by six automation operations, and video generation and blob reads added. Curation follows the schedule conventions for automations, names the video job calls after upstream's summaries, and gives the blob and video not-found models their owner. The schedule types and the two config flags upstream removed are recorded as baseline suppressions against 2.0.0, since the pin moves. The source-watch rows for the persistent-terminal daemon follow its protocol 9 and opencode-pty 0.6.0, and the generate row now watches the video calls. The consumer pins, the guides' pin-dated statements, the roadmap and the changelog follow the new pin; the changelog warns that the server's migration deletes schedules that do not map onto automations.
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.0tov2.3.2(c0ad18b402eb2827fc1ee71c171b1177b3fc02d1). Under the versioning rule, an upstream patch is an SDK patch, so this ships as2.0.1. Thev2.3.1andv2.3.2documents are identical.The refresh follows
spec/SNAPSHOT.md:refresh-spec --ref v2.3.2prepares the snapshot from upstream's own generator, over the two Restore patches. Neither patch is retired: upstream has fixed neither the artifactlocationstyle nor the media file attachment.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.schedule.{create,delete,get,list,pause,resume}. Upstream replaced schedules with automations.experimental.automation.{create,delete,get,list,pause,resume},experimental.generate.video.{create,get}andexperimental.blob.get.experimental.job.list, which adds thecodemodejob kind.Schedule.*andScheduleNotFoundErrorEncoded), 4 changed (Config.InfoEncoded,Job.Info,Job.Kind,Model.Type).Curation
CreateAutomationAsync,GetAutomationAsyncandListAutomationsAsynccome from the grammar;DeleteAutomationAsync,PauseAutomationAsyncandResumeAutomationAsynctake the reviewed rows the schedule calls had;automation.list'ssessionIDanddirectoryqueries stay strings;Automationmodel family is owned by the experimental client.CreateVideoGenerationAsyncandGetVideoGenerationAsync. The create call returns a job ID, not a video.GetBlobAsyncstreams the body, asGetMediaAsyncdoes.Blobmodels andVideoNotFoundErrorare owned by the experimental client.config/experimental.ts) is re-pointed.Breaking changes that follow the pin
They are listed in the CHANGELOG under Protocol changes and recorded as baseline suppressions against
2.0.0. That is 180 entries, every oneIsBaselineSuppression, 45 per target and no cross-asset entry. The pin moves, so a patch accepts them (ADR-0034).packages/core/src/database/migration/20261116043204_automation.ts:40-42, filter at:73-76) carries over only active or paused prompt schedules with noiforuntilcondition and noends.timeslimit. It deletes the rest, finished ones included. The CHANGELOG warns that existing schedules may not survive the server upgrade.ConfigInfoExperimental.BackgroundCompactionis removed. Upstream moved it tocompaction.background(ConfigInfoCompaction.Background), which now defaults to on.ConfigInfoExperimental.ShellTimeoutBackgroundis removed. Moving a timed-out foreground command to the background is now always on.ConfigInfoExperimental.Schedulesstays: upstream keepsschedulesas a deprecated alias ofautomations.Hand-written code and tests that follow the pin
PinnedRelease.Versionbecomes2.3.2. The version-mismatch and resolver tests that use the pinned version follow it.AutomationNotFoundError,BlobNotFoundErrorandVideoNotFoundErrorreplaceScheduleNotFoundError.ConfigInfoCompaction.Background,ConfigInfoExperimental.Automations,VideoGenerateandFullCodemode,JobKind.Codemode,ModelType.Video, and the nine client methods.Documentation
2.3.2: the README, the bug-report template, and the errors and requests guides.v2.3.2. They still hold at the new pin: v2: declining a tool call is recorded as shutdown, so the declined turn resumes after a server restart anomalyco/opencode#54180 is open, #64032 was closed as its duplicate, and the session execution code still classifies a reasonless interrupt as shutdown.OPENCODE001list names automations, video generation and blobs.Watched upstream sources
Lost anchors, rewritten. At this pin the persistent-terminal daemon speaks protocol 9, and
@opencode/ptyis 0.6.0.core/src/persistent-pty/daemon.tsandcore/package.jsonrows take the new anchors.daemon.ts:275-278, the single retry at:322-330, best-effort handoff at:458-467.core/package.jsonrow now says that the server's persistent-PTY service speaks the daemon protocol. The SDK reaches it only over HTTP and the handoff sidecar.cli/package.jsonrow's dependency sentence says 0.6.0.The
generate.tsrow now also watches the video calls: create answers once the provider accepts the job, get answers at once, and both refuse withForbiddenErrorwhilevideo_generateis off.Moved watched files whose anchors still hold, each diff read against its behaviour text:
server/src/routes.tsUnknownError(message andref)server/src/process.tscli/src/server-process.tsinstructions.claudegating for CLAUDE.mdcore/src/session/session.tsonAcceptedcheckpointawaitIdleunchanged)server/src/handlers/generate.tsserver/src/handlers/fs.tscore/src/tool/runtime.tscodecForexportedhttpapi-codegen/src/index.tspackage.jsoneffectstill4.1.0server/src/handlers/persistent-pty.tsclient/src/promise/generated/client.tsprotocol/src/errors.tsScheduleNotFoundErrorbecomesAutomationNotFoundError;VideoNotFoundErrorandBlobNotFoundErroraddedGenerated naming: upstream's move of experimental methods under
client.experimental, with deprecated aliases, doesn't reach it. The SDK names operations from their operationIds, and no existing operationId changed.Verification
On this head, with the submodule at the new pin:
generate --verifyandrefresh-spec --verify;2.0.0;OpenCode.Sdk.Testsonnet10.0andnet11.0, Tools, Extensions, HQ);net472build and a clean tree.docs/engineering/quality-gates.md).