From 9e3c4c9d78be79cb1d1054f5d0a36745a8fe7436 Mon Sep 17 00:00:00 2001 From: gilesb Date: Sun, 11 Jan 2026 17:28:40 +0000 Subject: [PATCH] Add l2_server to UserContext Fixes AttributeError when running recipes - the UserContext was missing the l2_server field that run_service expects. Co-Authored-By: Claude Opus 4.5 --- app/services/auth_service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/services/auth_service.py b/app/services/auth_service.py index 5515d22..710f8c8 100644 --- a/app/services/auth_service.py +++ b/app/services/auth_service.py @@ -27,6 +27,7 @@ class UserContext: username: str actor_id: str token: Optional[str] = None + l2_server: Optional[str] = None class AuthService: @@ -108,6 +109,7 @@ class AuthService: username=username, actor_id=actor_id or f"@{username}", token=token, + l2_server=settings.l2_server, ) async def verify_token_with_l2(self, token: str) -> Optional[UserContext]: