Skip to content

fix(agents): upgrade opencode to 2.4.1 - #3102

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

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

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

Summary

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

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

OpenCode has shipped 2.0.25 through 2.4.1 since our pin. All of them fall inside our ^2.0.24 peer range, so users can already install them. From 2.2.1 on, agents/models/opencode doesn't work for them: every prompt comes back unanswered. This PR carries over the source, config and docs changes from #3040 (2.4.0), which only github-actions[bot] committed to, and moves on to 2.4.1. Nothing from 2.4.0 to 2.4.1 needed a code change. 2.4.1 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:60 on main). With that, OpenCode loaded a bundled package in-process and our language hook swapped in the model. Now that the package isn't bundled, OpenCode hands the provider to its npm installer, which can't run in workerd. At 2.4.1 with the old carrier, 14 of the 35 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. Our 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 (index.ts:50-58) 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 carries 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.1 depends on effect 4.1.0. So the empty-httpapi-scalar stub at packages/agents/src/harness/opencode/tests/vitest.config.ts:17 and examples/next/harnesses/opencode/vite.config.ts:16 no longer matched any 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 (marked // src/models-dev/snapshot.txt). 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, so 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:21-25 gains an empty-models-dev-snapshot transform, implemented in the new tests/models-dev-snapshot.ts, that replaces the literal with '{}'. It throws a named error if the marker is present but the literal changed shape, or if an @opencode/core module over 1 MB has no marker. The new tests/models-dev-snapshot.test.ts (4 tests) covers these cases. 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. At 2.4.1, wrangler deploy --dry-run on the example's vite build output reports Total Upload: 27760.77 KiB / gzip: 4492.03 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.4.0 → 2.4.1 (4)
  • "release: v2.4.1" (6f0514052a) and "release: v2.4.0 (#65753)" (d6379ff0e1, the version bump merged back to dev): package.json versions only.
  • "fix(plugin): lower the @OpenTui peer floor to 0.8.0 and stop raising it on upgrades (#65819)" (698800f59c): optional TUI peers of @opencode/plugin. We don't use @opencode/plugin/tui.
  • "feat(plugin): let plugins create, list and delete automations (#65747)" (26f4041911): adds ctx.experimental.automation to the plugin context. Additive. Our plugin in agents/models/opencode and the harness never create automations.
