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