Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix: restore agenthub import for agent registration (#12341)

sp.wack17791e5e6266
diff --git a/openhands/server/app.py b/openhands/server/app.py
index bf9f5b253b..d0dfa21f56 100644
--- a/openhands/server/app.py
+++ b/openhands/server/app.py
@@ -22,7 +22,7 @@ from fastapi import (
)
from fastapi.responses import JSONResponse
-# import openhands.agenthub
+import openhands.agenthub # noqa F401 (we import this to get the agents registered)
from openhands.app_server import v1_router
from openhands.app_server.config import get_app_lifespan_service
from openhands.integrations.service_types import AuthenticationError