Skip to content

fix(agents): upgrade opencode to 2.4.0 - #3040

Closed
github-actions[bot] wants to merge 2 commits into
mainfrom
gardener/upstream/opencode-2.4.0
Closed

github-actions[bot] wants to merge 2 commits into
mainfrom
gardener/upstream/opencode-2.4.0

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Moves agents/harness/opencode and agents/models/opencode from opencode 2.0.24 to 2.4.0, and raises the peer floor to 2.2.3.

Package From To
@opencode/sdk (dev, packages/agents) 2.0.24 2.4.0
@opencode/plugin (dev, packages/agents) 2.0.24 2.4.0
@opencode/sdk / @opencode/plugin (examples/next/harnesses/opencode) 2.0.24 2.4.0
@opencode/sdk / @opencode/plugin peer range ^2.0.24 ^2.2.3

OpenCode has shipped 2.0.25 through 2.4.0 since our pin. All of them are inside our ^2.0.24 peer range, so users can already install them, and from 2.2.1 on agents/models/opencode doesn't work for them: every prompt comes back unanswered. This PR carries over the fixes from #2907 (2.3.2), which only github-actions[bot] committed to, and moves on to 2.4.0. Nothing from 2.3.2 to 2.4.0 needed a code change. 2.4.0 was published today and installs because @opencode/* is in minimumReleaseAgeExclude.

