openclaw-vainplex/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
..
agent-job.ts refactor: align agent lifecycle 2026-01-05 05:55:02 +01:00
agent.ts refactor: centralize WhatsApp target normalization 2026-01-10 02:39:52 +01:00
agents.ts feat(tui): add agent picker and agents list rpc 2026-01-09 01:05:10 +01:00
chat.ts fix: enable image attachments in chat messages for Claude API 2026-01-10 20:00:25 +01:00
config.ts feat: add gateway config/update restart flow 2026-01-08 01:30:02 +01:00
connect.ts refactor: split gateway server methods 2026-01-04 04:05:18 +01:00
cron.ts fix: add gateway stop/restart commands 2026-01-06 03:25:32 +01:00
health.ts test: stabilize gateway tests 2026-01-04 04:16:38 +01:00
logs.ts fix(ci): sync logs tail protocol artifacts 2026-01-08 03:49:19 +00:00
models.ts test: stabilize gateway tests 2026-01-04 04:16:38 +01:00
nodes.ts test: stabilize gateway tests 2026-01-04 04:16:38 +01:00
providers.ts style: format 2026-01-09 00:33:09 +01:00
send.ts feat: finalize msteams polls + outbound parity 2026-01-09 11:07:32 +01:00
sessions.ts refactor(sessions): dedupe sessions.resolve 2026-01-09 17:13:38 +01:00
skills.ts feat: wire multi-agent config and routing 2026-01-09 12:48:42 +00:00
system.ts refactor: centralize main session key resolution 2026-01-09 22:13:20 +01:00
talk.ts test: stabilize gateway tests 2026-01-04 04:16:38 +01:00
types.ts fix(gateway): harden chat abort semantics 2026-01-10 17:23:27 +01:00
update.ts feat: add gateway config/update restart flow 2026-01-08 01:30:02 +01:00
usage.ts chore: satisfy lint 2026-01-07 11:49:01 +01:00
voicewake.ts test: stabilize gateway tests 2026-01-04 04:16:38 +01:00
web.ts feat: multi-agent routing + multi-account providers 2026-01-06 18:33:37 +00:00
wizard.ts test: stabilize gateway tests 2026-01-04 04:16:38 +01:00