mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
c46687fc44
splitPromptAndHistory was extracting only text from the last user message, discarding FilePart data (clipboard images). The fix extracts both text and file parts, passing files via AgentStreamCall.Files and AgentCall.Files so Fantasy includes them in the API request. Also preserves file parts when BeforeTurn hooks or skill expansion replace the user message text in runTurn.