Skip to content

fix(providers): probe before persist on Test & add - #341

Open
VedantMadane wants to merge 2 commits into
omnideck-dev:mainfrom
VedantMadane:fix/provider-add-probe-before-persist-339
Open

VedantMadane wants to merge 2 commits into
omnideck-dev:mainfrom
VedantMadane:fix/provider-add-probe-before-persist-339

Conversation

@VedantMadane

Copy link
Copy Markdown

What changed

Failed "Test & add" no longer persists a provider before the upstream probe succeeds. Users can correct the URL/key and retry in place without deleting an orphan entry.

For brokered OpenAI-compatible providers (API key + base URL):

  • GET /api/providers returns the non-secret mirrored base URL
  • The detail pane shows and allows editing base URL together with the API key
  • PATCH sends { api_key, base_url } (backend already accepted this)

Updates also probe before rewriting settings / rotating the vault entry so a bad save does not replace a working config.

Fixes #339

How it was tested

  • uv run pytest tests/unit/server/test_provider_routes.py -q (13 passed)
    • failed probe does not call save_settings / supervisor add
    • successful add persists only after probe
    • brokered openai_compat mirrors base URL for list/edit
    • update/remove paths covered for the mirror
  • node scripts/release-notes.mjs validate-fragments

Release note

Added release-notes.d/provider-add-probe-before-persist.md (target: app, type: fixed, area: providers).

@VedantMadane
VedantMadane force-pushed the fix/provider-add-probe-before-persist-339 branch from 75a3be5 to ccdbfd7 Compare September 7, 2026 07:01
Failed provider adds no longer leave orphan config. OpenAI-compatible
brokered providers expose an editable base URL on the detail pane.

Fixes omnideck-dev#339

Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
@VedantMadane
VedantMadane force-pushed the fix/provider-add-probe-before-persist-339 branch from ccdbfd7 to 3a36233 Compare September 9, 2026 15:05
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.

[bug] Providers: failed "Test & add" still creates the provider; brokered base URL not editable; list doesn't auto-refresh

1 participant