Skip to content

fix(core): bump @ai-sdk/amazon-bedrock to 4.0.166 for reasoning and replay fixes - #45520

Merged
rekram1-node merged 2 commits into
anomalyco:devfrom
pengzh1:fix/issue-45405
Sep 1, 2026
Merged

fix(core): bump @ai-sdk/amazon-bedrock to 4.0.166 for reasoning and replay fixes#45520
rekram1-node merged 2 commits into
anomalyco:devfrom
pengzh1:fix/issue-45405

Conversation

@pengzh1

@pengzh1 pengzh1 commented Aug 27, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #45405.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Bumps @ai-sdk/amazon-bedrock from 4.0.158 to 4.0.166 in packages/core and packages/opencode — manifests and lockfile only (4 resolved packages incl. Bedrock's pinned transitives), no application code, no permanent minimumReleaseAgeExcludes additions.

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 typecheck passes in both packages/core and packages/opencode.
  • Legacy Bedrock/provider tests: 21 + 412 passed; core provider/config options: 22 passed; core Bedrock plugin tests: 17 passed.
  • Synthetic checks against the resolved packages: Converse/ConverseStream with GPT-5.x reasoning, gpt-oss flat reasoning, custom-ID matching, interrupted unsigned-reasoning replay (no cache / message cache / part cache), preservation of signed reasoning and real content/cache points, encrypted reasoning replay across a tool turn.
  • No live AWS/model calls were made.

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

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.
@msvechla

Copy link
Copy Markdown
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.
@rekram1-node rekram1-node changed the title fix(core): bump @ai-sdk/amazon-bedrock to 4.0.165 for reasoning variants fix(core): bump @ai-sdk/amazon-bedrock to 4.0.166 for reasoning and replay fixes Aug 31, 2026
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Aug 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@rekram1-node
rekram1-node merged commit 4502ee5 into anomalyco:dev Sep 1, 2026
13 checks passed
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.

fix: GPT-5.6 Bedrock reasoning variants fail with SDK 4.0.158

3 participants