Skip to content

feat: add provider enablement controls#26

Merged
rexdotsh merged 3 commits into
mainfrom
feat/provider-enablement
Jul 21, 2026
Merged

feat: add provider enablement controls#26
rexdotsh merged 3 commits into
mainfrom
feat/provider-enablement

Conversation

@rexdotsh

Copy link
Copy Markdown
Owner

Summary

  • add an enabled flag to provider accounts and a provider-wide admin toggle API
  • exclude disabled providers from model discovery and both primary and account-scoped proxy routing
  • preserve disabled state for newly connected accounts until the provider is re-enabled
  • keep disabled accounts available for admin editing, refresh, primary selection, and deletion

API

  • GET /admin/accounts now includes providers and per-account enabled
  • GET /admin/accounts/providers returns provider statuses
  • PATCH /admin/accounts/providers/:provider accepts { "enabled": boolean }

Database

  • generated migration 0010_lumpy_sentinels.sql; migration has not been applied

Verification

  • bun test (85 pass)
  • bun typecheck
  • bun lint
  • git diff --check

Notes

  • temporary proxy debug logging used during diagnosis is not included in this PR

@rexdotsh
rexdotsh merged commit 99f3cb2 into main Jul 21, 2026
2 checks passed
@rexdotsh
rexdotsh deleted the feat/provider-enablement branch July 21, 2026 19:29
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