{"version":"2.1.0","anchor":"sdk-mode-aware-error-messages","canonical_anchor":"sdk-mode-aware-error-messages","heading":"SDK Mode-Aware Error Messages","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.0\/e\/sdk-mode-aware-error-messages","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.0","markdown":"### SDK Mode-Aware Error Messages\n\nError messages for PDF and image handling now provide context-appropriate guidance based on whether Claude Code is running in SDK mode:\n\n- **PDF too large**:\n- Interactive: \"PDF too large. Please double press esc to edit your message and try again.\"\n- SDK mode: \"PDF too large. Try reading the file a different way (e.g., extract text with a CLI tool).\"\n\n- **Password-protected PDF**:\n- Interactive: \"PDF is password protected. Please double press esc to edit your message and try again.\"\n- SDK mode: \"PDF is password protected. Try using a CLI tool to extract or convert the PDF.\"\n\n- **Image too large**:\n- Interactive: \"Image was too large. Double press esc to go back and try again with a smaller image.\"\n- SDK mode: \"Image was too large. Try resizing the image or using a different approach.\"\n\n**Evidence**\n\n`Hi8()` at line 278470, `Di8()` at line 278475, `Fi8()` at line 278480 (contain `d2()` SDK mode check)"}