Skip to content

fix: bump Amazon Bedrock provider - #43909

Merged
neriousy merged 1 commit into
devfrom
bedrock-redacted-bump
Aug 21, 2026
Merged

fix: bump Amazon Bedrock provider#43909
neriousy merged 1 commit into
devfrom
bedrock-redacted-bump

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • bump @ai-sdk/amazon-bedrock from 4.0.112 to 4.0.158 in the legacy and core runtimes
  • update the lockfile for the provider's resolved transitive dependencies
  • pick up upstream support for Bedrock Converse reasoningContent.redactedContent, including preserving and replaying encrypted reasoning across tool turns

Fixes #43686.
Supersedes the duplicate report in #43824.

Verification

  • bun install --frozen-lockfile --minimum-release-age=0
  • bun test test/provider/amazon-bedrock.test.ts from packages/opencode — 21 passed
  • synthetic AWS event-stream reproduction containing reasoningContent.redactedContent — parsed successfully and emitted a reasoning-end event preserving providerMetadata.bedrock.redactedContent

A live Grok-on-Bedrock call was not run because this host does not have a confirmed credential set for that account/model.

Requested by: @neriousy (Filip via Slack)

@neriousy
neriousy merged commit e2ec62d into dev Aug 21, 2026
12 checks passed
@neriousy
neriousy deleted the bedrock-redacted-bump branch August 21, 2026 21:39
Anonymouse8882 pushed a commit to Anonymouse8882/opencode that referenced this pull request Aug 27, 2026
Manual port of upstream e2ec62d (anomalyco#43909); lockfile regenerated locally.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Archipel pushed a commit to Archipel/opencode that referenced this pull request Aug 29, 2026
Co-authored-by: neriousy <34747899+neriousy@users.noreply.github.com>
1056674754 added a commit to 1056674754/opencode that referenced this pull request Aug 31, 2026
Upstream v1.18.21 (826d9ad, merged at ab828ce) -> v1.18.22 (47b6b6f),
40 commits / 197 files. Upstream superseded the v1.18.21 release commit with
ad0bb6d6 (sync release versions for v1.18.21) in the v1.18.22 lineage; merge
base is 57fa34f (fix anomalyco#43892), effective input identical to the audited
40-commit range.

Functional changes:
- fix(opencode): normalize upgrade endpoint (anomalyco#44686) — target is now a
  required semver field, raw-body upgrade handler dropped; groups/handlers
  global httpapi + generated SDK (sdk.gen description, types.gen required
  target, openapi required:["target"]) adopted whole; fork had no global
  httpapi deltas.
- fix: resolve console device URLs (anomalyco#44029) — origin-rooted
  verification_uri_complete resolved via URL() with HTTP(S) protocol
  validation in account.ts and core plugin/provider/opencode.ts, with
  upstream tests for both.
- fix(provider): guard textVerbosity injection for
  @ai-sdk/openai-compatible providers (anomalyco#43915) — adopted onto fork
  transform.ts; hunks disjoint from GLM/ZhiPu normalization, auto-merged.
- fix: bump Amazon Bedrock provider (anomalyco#43909) — 4.0.112 -> 4.0.158.
- test(opencode): align unknown finish coverage (anomalyco#43895).
- console zen streaming/memory + unblock workspace, stats model
  normalization + tooltip truncation, app model provider headers, go
  pricing changes, docs + i18n updates.

Conflicts resolved: 30 package.json version bumps (rebranded 1.18.22-sscity),
bun.lock (took upstream, rebranded workspace entries via bun install).
run-process.test.ts reconciled by hand: the shared "unknown stream finish
preserves partial output and continues" test keeps the fork streamError +
auto-ok form; upstream's json variant adopted under its upstream name with
the middle-step expectation adapted to the fork's stronger semantics —
output-less errored streams are retried transparently (adjacent step-starts,
no step-finish part), while the with-output unknown-finish path (step-finish
reason "unknown" then loop continues) stays covered by the fork json test.
Fork retry caps (content-policy maxAttempts) and GLM/ZhiPu transform
normalization preserved; fork small_model_fallback generated SDK/OpenAPI
surfaces kept, merge-consistent with upstream's upgrade regen. Tests from
both sides kept: transform 437, retry 68, account 15, httpapi-global 4,
run-process 15, prompt 62, empty-stream 6, core provider-opencode 12,
stats inference 11, llm package 328 all pass; typecheck 30/30.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump @ai-sdk/amazon-bedrock to >=4.0.158 — Bedrock streams crash on reasoningContent.redactedContent (Grok, etc.)

1 participant