mirror of
https://github.com/langgenius/dify.git
synced 2026-05-02 08:28:03 +08:00
Use useRef to store saveFile reference and remove it from useEffect dependencies to prevent cleanup from re-triggering on reference changes. Also normalize metadata before comparison when clearing dirty state to ensure filtered tools match correctly.