You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(response-stream): child Answer drops suffix when an outer source is skipped #455
An Answer inside a Loop or Iteration can lose the rest of its streamed text when it references an outer node skipped by a conditional branch.
Reproduced with Graphon 0.9.0 through the Dify workflow runner in langgenius/dify#45356, for both container types.
Reproduce
Add a root If/Else node with true → source → container and false → container. source is a Template Transform that returns ok.
Use a Loop with one round, or an Iteration over ["one"].
Its body contains an Answer with template ({{#source.output#}}).
Add a root Answer after the container with text |after.
Take the false branch so source is skipped while the container still runs.
Expected and actual
Observation
Expected
Actual
Child Answer's completed answer output
()
()
Text received by the caller
()|after
(|after
Workflow terminal event
GraphRunSucceededEvent
GraphRunSucceededEvent
The missing reference should finish as empty text so the remaining template can be emitted.
Instead, the child stream stops at (, although the following root Answer still emits and the run succeeds.
#439 fixed the root Answer case and explicitly noted this remaining container case.
Related: #356, #436.
The child response filter can’t see that the outer source was skipped. GraphEdgeSkippedEvent goes only to the session for its own frame, and the child session computes skipped nodes from its body graph. With no value or stream for source.output, the child reader leaves that reference open. The final flush only marks nodes in the body graph as finished, so it still can’t advance to )[1][2][3][4][5][6].
I’d make the child filter consult the source’s owning frame for skip status, including skips observed before the child starts, without mixing ancestor edges into child reply activation. For both Loop and Iteration, I’d test that the false branch streams ()|after and the true branch still streams (ok)|after, with exactly one child final marker after )[7][8].
Activity
dosubot commentedon Dec 1, 2026
The child response filter can’t see that the outer source was skipped.
GraphEdgeSkippedEventgoes only to the session for its own frame, and the child session computes skipped nodes from its body graph. With no value or stream forsource.output, the child reader leaves that reference open. The final flush only marks nodes in the body graph as finished, so it still can’t advance to)[1] [2] [3] [4] [5] [6].I’d make the child filter consult the source’s owning frame for skip status, including skips observed before the child starts, without mixing ancestor edges into child reply activation. For both Loop and Iteration, I’d test that the false branch streams
()|afterand the true branch still streams(ok)|after, with exactly one child final marker after)[7] [8].To reply, just mention @dosu.
Docs are dead. Just use Dosu.