dify/api/core/workflow/nodes
Yansong Zhang 482a004efe fix(api): fix duplicate answer and completion app upgrade issues
1. Remove StreamChunkEvent from AgentV2Node._run_without_tools():
   The agent-v2 node was yielding StreamChunkEvent during LLM streaming,
   AND the downstream answer node was outputting the same text via
   {{#agent.text#}} variable reference, causing "FourFour" duplication.
   Now text only flows through outputs.text -> answer node (single path).

2. Map inputs to query for completion app transparent upgrade:
   Completion apps send {inputs: {query: "..."}} not {query: "..."}.
   VirtualWorkflowSynthesizer route now extracts query from inputs
   when the top-level query is missing.

Verified:
- Old chat app: "What is 2+2?" -> "Four" (was "FourFour")
- Old completion app: {inputs: {query: "What is 3+3?"}} -> "3 + 3 = 6" (was failing)
- Old agent-chat app: still works

Made-with: Cursor
2026-04-09 12:02:43 +08:00
..
agent refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
agent_v2 fix(api): fix duplicate answer and completion app upgrade issues 2026-04-09 12:02:43 +08:00
command refactor(api): replace legacy agent runners with StrategyFactory in AgentChatAppRunner (Phase 4) 2026-04-09 09:42:23 +08:00
datasource refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
file_upload refactor(api): replace legacy agent runners with StrategyFactory in AgentChatAppRunner (Phase 4) 2026-04-09 09:42:23 +08:00
knowledge_index refactor(api): migrate consumers to shared RAG domain entities from core/rag/entities/ (#34692) 2026-04-07 23:22:56 +00:00
knowledge_retrieval refactor(api): migrate consumers to shared RAG domain entities from core/rag/entities/ (#34692) 2026-04-07 23:22:56 +00:00
trigger_plugin refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
trigger_schedule refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
trigger_webhook chore: normalize frozenset literals and myscale typing (#34327) 2026-03-31 08:21:22 +00:00
__init__.py refactor(api): move workflow knowledge nodes and trigger nodes (#33445) 2026-03-15 15:24:59 +08:00