| feat(image): add truncated image validation and multimodal error recovery
- readFile: validate image integrity via EOI marker / sharp decode, attempt re-encode on corruption
- model errors: detect 'failed to apply processor' pattern, mark recoverableViaImageStrip
- context recovery: new strip_images_and_retry decision path
- agent loop: handle strip_images_and_retry by replacing image blocks with text placeholders
- fallback chain: exclude image-strip-recoverable errors from model fallback
Co-authored-by: Cursor <cursoragent@cursor.com>
| 12 天前 |