Skip to content

armgit / dify

Public Imported from GitHub
0

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.

Fix advanced chat workflow event handler signature mismatch (#25078)

-LAN-a384ae914023
diff --git a/Makefile b/Makefile
index 388c367fdfd..d82f6f24ad5 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ prepare-web:
prepare-api:
@echo "🔧 Setting up API environment..."
@cp -n api/.env.example api/.env 2>/dev/null || echo "API .env already exists"
- @cd api && uv sync --dev --extra all
+ @cd api && uv sync --dev
@cd api && uv run flask db upgrade
@echo "✅ API environment prepared (not started)"
diff --git a/api/core/app/apps/advanced_chat/generate_task_pipeline.py b/api/core/app/apps/advanced_chat/generate_task_pipeline.py
index 2f0e4ef3192..750e13c5028 100644
--- a/api/core/app/apps/advanced_chat/generate_task_pipeline.py
+++ b/api/core/app/apps/advanced_chat/generate_task_pipeline.py
@@ -310,7 +310,7 @@ class AdvancedChatAppGenerateTaskPipeline:
err = self._base_task_pipeline._handle_error(event=event, session=session, message_id=self._message_id)
yield self._base_task_pipeline._error_to_stream_response(err)
- def _handle_workflow_started_event(self, **kwargs) -> Generator[StreamResponse, None, None]:
+ def _handle_workflow_started_event(self, *args, **kwargs) -> Generator[StreamResponse, None, None]:
"""Handle workflow started events."""
with self._database_session() as session:
workflow_execution = self._workflow_cycle_manager.handle_workflow_run_start()
diff --git a/api/extensions/storage/clickzetta_volume/file_lifecycle.py b/api/extensions/storage/clickzetta_volume/file_lifecycle.py
index 29210dd0f0d..f5d6fd6f22d 100644
--- a/api/extensions/storage/clickzetta_volume/file_lifecycle.py
+++ b/api/extensions/storage/clickzetta_volume/file_lifecycle.py
@@ -1,7 +1,8 @@
"""ClickZetta Volume file lifecycle management
-This module provides file lifecycle management features including version control, automatic cleanup, backup and restore.
-Supports complete lifecycle management for knowledge base files.
+This module provides file lifecycle management features including version control,
+automatic cleanup, backup and restore. Supports complete lifecycle management for
+knowledge base files.
"""
import json
diff --git a/api/extensions/storage/clickzetta_volume/volume_permissions.py b/api/extensions/storage/clickzetta_volume/volume_permissions.py
index e9503595aff..d216790f179 100644
--- a/api/extensions/storage/clickzetta_volume/volume_permissions.py
+++ b/api/extensions/storage/clickzetta_volume/volume_permissions.py
@@ -121,7 +121,8 @@ class VolumePermissionManager:
except Exception:
logger.exception("User Volume permission check failed")
- # For User Volume, if permission check fails, it might be a configuration issue, provide friendlier error message
+ # For User Volume, if permission check fails, it might be a configuration issue,
+ # provide friendlier error message
logger.info("User Volume permission check failed, but permission checking is disabled in this version")
return False