You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: stale default provider root cause + Doctor diagnostic accuracy
Root cause: deleting a provider left a dangling default_provider_id in
settings. Resolver fell back to env vars, bypassing the user's configured
provider. Doctor diagnosed symptoms (no credentials, env fallback) but
couldn't fix the root cause.
Direct fixes:
- providers/[id]/route.ts: DELETE now clears stale default_provider_id
and auto-selects the next available provider
- providers/models/route.ts: GET auto-heals stale default on page load
(safe — this is an explicit API endpoint, not a diagnostic read path)
- provider-resolver.ts: removed auto-heal from resolveProvider() read
path to prevent side effects during Doctor diagnostics
Doctor improvements:
- provider.default-missing: message now explains root cause ("default
points to deleted record, resolver falls back to env")
- auth.resolved-no-creds: distinguishes "provider has no key" from
"fell back to env due to stale default"
- set-default-provider repair: now addresses provider.default-missing
- apply-provider-to-session: validates providerId exists, auto-fixes
stale default if needed
- Network probe: only checks api.anthropic.com in env mode, avoids
"Anthropic API unreachable" noise when user is on Kimi/GLM etc.
file-tree.tsx: removed duplicate tabIndex on outer treeitem div —
single tab stop on the trigger row only.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments