fix: bump @openrouter/ai-sdk-provider to 2.9.0#30800
Merged
rekram1-node merged 1 commit intoJun 4, 2026
Merged
Conversation
2.8.1 stalls/duplicates streaming tool calls for models that interleave reasoning + tool calls over OpenRouter (e.g. moonshotai/kimi-k2.6). 2.9.0 contains the upstream parser fix (OpenRouterTeam/ai-sdk-provider#489). Closes anomalyco#26244
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates @openrouter/ai-sdk-provider to a newer version across the workspace to keep OpenRouter integration current and consistent.
Changes:
- Bump
@openrouter/ai-sdk-providerfrom2.8.1to2.9.0inpackages/opencodeandpackages/core - Regenerate
bun.lockto reflect the new dependency version
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/opencode/package.json | Updates @openrouter/ai-sdk-provider version to 2.9.0. |
| packages/core/package.json | Updates @openrouter/ai-sdk-provider version to 2.9.0. |
| bun.lock | Updates locked @openrouter/ai-sdk-provider to 2.9.0 and introduces an additional nested lock entry. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Collaborator
|
ty! |
ShamirSecret
pushed a commit
to ShamirSecret/auto-code-machine
that referenced
this pull request
Jun 5, 2026
(cherry picked from commit e45e0e1)
avion23
pushed a commit
to avion23/opencode
that referenced
this pull request
Jun 10, 2026
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.
Issue for this PR
Closes #26244
Type of change
What does this PR do?
Bumps
@openrouter/ai-sdk-providerfrom2.8.1to2.9.0inpackages/opencodeandpackages/core(+bun.lock).2.8.1has a streaming-parser bug: its merge-path re-emits atool-callevent every time the accumulated tool-call arguments are still parsable JSON, and trailing-whitespace/closing-token deltas keep them parsable. So models that emit a trailing chunk after a complete tool call get duplicatetool-callevents with the same id. Downstream (the AI SDKstreamTextloop opencode runs on) treats them as two calls and runs the tool twice, which on reasoning+tool-call interleaving models likemoonshotai/kimi-k2.6over OpenRouter degenerates into a silent stall / self-reinforcing duplicate loop.2.9.0fixes this by gating the merge-path emit on asentflag — see OpenRouterTeam/ai-sdk-provider#489 (released in https://github.com/OpenRouterTeam/ai-sdk-provider/releases/tag/2.9.0). Same peer deps (ai ^6.0.0), so it's a drop-in minor bump.How did you verify your code works?
bun installresolves2.9.0cleanly (matching integrity), respecting the repo'sminimumReleaseAgepolicy.tsgo --noEmitclean in bothpackages/coreandpackages/opencode.bun testgreen:packages/opencode/test/provider/transform.test.ts(246/246, incl. the@openrouter/ai-sdk-providerblock) andpackages/core/test/plugin/provider-openrouter.test.ts+test/config/provider-options.test.ts(24/24 — the plugin test actually instantiates2.9.0'screateOpenRouter).Checklist