fix: align human input ci expectations

This commit is contained in:
-LAN-
2026-03-17 19:37:56 +08:00
parent 5cdce96580
commit 5ea7dcb1a8
7 changed files with 22 additions and 8 deletions

View File

@@ -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:

View File

@@ -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,