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
feat(diagnostics): fix Event Stream and Provider Health Status in admin UI
Backend fixes:
- Add __init__.py to api/app/services/ and api/app/routers/ directories (required for proper module imports)
- Add __init__.py to api/app/monitoring/ directory
- Fix circular import in routers by moving require_admin to auth.py
- Fix import paths in admin_diagnostics.py (app.services.events not api.app.services.events)
- Fix import paths in admin_providers.py (app.auth not api.app.auth)
- Add admin authentication to all events and provider health endpoints
- Initialize ProviderHealthMonitor in app.state on startup
- Add traceback logging for router mount failures
Router endpoints now working:
- /admin/diagnostics/events/types ✅
- /admin/diagnostics/events/recent ✅
- /admin/diagnostics/events/sse ✅
- /admin/providers/health ✅
This resolves the 404 errors in the Event Stream and Provider Health Status sections of the Diagnostics page.
0 commit comments