Skip to content

[Refactor] Consolidate Bedrock OpenCode registration - #1315

Draft
roomote-roomote[bot] wants to merge 1 commit into
developfrom
feature/consolidate-bedrock-registration-0j6f5o4cc6d3e
Draft

[Refactor] Consolidate Bedrock OpenCode registration#1315
roomote-roomote[bot] wants to merge 1 commit into
developfrom
feature/consolidate-bedrock-registration-0j6f5o4cc6d3e

Conversation

@roomote-roomote

Copy link
Copy Markdown
Contributor

​Created by Roomote. View the task or mention @roomote-roomote for follow-up asks.

What changed

Consolidated the common Bedrock OpenCode provider registration algorithm and replaced repeated three-provider call chains with one shared composition helper. Provider-specific transports and option merge order remain explicit, with focused coverage for all three registrations.

Why this change was made

PR #1293 centralized Bedrock provider setup but left model collection, provider cloning, option merging, and model-map assembly duplicated across registrations and runtime call sites. Keeping that algorithm in one place reduces the risk of Bedrock providers drifting as support evolves.

Impact

There is no intended user-facing behavior change. Bedrock Mantle Anthropic, Bedrock Mantle OpenAI, and native Amazon Bedrock retain their existing endpoints, SDK transports, region validation, model merging, and option precedence with less maintenance duplication.

@roomote-community

roomote-community Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

No code issues found. See task

Reviewed 17f7696

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.

1 participant