mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-09-02 01:20:23 +08:00
The onToolCall callback was capturing stale chartXML value due to JavaScript closure. Using a ref ensures we always get the latest value.