Skip to content

refactor(core): model provider activation explicitly - #42791

Merged
thdxr merged 2 commits into
v2from
provider-activation
Aug 15, 2026
Merged

thdxr merged 2 commits into
v2from
provider-activation

Conversation

@thdxr

@thdxr thdxr commented Aug 15, 2026

Copy link
Copy Markdown
Member

Issue for this PR

Closes #42790

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Replaces the provider disabled flag with an explicit auto | enabled | disabled activation state. Providers start in auto, configured providers become enabled, and catalog availability no longer depends on settings.apiKey.

For explicitly enabled API-key routes without a resolved or configured credential, Core applies Auth.none after model construction. Provider-owned authentication such as Bedrock SigV4 is left intact. This supersedes #42509 while retaining its original commit and contributor attribution.

How did you verify your code works?

Ran the focused Core provider/catalog/resolver suites: 73 tests passed. The pre-push workspace check also completed all 33 typecheck tasks successfully.

Screenshots / recordings

Not applicable.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@thdxr
thdxr enabled auto-merge (squash) August 15, 2026 16:20
@thdxr
thdxr merged commit 0d7904c into v2 Aug 15, 2026
10 checks passed
@thdxr
thdxr deleted the provider-activation branch August 15, 2026 16:29
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
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.

2 participants