mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
Build's and Edit's re_fix branches (handle_review's continue_adjusting, handle_reverted's retry_after_revert) reset repair_attempts and last_repair_error but not unknown_outcome_count. After the cap (count=2) -> keep_draft -> review -> re_fix, the new cycle's FIRST unknown outcome re-capped with "couldn't be determined twice in a row". Reset it at all four sites, as Fix's re_fix already does. Also pins that Edit's unknown-outcome cap drops a stale diagnosis and staged repair (seeded, so the assertion is not vacuous). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>