Repository navigation
Revert "fix(den-api): pass BYOK provider settings to the AI SDK" - #5732
Merged
Merged
Conversation
… scoped …" This reverts commit f7f2e09.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #5730