fix: support MCP user message attachments #1824

Merged
agent-dev-a merged 1 commits from fix/hermes-user-attachments-core into main 2026-05-25 01:54:16 +00:00
Owner

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

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
hongming added 1 commit 2026-05-25 01:44:40 +00:00
fix: support MCP user message attachments
ci-arm64-advisory / fast-checks (pull_request) Waiting to run
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Successful in 8s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 14s
CI / Detect changes (pull_request) Successful in 11s
CI / Python Lint & Test (pull_request) Successful in 4s
E2E API Smoke Test / detect-changes (pull_request) Successful in 11s
E2E Chat / detect-changes (pull_request) Successful in 9s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 6s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 17s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 15s
Harness Replays / detect-changes (pull_request) Successful in 12s
Lint no tenant GITEA or GITHUB token write / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 11s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 11s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 8s
gate-check-v3 / gate-check (pull_request) Successful in 6s
sop-checklist / review-refire (pull_request) Has been skipped
sop-checklist / all-items-acked (pull_request) Successful in 11s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Successful in 1m6s
sop-tier-check / tier-check (pull_request) Successful in 16s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m2s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 7s
CI / Canvas (Next.js) (pull_request) Successful in 19s
E2E Chat / E2E Chat (pull_request) Successful in 7s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 6s
Harness Replays / Harness Replays (pull_request) Successful in 6s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 1m58s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
qa-review / approved (pull_request) Refired via /qa-recheck by unknown
security-review / approved (pull_request) Refired via /security-recheck by unknown
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 2m40s
CI / Platform (Go) (pull_request) Successful in 6m27s
CI / all-required (pull_request) Successful in 9m15s
sop-checklist / na-declarations (pull_request) N/A: (none)
audit-force-merge / audit (pull_request) Successful in 29s
7999924edf
core-qa approved these changes 2026-05-25 01:49:01 +00:00
core-qa left a comment
Member

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.

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.
core-security approved these changes 2026-05-25 01:49:01 +00:00
core-security left a comment
Member

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.

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.
Author
Owner

/qa-recheck

/qa-recheck
Author
Owner

/security-recheck

/security-recheck
agent-dev-a merged commit bee46f0a06 into main 2026-05-25 01:54:16 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#1824