Skip to content

refresh: pin opencode v2.3.2 - #972

Merged
Blind-Striker merged 1 commit into
masterfrom
refresh/v2.3.2
Nov 22, 2026
Merged

Blind-Striker merged 1 commit into
masterfrom
refresh/v2.3.2

Conversation

@Blind-Striker

Copy link
Copy Markdown
Collaborator

What

The protocol pin moves from opencode v2.3.0 to v2.3.2 (c0ad18b402eb2827fc1ee71c171b1177b3fc02d1). Under the versioning rule, an upstream patch is an SDK patch, so this ships as 2.0.1. The v2.3.1 and v2.3.2 documents are identical.

The refresh follows spec/SNAPSHOT.md:

  1. refresh-spec --ref v2.3.2 prepares the snapshot from upstream's own generator, over the two Restore patches. Neither patch is retired: upstream has fixed neither the artifact location style nor the media file attachment.
  2. refresh-spec --apply installs it. That moves the submodule, renders SNAPSHOT.md, writes the receipt, and re-pins the watched sources.
  3. generate then regenerates the SDK.

Protocol delta

  • 173 operations (+9, −6).
    • Removed: experimental.schedule.{create,delete,get,list,pause,resume}. Upstream replaced schedules with automations.
    • Added: experimental.automation.{create,delete,get,list,pause,resume}, experimental.generate.video.{create,get} and experimental.blob.get.
    • Changed: experimental.job.list, which adds the codemode job kind.
  • Schemas: 37 added, 20 removed (Schedule.* and ScheduleNotFoundErrorEncoded), 4 changed (Config.InfoEncoded, Job.Info, Job.Kind, Model.Type).

Curation

  • Automations follow the schedule conventions:
    • CreateAutomationAsync, GetAutomationAsync and ListAutomationsAsync come from the grammar;
    • DeleteAutomationAsync, PauseAutomationAsync and ResumeAutomationAsync take the reviewed rows the schedule calls had;
    • automation.list's sessionID and directory queries stay strings;
    • the Automation model family is owned by the experimental client.
  • Video generation is named after upstream's summaries ("Create a video generation", "Read a video generation"): CreateVideoGenerationAsync and GetVideoGenerationAsync. The create call returns a job ID, not a video.
  • Blobs: GetBlobAsync streams the body, as GetMediaAsync does.
  • Ownership: the Blob models and VideoNotFoundError are owned by the experimental client.
  • Description rows: the schedule rows are removed. One source line that upstream shifted (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 one IsBaselineSuppression, 45 per target and no cross-asset entry. The pin moves, so a patch accepts them (ADR-0034).

  • Schedules become automations, with Before/After. Upstream's migration (packages/core/src/database/migration/20261116043204_automation.ts:40-42, filter at :73-76) carries over only active or paused prompt schedules with no if or until condition and no ends.times limit. It deletes the rest, finished ones included. The CHANGELOG warns that existing schedules may not survive the server upgrade.
  • ConfigInfoExperimental.BackgroundCompaction is removed. Upstream moved it to compaction.background (ConfigInfoCompaction.Background), which now defaults to on.
  • ConfigInfoExperimental.ShellTimeoutBackground is removed. Moving a timed-out foreground command to the background is now always on.

ConfigInfoExperimental.Schedules stays: upstream keeps schedules as a deprecated alias of automations.

Hand-written code and tests that follow the pin

  • PinnedRelease.Version becomes 2.3.2. The version-mismatch and resolver tests that use the pinned version follow it.
  • The binder test's expected error tags follow the error catalogue: AutomationNotFoundError, BlobNotFoundError and VideoNotFoundError replace ScheduleNotFoundError.
  • The reviewed public API baseline is re-accepted. Reviewed by declaration:
    • removed: exactly the schedule surface and the two config properties;
    • added: the automation, video, blob and Code Mode job types, ConfigInfoCompaction.Background, ConfigInfoExperimental.Automations, VideoGenerate and FullCodemode, JobKind.Codemode, ModelType.Video, and the nine client methods.

Documentation

Watched upstream sources

Lost anchors, rewritten. At this pin the persistent-terminal daemon speaks protocol 9, and @opencode/pty is 0.6.0.

  • The core/src/persistent-pty/daemon.ts and core/package.json rows take the new anchors.
  • Their behaviour texts were re-verified at the pin: spawn arguments and flags at daemon.ts:275-278, the single retry at :322-330, best-effort handoff at :458-467.
  • The core/package.json row now says that the server's persistent-PTY service speaks the daemon protocol. The SDK reaches it only over HTTP and the handoff sidecar.
  • The cli/package.json row's dependency sentence says 0.6.0.
  • No SDK code change is needed for protocol 9.

The generate.ts row now also watches the video calls: create answers once the provider accepts the job, get answers at once, and both refuse with ForbiddenError while video_generate is off.

Moved watched files whose anchors still hold, each diff read against its behaviour text:

File Change at this pin Drift
server/src/routes.ts Automation, blob store and video layers; a global defect-response middleware that answers an empty 500 with a JSON UnknownError (message and ref) None for its row. The 500 body is covered separately.
server/src/process.ts Schedule runner becomes the automation runner None
cli/src/server-process.ts instructions.claude gating for CLAUDE.md None
core/src/session/session.ts Synthetic-input admission refactor, prompt onAccepted checkpoint None (awaitIdle unchanged)
server/src/handlers/generate.ts Video create and get Row extended (above)
server/src/handlers/fs.ts Range parsing moves to a shared module None
core/src/tool/runtime.ts codecFor exported None
httpapi-codegen/src/index.ts Deprecated client aliases only for shipped paths None
root package.json Version and lint tooling; effect still 4.1.0 None
server/src/handlers/persistent-pty.ts The experimental handler map: schedule routes become automation and blob routes None
client/src/promise/generated/client.ts The new operations; both header-merge and fetch anchors match None
protocol/src/errors.ts ScheduleNotFoundError becomes AutomationNotFoundError; VideoNotFoundError and BlobNotFoundError added Reaches the generated error union (above)

Generated 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:

  • the full local gate passed:
    • the build, with 0 warnings;
    • whitespace, style, Slopwatch, clones;
    • generate --verify and refresh-spec --verify;
    • both packs, validated against 2.0.0;
    • 12,920 tests with 0 failed (OpenCode.Sdk.Tests on net10.0 and net11.0, Tools, Extensions, HQ);
    • the service elections 22 of 22 and Native AOT 3 of 3;
    • the net472 build and a clean tree.
  • The Windows persistent-terminal live rows are pending, on a Windows gate on this head: the daemon's Windows pipe code changed at this pin.
  • After this merges, the distributed-build consumer leg runs on the new commit (docs/engineering/quality-gates.md).

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.
@Blind-Striker Blind-Striker added this to the Next milestone Nov 22, 2026
@Blind-Striker
Blind-Striker added this pull request to the merge queue Nov 22, 2026
Merged via the queue into master with commit c4ab2c2 Nov 22, 2026
17 checks passed
@Blind-Striker
Blind-Striker deleted the refresh/v2.3.2 branch November 22, 2026 13:42
@Blind-Striker Blind-Striker mentioned this pull request Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant