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-09 05:54:34 +01:00
2026-01-10 18:06:35 +01:00
2026-01-10 03:05:56 +00:00
2026-01-06 21:54:42 +00:00
2026-01-06 21:54:42 +00:00
2026-01-09 20:42:19 +00:00
2026-01-10 17:12:50 +01:00
2026-01-09 00:34:38 +00:00
2026-01-09 08:13:04 +01:00
2026-01-10 15:50:25 +01:00
2026-01-10 17:44:03 +01:00
2026-01-03 20:15:10 +00:00
2026-01-07 23:35:04 +01:00
2026-01-09 19:53:32 +01:00
2026-01-10 18:02:21 +01:00
2026-01-09 05:27:50 +00:00
2026-01-10 01:57:54 +01:00
2026-01-09 12:48:42 +00:00
2026-01-09 12:48:42 +00:00
2026-01-08 00:18:06 +00:00
2026-01-10 05:14:09 +01:00
2026-01-10 00:34:24 +01:00
2026-01-09 22:40:37 +01:00
2026-01-09 22:33:05 +01:00
2026-01-10 18:02:21 +01:00
2026-01-10 18:02:21 +01:00
2026-01-10 01:08:56 +01:00
2026-01-10 01:08:56 +01:00
2026-01-04 14:38:51 +00:00
2025-12-14 04:22:38 +00:00
2026-01-10 01:26:06 +01:00
2026-01-10 01:26:06 +01:00
2026-01-10 17:12:50 +01:00
2026-01-10 17:12:50 +01:00
2026-01-09 23:00:36 +01:00
2026-01-09 18:13:18 +01:00
2026-01-07 05:31:01 +01:00
2026-01-10 01:09:34 +01:00
2026-01-04 14:38:51 +00:00
2026-01-09 21:31:18 +01:00
2026-01-09 22:15:06 +01:00
2026-01-08 05:20:39 +01:00
2026-01-08 04:44:15 +00:00
2026-01-09 20:14:42 +01:00
2026-01-09 20:14:42 +01:00
2026-01-09 16:41:05 +01:00
2026-01-06 18:33:37 +00:00
2026-01-10 00:45:10 +00:00
2026-01-10 00:45:10 +00:00
2026-01-10 18:25:43 +01:00
2026-01-10 18:25:43 +01:00
2026-01-09 22:56:55 +00:00
2026-01-10 01:11:41 +01:00
2026-01-10 18:15:15 +00:00
2026-01-10 18:15:15 +00:00
2026-01-10 16:02:56 +01:00
2026-01-09 12:48:42 +00:00
2026-01-10 18:15:15 +00:00
2026-01-10 20:00:25 +01:00
2026-01-10 16:03:17 +01:00
2026-01-10 18:15:15 +00:00
2026-01-10 00:53:48 +01:00
2026-01-06 02:23:55 +01:00
2026-01-07 19:08:13 +00:00
2026-01-07 19:08:13 +00:00
2026-01-10 04:01:00 +01:00
2026-01-10 18:07:26 +01:00
2026-01-10 17:08:56 +01:00
2026-01-10 18:02:21 +01:00
2026-01-09 23:41:57 +00:00
2026-01-07 02:52:41 +01:00
2026-01-09 15:17:20 +01:00
2026-01-03 21:41:58 +01:00
2026-01-10 02:06:21 +00:00
2025-12-25 03:29:36 +01:00
2026-01-07 00:04:44 +01:00
2026-01-08 08:26:40 +01:00
2026-01-09 21:27:20 +01:00
2026-01-09 21:27:20 +01:00
2026-01-10 00:01:16 +00:00
2026-01-09 15:32:49 +01:00
2026-01-10 04:01:00 +01:00
2026-01-10 04:01:00 +01:00
2026-01-09 12:48:42 +00:00
2026-01-09 21:09:42 +01:00
2026-01-06 10:55:02 -06:00
2026-01-02 17:44:25 +00:00
2026-01-04 14:38:51 +00:00
2026-01-06 18:52:01 +00:00
2026-01-06 19:54:50 +01:00
2026-01-10 00:01:16 +00:00
2026-01-10 00:01:16 +00:00
2026-01-01 17:30:15 +01:00