mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
filter_applicable's per-intent try/except only caught (ValueError, TypeError), so a hallucinated insert_between with a non-dict edge arg raised an uncaught AttributeError and crashed the whole advance instead of being rejected by the dry-run. Broaden to except Exception (ruff does not flag it, so no noqa is added). Add a regression test for the string-edge case. Also update llm_agent.py's stale module docstring (Fix cognition is now real, not delegated; Protocol has 14 methods, not 13) and fix a stray closing paren in a test_handlers_fix.py comment. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>