diff --git a/modules/features/commcoach/mainCommcoach.py b/modules/features/commcoach/mainCommcoach.py index 6da38087..69ac6b1c 100644 --- a/modules/features/commcoach/mainCommcoach.py +++ b/modules/features/commcoach/mainCommcoach.py @@ -209,10 +209,11 @@ def _seedBuiltinPersonas(): """Seed builtin roleplay personas into the database.""" try: from .serviceCommcoachPersonas import seedBuiltinPersonas - from .interfaceFeatureCommcoach import CommcoachInterface - from modules.interfaces.interfaceDbManagement import getInterface as getDbInterface - db = getDbInterface() - interface = CommcoachInterface(db) + from .interfaceFeatureCommcoach import getInterface + from modules.datamodels.datamodelUam import User + + systemUser = User(id="system", username="system", email="system@poweron.swiss") + interface = getInterface(systemUser) seedBuiltinPersonas(interface) except Exception as e: logger.warning(f"CommCoach persona seeding failed (non-fatal): {e}")