No effect on us: 2.3.2 → 2.4.0 (17, as reviewed in #3040)
  • "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 and #3040)
  • 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.

I checked every commit in git log v2.0.24..v2.4.0 -- packages/sdk packages/plugin (136) against the hashes above, and none is missing.

Decisions

  • Carry over fix(agents): upgrade opencode to 2.4.0 #3040 rather than starting over. Its source, config and docs changes apply cleanly to current main, and 2.4.0 → 2.4.1 changes only the plugin context type (additive) and an optional peer floor in packages/sdk and packages/plugin. I regenerated the lockfile for 2.4.1, re-measured the example's Worker size, and wrote a new changeset. fix(agents): upgrade opencode to 2.4.0 #3040 is closed as superseded.
  • Peer floor ^2.2.3, not ^2.4.1. 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 a newer release. 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.4.0 #3040 fix(agents): upgrade opencode to 2.4.0: made obsolete. This PR contains its changes and moves on to 2.4.1. Only github-actions[bot] committed to it, so it gets a "Superseded by" comment and is closed.
  • 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.
  • Tests: move to @cloudflare/vitest-plugin #3098 Tests: move to @cloudflare/vitest-plugin: conflicts. It rewrites packages/agents/src/harness/opencode/tests/vitest.config.ts and pnpm-lock.yaml, which this PR also changes. Whichever lands second must keep the http-api path in empty-httpapi-scalar and the empty-models-dev-snapshot transform, or harness-opencode crashes at module load.

No other open PR changes @opencode/* versions. I read the packages/agents/package.json patches of #2511, #2421, #2416, #2273, #2250 and #2203.

Other changes

  • packages/agents/package.json: dev pins 2.0.24 → 2.4.1 and peer range ^2.0.24 → ^2.2.3 for both packages.
  • examples/next/harnesses/opencode/package.json: pins 2.0.24 → 2.4.1.
  • pnpm-lock.yaml: regenerated with pnpm install. It now resolves only @opencode/* 2.4.1. The other entries that changed belong to OpenCode's dependency tree, for example effect and @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 @number0/iroh 1.2.0 added. Through pnpm's peer resolution, ws 8.21.3 → 8.23.0 in the peer suffixes of a few unrelated packages (OpenCode's @effect/platform-node-shared 4.1.0 needs ws ^8.22.0).
  • .changeset/opencode-2-4-1.md: agents patch describing the new peer floor, the provider and harness changes, and the one-way door.

Evidence

  • Before: at 2.0.24 on main: harness-opencode 31/31, and workers src/tests/models/opencode 5/5. At 2.4.1 with the old agents/models/opencode (other fixes in place): harness-opencode 14 of 35 fail with status: "unanswered".
  • After: harness-opencode 35/35 (31 existing plus the 4 new models-dev-snapshot.test.ts tests). workers src/tests/models/opencode 5/5. pnpm run build and pnpm run check pass: sherif, the exports check, the public API check, oxfmt, oxlint, and typecheck (134 projects). 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.1 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.
  • 2.4.0 adds a machine table, and its automation migration drops run-limited schedules. Our harness never creates schedules.

An older opencode release can't read those sessions. 2.4.1 adds no migrations. 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.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 github-actions Bot added the dependencies Pull requests that update a dependency file label Nov 24, 2026
@changeset-bot

changeset-bot Bot commented Nov 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4b40c83

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

Comment thread .changeset/opencode-2-4-1.md Resolved
"@opencode/plugin": "2.0.24",
"@opencode/sdk": "2.0.24",
"@opencode/plugin": "2.4.1",
"@opencode/sdk": "2.4.1",

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.

🔍 Missing test for persisted session upgrades

The eviction test reopens storage written by the same OpenCode version. It never runs the upgrade migrations through prefixTables against a database created by 2.0.24.

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 round. The migrations added since 2.0.24 (session_allowance through machine-key, including blob, session_part, job and automation) are straight-line SQL with no branches on existing data. Every fresh harness test database runs each statement through prefixTables, and SQLite resolves table names when it prepares a statement, so a missed rewrite would already fail on an empty database. A real 2.0.24 fixture would need a second OpenCode version installed, or a checked-in database dump. This thread stays open in case a maintainer still wants that test.

Comment thread pnpm-lock.yaml
transitivePeerDependencies:
- '@ai-sdk/provider-utils'

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.

🔍 New native dependency at install time

OpenCode adds @number0/iroh as an optional native dependency. The Workers build leaves its binaries out, but the dependency tree now includes them despite the repository’s native dependency ban.

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. @number0/iroh is an optionalDependencies entry of @opencode/core, which comes in only through the @opencode/* dev pins and peer range. It is not a dependency of agents, and no Worker code imports it. The rule in AGENTS.md covers dependencies that code running in Workers relies on. The lockfile already has native optional binaries of the same kind (@opencode/pty-*, @cloudflare/workerd-*, @esbuild/*), and pnpm run build and pnpm run check pass. We can't drop it from our side without forking OpenCode.

- The rollback warning now says assistant replies move into session_part, leaving inline content empty.

Gardener-Operation: op_9c8bca6a3aaf429106957d20574c96a5580879e1ddd9a35b9c0565990a6579c9:127d539d72555a92cdc085c06315a599b406d4d249696b2e9be54fd140a8fa48
@github-actions

Copy link
Copy Markdown
Contributor Author

Review round 1: fixed 1 of 3 Devin Review findings and declined 2.

  • Fixed: rollback hides plain-text replies. The changeset's one-way-door note now names session_part, confirmed in @opencode/core 2.4.1.
  • Declined: missing upgrade test from 2.0.24. Every migration since 2.0.24 is unconditional SQL, and fresh test databases already run all of it through prefixTables.
  • Declined: @number0/iroh native dependency. It is a transitive optional dependency of the OpenCode dev/peer packages, not a dependency of agents, and no Worker code imports it.

The review body only gives a count of findings, so it needed no separate answer.

Tests: the only change is to the changeset, so no package tests apply. pnpm run build and pnpm run check pass.

github-actions Bot added a commit that referenced this pull request Nov 26, 2026
Move @opencode/sdk and @opencode/plugin to 2.4.2, 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 #3102
(2.4.1), rebased on the current harness test config.

Gardener-Operation: op_9d1d38ebdd927411a2f09ed1b844538b53770bc4e994f77e9094aa2417616500:3a43ca8202b50d66d9888941b2cf1e6f1b9ec4a5878b5eae4dab35aa8336cff6
@github-actions

Copy link
Copy Markdown
Contributor Author

Superseded by #3246, which carries over these changes on current main and moves on to opencode 2.4.2.

@github-actions github-actions Bot closed this Nov 26, 2026
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