576671e64a
Attachments uploaded from the UI were correctly parsed by the handler and set on QARequest.Attachments, but the Agent path dropped them before calling engine.Execute. Only the KnowledgeQA pipeline injected them via Attachments.BuildPrompt(), so in "smart reasoning" (Agent) mode the model never saw the uploaded file and answered as if no attachment existed. Append Attachments.BuildPrompt() to agentQuery alongside QuotedContext, mirroring chat_pipeline/into_chat_message.go. This keeps the engine signature unchanged and matches the existing KnowledgeQA behavior.