Mobile: uploading images corrupts session with missing media_type
Resolved 💬 4 comments Opened Mar 11, 2026 by saarang-pika Closed Mar 15, 2026
Bug
When using Claude Code via mobile (phone), uploading an image results in the image being sent without the required media_type field in image.source.base64. This permanently corrupts the session — every subsequent message fails with:
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.246.content.2.image.source.base64.media_type: Field required"}}
Steps to reproduce
- Open Claude Code on mobile (via
/remote-controlor claude.ai/code session) - Upload/attach an image
- Send a message
- Every subsequent message in the session fails with the above error
Expected behavior
Either:
- Images should be sent with the correct
media_typefield, or - Image upload should be disabled/blocked on mobile if not supported
Impact
- Session is permanently broken — no way to recover without starting a new session
- User loses all conversation context
- The corrupted image payload is baked into conversation history and resent with every new message
Environment
- Claude Code via remote control / claude.ai/code session on mobile
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