Files
clawdbot/src
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-10 02:06:21 +00:00
2026-01-10 19:57:24 +01:00
2026-01-10 04:01:06 +01:00
2026-01-04 14:38:51 +00:00
2026-01-10 04:07:15 +01:00
2026-01-10 19:16:25 +01:00
2026-01-04 14:57:57 +00:00
2026-01-06 04:51:05 +00:00
2026-01-06 04:51:05 +00:00
2025-12-26 02:35:40 +01:00
2026-01-04 14:38:51 +00:00