Files
openclaw/src/gateway/server-methods
cristip73 c4e76eb635 fix: enable image attachments in chat messages for Claude API
Images were previously converted to markdown data URLs which Claude API
treats as plain text, not as actual images.

Changes:
- Add parseMessageWithAttachments() that returns {message, images[]}
- Pass images through the stack to session.prompt() as content blocks
- Filter null/empty attachments before parsing
- Strip data URL prefix if client sends it

This enables iOS and other clients to send images that Claude can actually see.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 20:00:25 +01:00
..
2026-01-05 05:55:02 +01:00
2026-01-06 03:25:32 +01:00
2026-01-04 04:16:38 +01:00
2026-01-04 04:16:38 +01:00
2026-01-04 04:16:38 +01:00
2026-01-09 00:33:09 +01:00
2026-01-04 04:16:38 +01:00
2026-01-07 11:49:01 +01:00
2026-01-04 04:16:38 +01:00
2026-01-04 04:16:38 +01:00