mirror of
https://github.com/langgenius/dify.git
synced 2026-06-01 13:00:48 -04:00
fix: align human input ci expectations
This commit is contained in:
@@ -15,6 +15,7 @@ from core.workflow.human_input_compat import (
|
||||
EmailRecipients,
|
||||
ExternalRecipient,
|
||||
InteractiveSurfaceDeliveryMethod,
|
||||
is_human_input_webapp_enabled,
|
||||
)
|
||||
from dify_graph.nodes.human_input.entities import FormDefinition, HumanInputNodeData
|
||||
from dify_graph.nodes.human_input.enums import HumanInputFormKind, HumanInputFormStatus
|
||||
@@ -406,7 +407,7 @@ class HumanInputFormRepositoryImpl:
|
||||
if self._invoke_source == "debugger":
|
||||
return True
|
||||
if self._invoke_source == "explore":
|
||||
return form_config.is_webapp_enabled()
|
||||
return is_human_input_webapp_enabled(form_config)
|
||||
return False
|
||||
|
||||
def _should_create_backstage_recipient(self, *, form_kind: HumanInputFormKind) -> bool:
|
||||
|
||||
@@ -601,6 +601,9 @@ class DifyHumanInputNodeRuntime(HumanInputNodeRuntimeProtocol):
|
||||
if self._form_repository is not None:
|
||||
return self._form_repository
|
||||
|
||||
return self._build_form_repository()
|
||||
|
||||
def _build_form_repository(self) -> HumanInputFormRepository:
|
||||
invoke_source = self._invoke_source()
|
||||
return HumanInputFormRepositoryImpl(
|
||||
tenant_id=self._run_context.tenant_id,
|
||||
|
||||
Reference in New Issue
Block a user