diff --git a/packages/jupyter-ai/jupyter_ai/handlers.py b/packages/jupyter-ai/jupyter_ai/handlers.py index 44df535c5..034f27d93 100644 --- a/packages/jupyter-ai/jupyter_ai/handlers.py +++ b/packages/jupyter-ai/jupyter_ai/handlers.py @@ -174,7 +174,7 @@ def get_chat_user(self) -> ChatUser: login = getpass.getuser() initials = login[0].capitalize() return ChatUser( - username=login, + username=self.current_user.username, initials=initials, name=login, display_name=login,