Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: run user_connect authorization inside Flask app context (#38585)
Xiyuan Chen3775f569f1b7
diff --git a/api/controllers/console/socketio/workflow.py b/api/controllers/console/socketio/workflow.pyindex db5a4144dd3..6d8d316ad90 100644--- a/api/controllers/console/socketio/workflow.py+++ b/api/controllers/console/socketio/workflow.py@@ -69,7 +69,8 @@ def handle_user_connect(sid, data):if not workflow_id:return {"msg": "workflow_id is required"}, 400- result = collaboration_service.authorize_and_join_workflow_room(workflow_id, sid, session=db.session())+ with sio.app.app_context():+ result = collaboration_service.authorize_and_join_workflow_room(workflow_id, sid, session=db.session())if not result:return {"msg": "unauthorized"}, 401