fix: support MCP user message attachments #1824
Reference in New Issue
Block a user
Delete Branch "fix/hermes-user-attachments-core"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds attachments to the MCP send_message_to_user schema and handler, forwarding validated attachment refs into AgentMessageWriter so live broadcasts and persisted chat history include file parts.\n\nTests: go test ./internal/handlers -run 'SendMessageToUser|Notify_WithAttachments|AgentMessageWriter_Send_Success_WithAttachments' -count=1
QA review: verified send_message_to_user now accepts attachment metadata, forwards it through AgentMessageWriter, and includes a regression test for persisted file parts. Local handler test passed.
Security review: static pass found no new secret material, no raw upload surface in molecule-core, and attachment handling remains metadata-only with required uri/name validation before broadcast/persistence.
/qa-recheck
/security-recheck