mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
The unknown-outcome branch (a stream that ended with neither a terminal nor an error frame) returned the user to the re-run state with no limit in all three flows. With error frames now reported as failures that branch is rare, but a stream that keeps ending early could still be re-run forever. DifyBuilderContext.unknown_outcome_count counts consecutive unknown outcomes (reset by any determinate one); the second in a row stops at the gate with a card telling the user to look at the run itself. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>