fix(core): bump @ai-sdk/amazon-bedrock to 4.0.166 for reasoning and replay fixes - #45520
Merged
Conversation
4.0.158 emits an invalid flat reasoning field for Bedrock profiles like global.openai.gpt-5.6-luna and the request 400s (Unknown parameter: reasoningConfig). 4.0.165 sends nested reasoning.effort for GPT-5.x. Its transitives (@ai-sdk/openai 3.0.104, @ai-sdk/provider-utils 4.0.49) were published under the 3-day minimumReleaseAge window, so add them to minimumReleaseAgeExcludes alongside the existing @ai-sdk entries.
pengzh1
force-pushed
the
fix/issue-45405
branch
from
August 27, 2026 22:02
db4758d to
b802a11
Compare
Contributor
|
@neriousy can we get this merged? This is currently blocking is from using the new GPT models with opencode |
Include the cache-only assistant replay fix alongside GPT-5.x reasoning support. Remove the PR's permanent release-age exclusions and update only Bedrock's required transitive dependencies.
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
This was referenced Sep 1, 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 #45405.
Type of change
What does this PR do?
Bumps
@ai-sdk/amazon-bedrockfrom 4.0.158 to 4.0.166 inpackages/coreandpackages/opencode— manifests and lockfile only (4 resolved packages incl. Bedrock's pinned transitives), no application code, no permanentminimumReleaseAgeExcludesadditions.Why it works: 4.0.165+ restores encrypted-reasoning support and fixes GPT-5.x reasoning-effort requests; 4.0.166 additionally omits assistant messages left with only cache points after unsigned reasoning is filtered (interrupted Bedrock thinking turns previously replayed as empty/cache-only content). Stopping at 4.0.163/4.0.165 still leaves those replay failures.
How did you verify your code works?
bun typecheckpasses in bothpackages/coreandpackages/opencode.Screenshots / recordings
Not a UI change.
Checklist