What changed upstream that affects us

  • high · breaking: "chore(core): remove bundled cohere, vercel and perplexity AI SDK packages (#59771)" (fc6922f6b8, in @opencode/core 2.2.1, a dependency of @opencode/sdk). agents/models/opencode told OpenCode its provider used aisdk:@ai-sdk/vercel (packages/agents/src/models/opencode/index.ts:59). That way OpenCode loaded a package in-process and our language hook swapped in the model. Without the bundled package, OpenCode hands the provider to its npm installer, which can't run in workerd. With 2.4.0 and the old code, 14 of the 31 harness-opencode tests fail with status: "unanswered". The fix relies on "fix(core): run dynamic provider npm fallback after external sdk hooks (#60380)" (b5c223182c, 2.2.3), which runs a plugin's aisdk.hook("sdk") before that loader. The plugin now answers the sdk step itself, under a package name that doesn't exist, and keeps its language hook:
    -const CARRIER_PACKAGE = "aisdk:@ai-sdk/vercel";
    -const UNREACHABLE_BASE_URL = "https://workers-ai.binding.invalid/v1";
    +const CARRIER_PACKAGE = "aisdk:agents/models/opencode";
    ...
    -            package: CARRIER_PACKAGE,
    -            settings: { baseURL: UNREACHABLE_BASE_URL, apiKey: "binding" }
    +            package: CARRIER_PACKAGE
    ...
    -      const hook = await ctx.aisdk.hook(
    +      const sdk = await ctx.aisdk.hook(
    +        "sdk",
    +        (event) => {
    +          event.sdk = { provider: CLOUDFLARE_PROVIDER_ID };
    +        },
    +        { providerID }
    +      );
    +      const language = await ctx.aisdk.hook(
             "language",
    The cleanup disposes both hooks. The doc comment above CARRIER_PACKAGE now explains the sdk hook.
  • medium · breaking: "refactor(client): group experimental SDK methods under client.experimental (#59072)" (9a9386edbc, 2.2.1). opencode.sessions.wait and opencode.sessions.log became aliases marked @deprecated Use `client.experimental.session.wait`. Removed in the next minor. (log has the same note). The harness calls them at packages/agents/src/harness/opencode/harness.ts:536, :670 and :1242, and OpenCodeLogEvent is derived from sessions.log at packages/agents/src/harness/opencode/types.ts:45. Our caret range admits the release that removes them.
    -              opencode.sessions.wait(
    +              opencode.experimental.session.wait(
    ...
    -      yield* opencode.sessions.log(
    +      yield* opencode.experimental.session.log(
    ...
    -  ReturnType<OpenCode["sessions"]["log"]> extends AsyncIterable<infer E>
    +  ReturnType<OpenCode["experimental"]["session"]["log"]> extends AsyncIterable<
    +    infer E
    +  >
  • low · breaking (test and example build): "chore: upgrade Effect to rc.118 (#50231)" (1aae67e853). OpenCode's Effect moved effect/unstable/httpapi to effect/http-api, and 2.4.0 depends on effect 4.1.0. Because of this, the empty-httpapi-scalar stub in packages/agents/src/harness/opencode/tests/vitest.config.ts:16 and examples/next/harnesses/opencode/vite.config.ts:16 matched no file.
    -        id.includes("/effect/dist/unstable/httpapi/internal/httpApiScalar.js")
    +        id.includes("/effect/dist/http-api/internal/httpApiScalar.js")
  • low · breaking (tests only): @opencode/core now inlines models.dev's catalog as one 8 MB string literal (// src/models-dev/snapshot.txt in dist/chunks/generate-*.js). Its release build fetches the catalog at publish time: "feat(build): fetch the models.dev catalog once per release and verify the bundled copy (#59173)" (d5bb993278, 2.2.0). The module is too large for the test runtime's module transfer, and harness.test.ts crashes with WebSocket 1009 "Message is too large". The tests set models: { fetch: false } and use only the Cloudflare provider. So packages/agents/src/harness/opencode/tests/vitest.config.ts gains an empty-models-dev-snapshot transform that replaces the literal with '{}'. If the pattern stops matching, the transform throws a named error. The example's production build keeps the catalog.
  • low · docs: the same growth makes examples/next/harnesses/opencode/README.md:83 ("OpenCode adds about 3.7 MB (gzip) to the Worker") out of date. wrangler deploy --dry-run on the example's vite build output at 2.4.0 reports Total Upload: 27734.85 KiB / gzip: 4486.55 KiB.
    -about 3.7 MB (gzip) to the Worker, so deploying needs the Workers Paid plan.
    +about 4.4 MB (gzip) to the Worker, so deploying needs the Workers Paid plan.
No effect on us: 2.3.2 → 2.4.0 (17)
  • "release: v2.4.0" (44aed4fd14) and "docs: add the v2.3.1 and v2.3.2 changelog entries to dev (#65701)" (406fd32698): package.json versions only.
  • GUI plugin work in packages/plugin/src/gui: "feat(desktop): drag files from the file tree into other Windows apps" (176db8d456), "fix(browser): keep the pane's tabs unless the person or the agent closes them" (34411562e4), "feat(app): send browser, file and review comments to the session with Mod+Enter" (3bc82a19b3), "feat(browser): open a link's new tab beside the tab it came from" (80d7c17d8e), "feat(desktop): signed-in browser pane with extensions, previews, prompts and agent safeguards" (cd0d037d68), "feat(app): consolidated navigation experiment" (723e0a9105), "feat(app): redesign the goal pill" (d412042beb), "feat(plugin): let GUI plugins declare their own icons" (22377659a8), "feat(app): wrap long lines in timeline code blocks" (363217b2c4). We don't use @opencode/plugin/gui*.
  • "feat(tui): add a Scripts tab to the composer picker" (b9a2dc32cb) and "Opentui 0.9.0" (4c5298bce4): plugin/src/tui and its optional @opentui/* peers. We don't use @opencode/plugin/tui.
  • "feat(core): revoke ChatGPT sign-in on logout" (53212a6125): adds an optional revoke to integration OAuth methods. We register no integrations.
  • "feat(core): add an experimental video generation tool" (49cbcd8c0c): adds a video kind to the idle hook's background list. We don't register the idle hook.
  • "feat(core): choose tools and Code Mode placement from the session's model" (007afb1b0c): tool.add gains Code Mode type parameters with defaults, and tool hook events gain info and codemode. We register no tool hooks. The example's workspace.ts tool.transform still typechecks.
  • "feat(core): add Bun.file, Bun.write and Bun.Glob to Code Mode behind full_codemode" (2f20ba65b7): SDK packaging script only.
No effect on us: 2.0.24 → 2.3.2 (118, as reviewed in #2907)
  • Release and version-sync commits (package.json versions only): c0ad18b402, a554d70499, 8aa00e805e, 5f76acb125, 4878a0e30f, 872f694b05, b44b7164ba, 4efad23dd8, f74b1416a8, 86976449c4, 2a3e7c0f34, e965774fa0, 4b50f5cc6c, 133b1ebfaf, d30e990c69, 4e95dacd81, 83c5abbbe3, f40dc433cb, 34d8ded0c5, c5aabae288, 03cb9b9946, 8059cdcbdf, 62e087ff7b, bd55d4895f (24).
  • Merge commits with no changes of their own: be315b1db8, 15d4afd089, 3a58a0c9cf, bcd713e2b7, 4b83402a29, 316a688fe9, fd0efe30f2 (7).
  • OpenTUI bumps in @opencode/plugin's optional TUI peers: 8db3d852cc, 13e8186410, ab4d1f3ab1, c9c1dc04f7, c7ddff776c, def5d948ef, d0a2ce32de, 65f8907708, da40b8fbe3, fcad1319bf, c4bf172532 (11). We don't use @opencode/plugin/tui.
  • Desktop GUI plugin work in packages/plugin/src/gui: dae4077a96, 758cf5adbe, 19d87a72e6, 5792c3e63b, 4ba064f653, b3de41a572, 2fc371657b, a88d3ca0bc, 8fdf2e5875, 4dd7b2662c, 69ef55f02b, 3fcdcb35e8, 27dd925604, 9a7f22a776, 605e912fda, 4a6067d85c, 3343941f16, 6469454d35, e23d54ca75, ffcaeec36c, b268a4e8b0, 1cb0633c8b (22). GUI only, and the optional peers aren't installed.
  • "refactor(core): keep Go allowance out of messages and sessions" (de284dc1bc), "feat(core): record reported cost and Go allowance" (4cba1b7f5d): plugin/src/tui only.
  • SDK tests and scripts only: 33ba535c9f, bcaf561d94, 0f1ddb4643, 9a3f03e5c5, 7a82f3aed2, 17229d24f5, f2323623c4 (7).
  • Build and tooling: 36f559b0c6, 6996bbcd6d, fa5b4bd618, 1dab9ae99e, 23359e9fe6, 84578e123f, 41b03dea0f (plugin README only), 50ae4bd4db. No runtime change for us.
  • "feat(core): background slow Code Mode scripts behind full_codemode" (30654dae6c): idle-hook background kind. We don't register the hook.
  • "feat(server): async video generation API with disk-backed media" (9f807c7777): ctx.experimental.generate drops video. Not used.
  • "feat(plugin): export Tool from the effect entrypoint" (b81c5f3465): Effect entry point only.
  • "fix(core): pass stored message metadata to session request hooks" (2f886a2a5e): we don't register session hooks.
  • "fix(core): keep plugin swaps going when a cleanup fails" (ec263d62b6): ours returns an async function cleanup.
  • "fix(app): accept a pasted redirect URL for provider sign-in" (2ef38b2172): we register no auth.
  • "feat(core): tell agents when they are in a fork" (e56eff2bc0): session hook event field. sessions.fork is unchanged.
  • "feat(core): use freeform tool input on models that support it" (53f2d631df): tool definitions. We register none.
  • "feat(plugin): let promise tools stop cooperatively through their signal" (64bd35afa9), "fix(core): keep a shell command's output when the user interrupts its call" (05d347d750): Promise tool execution. Our modules define no tools.
  • "feat(core): add GitHub Copilot Auto and a model resolve hook" (37729b1df1), "refactor(plugin): edit the model in place in experimental.model.resolve" (b88b867b6e): new experimental hook, not used.
  • "feat(core): add experimental artifacts with pluggable providers" (8f0fc21e71), "feat(core): add Claude Agent provider" (f29e281322), "feat(core): add image_generate tool" (89f3ac108f), "feat(core): add /goal with a client-side done check" (8de0323975): new domains and types, not used.
  • "feat(protocol): define experimental image and decision generation endpoints" (2a0639a11f): ctx.generate deprecated. Not used.
  • "fix(tui): identify config-defined providers" (cc4faf46bf) and its revert (cd15a6a38b): cancel out.
  • "feat(plugin): filter event subscriptions by type" (1434464f7e): plugin ctx.event.subscribe gains types. The harness subscribes through the client, which still delivers every event.
  • "fix(server): stop form polling from booting idle locations" (c8cf3a544f), "fix(app,server): stop subagent form polling from stalling sends" (946c331fce): internal, no API change.
  • "refactor(ai): make Promise the root entry and move Effect to @opencode/ai/effect" (dad29a8991): import paths inside the plugin package.
  • "refactor: remove redundant casts and duplicate helpers across sdk, plugin, codemode, and schema" (7a62a46695): DeepMutable has the same shape, and we don't name it.
  • "feat(plugin): expose session instruction entries to plugins" (6c74e11e95), "feat(plugin): expose session list" (bc5fa1ccf3), "feat(plugin): let plugins assert permissions" (6a7cedcbf1), "feat(plugin): expose credential.activate to server plugins" (d78267503d), "feat(integration): add declarative external connection method" (70c6c8cbc5): new plugin methods, not used.
  • "fix(app): show untracked folders as one review row" (21ed6e4103): VCS type field, not used.
  • "refactor: v2.1 minor breaking changes" (acdcdb8dd9): providerState renamed native on a session hook event. We don't register session hooks, and the shapes the harness reads typecheck and pass the tests.
  • "fix(plugin): return Promise tool throws as tool failures" (1438073271), "fix(plugin): keep each Promise hook rejection on its own tool call" (73517183b3): tool hooks, not used.
  • "feat(sdk): seed host plugins before recovery and harden workerd defaults" (55dde8810d): OpenCodeWorkerd.create({ plugins }) registers our plugin before restart recovery. Same API, and the crash-recovery tests pass.
  • "fix(core): route file overrides through Workspace.connect" (c50e39b72b): @opencode/sdk/effect only.
  • "fix(cli): give plugins the host's Effect" (c28e9ec311): Bun CLI plugin runtime.
  • "fix(sdk): release completed embedded request signals" (9ee97d87a2): per-request abort controllers. close() still aborts in-flight requests.

Decisions

  • Build on fix(agents): upgrade opencode to 2.3.2 #2907 rather than starting over. Its source, config and docs changes apply cleanly to current main, and 2.3.2 → 2.4.0 needed nothing more except the Worker size in the README. I regenerated the lockfile for 2.4.0 and wrote a new changeset. fix(agents): upgrade opencode to 2.3.2 #2907 gets closed as superseded.
  • Peer floor ^2.2.3, not ^2.4.0. The sdk-hook carrier needs 2.2.3, the first release that runs plugin sdk hooks before the npm loader. experimental.session.wait/log exist from 2.2.1. Nothing we use needs anything newer. Releases before 2.2.3 can't work with the new carrier: 2.2.1 and 2.2.2 lack @ai-sdk/vercel, and on 2.2.0 and earlier the carrier would reach the npm loader first.
  • patch changeset. The peer floor moves within major 2, and the source change fixes a provider that's broken on in-range releases.
  • Answer the sdk hook rather than borrow another bundled package. fix(agents): upgrade opencode to 2.2.1 #2776 used gitlab-ai-provider as a stand-in carrier. Since 2.2.3 a plugin's sdk hook answers before the loader, so we no longer depend on which AI SDK packages OpenCode bundles. The sdk value is a placeholder object, because our language hook always supplies the model.
  • Stub the models.dev catalog in the test config only. The harness tests never read the catalog (models: { fetch: false }). Shipped code and the example's production build are unchanged.

Needs a maintainer

None.

Affected open PRs

  • fix(agents): upgrade opencode to 2.3.2 #2907 fix(agents): upgrade opencode to 2.3.2: made obsolete. This PR contains its changes and moves on to 2.4.0. Only github-actions[bot] committed to it, so this PR supersedes and closes it.
  • fix(agents): upgrade opencode to 2.2.1 #2776 fix(agents): upgrade opencode to 2.2.1 (draft): made obsolete. It waits for "a proper way to supply the Cloudflare provider" in place of the gitlab-ai-provider carrier, and this PR uses the sdk-hook route that 2.2.3 added.
  • fix(opencode): stop pausing wait() and prompt() after every run #2785 fix(opencode): stop pausing wait() and prompt() after every run: needs updating. It rewrites the block around opencode.sessions.wait( at harness.ts:536, which this PR changes to opencode.experimental.session.wait(, so the two will conflict textually. It should keep the new call when rebased.

Other changes

  • packages/agents/package.json: dev pins 2.0.24 → 2.4.0 and peer range ^2.0.24 → ^2.2.3 for both packages.
  • examples/next/harnesses/opencode/package.json: pins 2.0.24 → 2.4.0.
  • pnpm-lock.yaml: regenerated with pnpm install. It now resolves only @opencode/* 2.4.0. Every other entry that changed belongs to OpenCode's dependency tree, for example effect 4.0.0-rc.112 → 4.1.0, @opentui/core 0.5.14 → 0.9.4, @opencode-ai/pty 0.2.0 → @opencode/pty 0.6.0, @ai-sdk/vercel/cohere/perplexity removed, and gitlab-ai-provider 6.24.0 and @number0/iroh 1.2.0 added.
  • .changeset/opencode-2-4-0.md: agents patch describing the new peer floor, the provider and harness changes, and the one-way door.

Evidence

  • Before: at 2.0.24, harness-opencode 31/31 and workers src/tests/models/opencode 5/5. With 2.4.0 and the old agents/models/opencode (the other fixes in place), harness-opencode fails 14/31 with status: "unanswered".
  • After: harness-opencode 31/31, workers src/tests/models/opencode 5/5. Build (pnpm run build), typecheck (134 projects), lint (oxlint, 0 warnings, 0 errors), format (oxfmt), sherif, the public API check and the exports check pass (pnpm run check). The example's vite build succeeds.

Merge Danger

Door: one-way

Blast Radius: OpenCode harness users

Users of agents/harness/opencode or agents/models/opencode on opencode below 2.2.3 get a peer-dependency warning and need to upgrade @opencode/sdk and @opencode/plugin to 2.2.3 or later (2.4.0 tested). Users on 2.2.1–2.2.2 are already broken. Once a Durable Object has run opencode 2.2.0 or later, OpenCode's migrations can't be rolled back. From 2.2.0, session media is stored as media:<hash> references into a new blob table. From 2.2.4, background job markers move out of kv into a new job table and the kv rows are deleted. An older opencode release can't read those sessions. 2.4.0 adds a machine table (20261119211416_machine, 20261120004954_machine-key). Our own code stores nothing new.


Opened by Gardener's opencode-upgrade task. Commits pushed by Gardener don't start CI: close and reopen this pull request, or push to it, to run it. Review comments are handled by Gardener's pr-review-fix task.


Devin Review

Move @opencode/sdk and @opencode/plugin to 2.4.0, with a peer range of ^2.2.3.
OpenCode 2.2.1 stopped bundling @ai-sdk/vercel, which agents/models/opencode
named as its carrier package, so every prompt came back unanswered. Since
2.2.3 OpenCode runs its npm loader after plugin sdk hooks, so the provider
now answers the sdk hook itself. Move the harness off the deprecated
sessions.wait and sessions.log to experimental.session, update the test and
example Vite configs for effect's new http-api path and the 8 MB models.dev
snapshot, and correct the example's Worker size.

Gardener-Operation: op_491276f2df18de2c74b140a534d534eea59ffd16ebbe3e469bb080978b6aa3bc:b0f8ca17e5463b5a44c4106c6a2ab347e48836094f873aa05a9d1b3474bee833
@github-actions github-actions Bot added the dependencies Pull requests that update a dependency file label Nov 23, 2026
@changeset-bot

changeset-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4144fe1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
agents Patch
@cloudflare/agent-think Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Devin Review

"@opencode/plugin": "2.0.24",
"@opencode/sdk": "2.0.24",
"@opencode/plugin": "2.4.0",
"@opencode/sdk": "2.4.0",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Upgrade deletes active run-limited schedules

On upgrade, @opencode/sdk 2.4.0 skips active schedules that still have a fixed number of runs left. The migration then drops the old schedule table, so those prompts never run.

Learn more

OpenCode 2.2.3 was already allowed by the previous peer range. Its experimental schedule API stores a repeat limit supplied as ends.times in schedule.remaining_runs. On startup, the harness opens OpenCode against the existing Durable Object database through the harness factory. OpenCode 2.4.0 includes 20261116043204_automation, which copies schedules only when remaining_runs IS NULL and then drops the old table. A schedule with a positive remaining run count is therefore lost even when it is active and has a next due time.

Example: Create an hourly prompt with a three-run limit on OpenCode 2.2.3. Upgrade while two runs remain. Neither remaining run is migrated or fires.

Recommended fix: Preserve these schedules and their remaining run counts in a compatible migration before adopting 2.4.0. If the new engine cannot represent them, block the upgrade for affected objects until operators can export or replace them. Add an upgrade test that opens storage containing an active run-limited schedule, not just a fresh database.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Declined for this PR. The upstream behaviour is real: @opencode/core 2.4.0's 20261116043204_automation copies only rows with remaining_runs IS NULL, then drops schedule. But that migration is OpenCode's, and neither agents/harness/opencode nor agents/models/opencode creates OpenCode schedules (nothing in either calls the schedule API). Only apps that call experimental.schedule with ends.times themselves are affected. Running our own migration ahead of OpenCode's would mean owning OpenCode's schema, which this upgrade won't take on. Leaving this open so a maintainer can decide whether to report it upstream or list it under Merge Danger.

Comment thread pnpm-lock.yaml
@@ -47,10 +47,10 @@ importers:
version: 1.32.2(@cfworker/[email protected])([email protected])([email protected])
'@openai/agents':
specifier: ^0.12.0
version: 0.12.0(@aws-sdk/[email protected])(@cfworker/[email protected])(@smithy/[email protected])([email protected])(ws@8.21.3)([email protected])
version: 0.12.0(@aws-sdk/[email protected])(@cfworker/[email protected])(@smithy/[email protected])([email protected])(ws@8.23.0)([email protected])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 WebSocket dependency changes beyond OpenCode

The lockfile moves ws from 8.21.3 to 8.23.0 for OpenAI, Pi, and Sandbox dependencies outside the OpenCode harness.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Declined: this is expected and comes from the OpenCode upgrade. OpenCode 2.4.0 brings in effect 4.1.0, and @effect/[email protected] depends on ws: ^8.22.0, which adds [email protected] to the lockfile. With autoInstallPeers: true, pnpm then resolves the optional ws peer of openai / @openai/agents to that version. It's a semver-minor bump within ws 8. pnpm install --frozen-lockfile, pnpm run build and pnpm run check pass on this lockfile.

…ule loses its marker

- Move the empty-models-dev-snapshot transform into tests/models-dev-snapshot.ts
- Throw for an @opencode/core module over 1 MB that has no snapshot marker
- Add models-dev-snapshot.test.ts

Gardener-Operation: op_742bba7d6a53511e2d39ab4cec73726303dec1b398ae97fa85a593e10926a77e:ec02428e70815e43bebca67ccda102da5c62e89da54417dfe2632d6be117475f
@github-actions

Copy link
Copy Markdown
Contributor Author

Review round 1: fixed one finding and declined two.

  • Fixed: the models.dev snapshot stub skipped modules whose marker was renamed. It now throws a named error for an oversized @opencode/core module with no marker. A new unit test covers this.
  • Declined: run-limited schedules are dropped by OpenCode 2.4.0's own automation migration. Our harness never creates schedules. Left open for a maintainer.
  • Declined: the ws 8.23.0 bump comes from OpenCode's effect 4.1.0 (@effect/platform-node-shared needs ws ^8.22.0), applied through pnpm's peer resolution.

The review body only gave a count of the findings.

Tests: harness-opencode 35/35, including the new models-dev-snapshot.test.ts. pnpm run build and pnpm run check pass.

github-actions Bot added a commit that referenced this pull request Nov 24, 2026
Move @opencode/sdk and @opencode/plugin to 2.4.1, with a peer range of ^2.2.3.
OpenCode 2.2.1 stopped bundling @ai-sdk/vercel, which agents/models/opencode
named as its carrier package, so every prompt came back unanswered. Since
2.2.3 OpenCode runs its npm loader after plugin sdk hooks, so the provider
now answers the sdk hook itself. Move the harness off the deprecated
sessions.wait and sessions.log to experimental.session, update the test and
example Vite configs for effect's new http-api path, stub the 8 MB models.dev
snapshot in the harness tests (failing loudly if its shape changes), and
correct the example's Worker size. Carries over the changes from #3040
(2.4.0).

Gardener-Operation: op_9454129a5e8c91a7fae167b9caf5cd4aaad5add54846225fcaa0cafb9b4ee25f:d7635d9e06ca3d2aa1f4afcfa3730fcb2021a772b5d030ed912f1864178ce476
@github-actions

Copy link
Copy Markdown
Contributor Author

Superseded by #3102, which carries these changes over and moves to opencode 2.4.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants