Skip to content

[Bug] Regression 2026.5.27→2026.5.28: "No API provider registered for api: bedrock-converse-stream" — pi-ai removal breaks Bedrock provider registration; bearer token auth broken #88707

Closed as not planned

Description

@podulator

Summary

Upgrading the OpenClaw host to 2026.5.28 causes all Bedrock calls to fail with:

No API provider registered for api: bedrock-converse-stream

This is a hard upgrade blocker for any Bedrock user, and in particular for users trying to use the new bearer token auth feature shipped in this release.

Root Cause

Commit bb46b79 ("refactor: internalize OpenClaw agent runtime", PR #85341, landed 2026-05-27) made two simultaneous architectural changes that create a version-mismatch trap:

Before (≤ 2026.5.26):
The bedrock-converse-stream API provider was automatically registered by the host via the bundled @earendil-works/pi-ai package. The @openclaw/amazon-bedrock-provider plugin merely wrapped and configured the provider — it did not call registerApiProvider itself.

After (≥ 2026.5.28):
@earendil-works/pi-ai was removed from the host runtime entirely and replaced with OpenClaw-native modules (openclaw/plugin-sdk/llm, etc.). The @openclaw/amazon-bedrock-provider plugin now must explicitly call registerApiProvider to register bedrock-converse-stream:

// extensions/amazon-bedrock/register.sync.runtime.ts
+  registerApiProvider(
+    {
+      api: "bedrock-converse-stream",
+      stream: streamBedrock,
+      streamSimple: streamSimpleBedrock,
+    },
+    `plugin:${providerId}`,
+  );

This explicit call only exists in plugin version 2026.5.28.

The trap: When users upgrade the host via npm install -g openclaw@2026.5.28, the @openclaw/amazon-bedrock-provider plugin is not automatically updated. If the installed plugin is still at v2026.5.26:

  • v2026.5.26 plugin code runs (no registerApiProvider call)
  • Host no longer registers bedrock-converse-stream automatically (pi-ai removed)
  • Result: bedrock-converse-stream is never registered → every Bedrock call fails

The bearer token feature (also added in bb46b79 in stream.runtime.ts) is completely inaccessible in this state.

Affected Version Range

Host Plugin Bedrock works?
2026.5.26 2026.5.26 ✅ (pi-ai auto-registers)
2026.5.28 2026.5.28 ✅ (explicit registerApiProvider)
2026.5.28 2026.5.26 ❌ REGRESSION

Steps to Reproduce

  1. Have a working Bedrock setup on OpenClaw 2026.5.26 with @openclaw/amazon-bedrock-provider at v2026.5.26
  2. Run npm install -g openclaw to upgrade host to 2026.5.28 (plugin NOT updated)
  3. Restart the gateway
  4. Attempt any Bedrock model call
  5. Observe: No API provider registered for api: bedrock-converse-stream

Workaround

Run openclaw plugins update after upgrading the host to force the plugin to v2026.5.28. This restores the explicit registerApiProvider call.

Suggested Fix

The host upgrade path should either:

  1. Auto-update bundled/official plugins when the host is updated, OR
  2. Add a startup warning when a plugin version predates a breaking plugin-api contract change (e.g., when compat.pluginApi in the installed plugin is older than the host version that removed pi-ai), OR
  3. Restore a compatibility shim in the host that still registers bedrock-converse-stream when the plugin does not, to preserve backward compatibility across the transition window

Option 3 is the lowest-risk hotfix.

Key Commit

  • bb46b79 — "refactor: internalize OpenClaw agent runtime (refactor: internalize OpenClaw agent runtime #85341)" (2026-05-27)
    • Removes @earendil-works/pi-ai from plugin dependencies
    • Adds registerApiProvider({ api: "bedrock-converse-stream", ... }) to plugin (v2026.5.28 only)
    • Adds bearerToken support in new stream.runtime.ts

Additional Context

This also affects @openclaw/amazon-bedrock-mantle which had the same @earendil-works/pi-ai dependency removed in the same commit.

Activity

  1. clawsweeper commented on May 31, 2026

    @clawsweeper
    Contributor

    Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

    Close as a duplicate of the still-open generic plugin/core upgrade-drift issue; current main covers the Bedrock registration mechanism and exposes drift recovery, while the remaining cross-plugin policy belongs in the canonical report.

    Root-cause cluster
    Relationship: duplicate
    Canonical: #83337
    Summary: This is the Amazon Bedrock manifestation of the canonical plugin/core version-drift problem.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Canonical path: The provided context shows #83337 remains open for the same cross-plugin upgrade invariant, while #94641 is a closed corroborating satellite.

    So I’m closing this here and keeping the remaining discussion on #83337 and #94641.

    Review details

    Best possible solution:

    Keep one generic upgrade contract that converges or clearly reports active official plugin/core drift before a provider or channel fails, without adding a Bedrock-specific core shim.

    Do we have a high-confidence way to reproduce the issue?

    No: the historical host/plugin release pair was not executed, although current source and tests establish the registration and recovery paths now in place.

    Is this the best way to solve the issue?

    Yes: closing this Bedrock-specific satellite in favor of the open generic upgrade-drift report avoids a provider-specific workaround and preserves the remaining product decision in one place.

    Security review:

    Security review: This is an issue review with no proposed patch to assess.

    AGENTS.md: found and applied where relevant.

    What I checked:

    Likely related people:

    • Hussein Nourelddine: Authored the commit that added official external plugin/core version-drift detection and recovery guidance. (role: introduced drift diagnostics; confidence: high; commits: 4a285d529a00; files: src/plugins/plugin-version-drift.ts, src/cli/daemon-cli/status.gather.ts)
    • ooiuuii: Authored the pinned-plugin update-command repair used by the drift diagnostic. (role: recovery-path contributor; confidence: high; commits: 2ea0e8807a78; files: src/plugins/plugin-version-drift.ts)
    • steipete: Authored the original agent-runtime refactor that moved Bedrock behavior into the plugin-owned runtime boundary. (role: Bedrock and runtime refactor owner; confidence: medium; commits: bb46b79d3c14; files: extensions/amazon-bedrock/register.sync.runtime.ts, extensions/amazon-bedrock/index.ts)

    Codex review notes: model internal, reasoning high; reviewed against ce06e7924e88.

  2. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    on May 31, 2026
  3. xojins commented on Jun 1, 2026

    @xojins

    I had a similar experience this morning. I used the Update feature from the openclaw dashboard and I was getting the same error. However, it seems that my plugin was removed and I had to run openclaw plugins install @openclaw/amazon-bedrock-provider to get it working again.

  4. ALUIZDEB commented on Jun 10, 2026

    @ALUIZDEB

    @xojins approach works fine to me.

    But, it's gone be fixed someday?

  5. itsstevemiller commented on Jun 10, 2026

    @itsstevemiller

    Adding a fresh data point from a current bundled/source-checkout install, because this does not look like the stale/missing 2026.5.26 Bedrock plugin case described in the original report/workaround.

    Environment:

    • OpenClaw 2026.6.5 (5181e4f), exact tag v2026.6.5 / commit 5181e4f7c82b
    • macOS 26.5 (25F71)
    • Install/run mode: source checkout with bundled plugins; local CLI repro below
    • openclaw config validate --json: 0 errors, 0 warnings
    • amazon-bedrock plugin: version 2026.6.5, origin bundled, enabled/explicitly activated, status loaded, dependencies installed

    Observed behavior:

    $ openclaw models list --provider amazon-bedrock
    [bedrock-discovery] Failed to discover Bedrock models
    # configured aliases still list, including bedrock-sonnet and bedrock-opus
    
    $ openclaw infer model run --local --model bedrock-sonnet --prompt 'Reply exactly: BEDROCK_COMMENT_REPRO'
    Error: No API provider registered for api: bedrock-converse-stream
    
    $ openclaw infer model run --local --model bedrock-opus --prompt 'Reply exactly: BEDROCK_COMMENT_REPRO_OPUS'
    Error: No API provider registered for api: bedrock-converse-stream

    The plugin is present/current rather than stale: openclaw plugins inspect amazon-bedrock --json reports enabled: true, activated: true, status: "loaded", providerIds: ["amazon-bedrock"], and dependencyStatus.requiredInstalled: true. The current source also contains the expected registration path in extensions/amazon-bedrock/register.sync.runtime.ts:

    registerApiProvider({
      api: "bedrock-converse-stream",
      ...
    })

    I also verified the AWS side separately with a direct Bedrock SDK probe using the same Bedrock account/credential path: Anthropic Sonnet 4.6 and Opus 4.6 return successfully there, while a model not available to the account fails with AWS AccessDeniedException. So in this setup OpenClaw appears to fail before reaching AWS.

    This may be a second variant of the same regression: the bundled/current amazon-bedrock plugin is loaded as a provider/catalog capability, but the API provider registry used by model execution still cannot see bedrock-converse-stream. Happy to run a specific diagnostic command if there is a preferred one for checking plugin API-provider registration state.

  6. added
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    and removed
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    on Jun 10, 2026
  7. 5 remaining items

  8. added
    issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.
    and removed
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.
    on Jul 30, 2026
  9. added
    dedupe:childDuplicate issue/PR child in dedupe cluster
    and removed
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    on Aug 12, 2026
  10. self-assigned this
    on Aug 12, 2026
  11. vincentkoc commented on Aug 12, 2026

    @vincentkoc
    Member

    Closing this as a duplicate of the canonical plugin/core lifecycle issue: #83337

    The strongest distinct evidence from this report is preserved: the bundled/current v2026.6.5 reproduction used the matching loaded and activated Bedrock plugin, so it was not merely stale plugin version drift: #88707 (comment)

    Current main contains the Bedrock lifecycle repair that resolves bedrock-converse-stream through the provider-owned createStreamFn, with focused coverage in 441a9b9. That repair is not in the latest stable release, v2026.7.1-2. The generic drift detector also still excludes official installs with exact-version specs, so the canonical issue remains open.

    Please reopen this Bedrock-specific issue if the failure reproduces on a release containing 441a9b94cf05c54a05a2a21173672926064f1c6c with the matching bundled plugin, or if new evidence shows the provider lifecycle remains broken after that change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority user-facing bug, regression, or broken workflow.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.close:duplicateClosed as duplicatededupe:childDuplicate issue/PR child in dedupe clusterimpact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions