• Your Name's avatar
    Fix boot flow broken by middleware registration method · c8767df6
    Your Name authored
    Using app.add_middleware() with async function directly broke the startup flow.
    Reverted to using @app.middleware("http") decorator which properly wraps
    the async function as BaseHTTPMiddleware.
    
    Dashboard context middleware now runs LAST in the decorator registration order,
    which means it executes FIRST on requests, after SessionMiddleware.
    
    Boot flow works correctly again: providers are loaded, models are retrieved from providers.json
    c8767df6
main.py 553 KB