mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
run_draft populates Run.error, and all three consumers threw it away: Build and Edit assigned run_error = "" and Fix's Run(...) literal had no error= at all. A launch failure therefore persisted with an empty error (the long-open "TRUNCATED_STREAM_ERROR not persisted, err_len=0" item), diagnose saw nothing, and the repair breaker -- which keys a launch failure on run.error -- could never fire on one. Fix's handle_verify also gains the try/except Build and Edit already have, so a run_draft that raises degrades to a failed Run carrying the launch error instead of killing the advance. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>