Skip to content

Revert "fix(den-api): pass BYOK provider settings to the AI SDK" - #5732

Merged
OmarMcAdam merged 1 commit into
devfrom
revert-5730-bedrock-issue-5705
Oct 6, 2026
Merged

OmarMcAdam merged 1 commit into
devfrom
revert-5730-bedrock-issue-5705

Conversation

@OmarMcAdam

Copy link
Copy Markdown
Member

Reverts #5730

@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Oct 6, 2026 9:56pm UTC
openwork-den Ready Ready Preview Oct 6, 2026 9:56pm UTC
openwork-diagnostics Ready Ready Preview Oct 6, 2026 9:56pm UTC
openwork-landing Ready Ready Preview, v0 Oct 6, 2026 9:56pm UTC

@OmarMcAdam
OmarMcAdam merged commit 5ddfe71 into dev Oct 6, 2026
11 of 15 checks passed
@OmarMcAdam
OmarMcAdam temporarily deployed to pr-internal-specs October 6, 2026 21:55 — with GitHub Actions Inactive
OmarMcAdam added a commit that referenced this pull request Oct 6, 2026
…env names (#5733)

Reapplies #5730 (reverted in #5732) with its tests moved out of
evals/specs, where the spec-boundary ratchet rejects unit tests.

Catalog providers leave Den under provider-scoped env names
(LPR_<tag>_AWS_REGION) since #4281. OpenCode hands a provider's credential
to its SDK only when the provider declares a single env name, so for
multi-env providers such as Amazon Bedrock the SDK fell back to the bare
names (AWS_REGION, AWS_ACCESS_KEY_ID, ...), which no longer exist. Every
chat failed with "AWS region setting is missing".

Den now binds each delivered env name that a bundled SDK reads to that
SDK option as an {env:RUNTIME_NAME} reference, for desktop connect
payloads and cloud workers alike. The env -> option list lives in
@openwork-ee/utils/ai-sdk-env-settings.

Saving a changed Bedrock credential without a valid AWS_REGION is now
rejected instead of failing on every request.

Tests are colocated and run in the Unit tests job against the pinned
OpenCode on PATH: a drift test compares the list with the pairs extracted
from that binary, and a wire test proves scoped-only Bedrock credentials
reach the provider with their own region and keys.

Fixes #5705

Signed-off-by: Omar McAdam <[email protected]>

This branch was successfully deployed

4 active and 1 inactive deployments
Preview – openwork-den — 63fb94eb Deployed Oct 6, 2026 by vercel[bot]
Preview – openwork-landing — 63fb94eb Deployed Oct 6, 2026 by vercel[bot]
Preview – openwork-app — 63fb94eb Deployed Oct 6, 2026 by vercel[bot]
Preview – openwork-diagnostics — 63fb94eb Deployed Oct 6, 2026 by vercel[bot]
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