mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
7b266af992
Adds a new ChatErrorKindImageTooLarge error kind for when users upload images that exceed the provider's maximum allowed dimensions (e.g. Anthropic's 2000 pixel limit for multi-image requests). Backend: - New ChatErrorKindImageTooLarge constant and classification patterns - Detects errors containing 'image dimensions exceed' or 'max allowed size for many-image' and classifies them as non-retryable - User-friendly terminal and retry messages explaining the issue and how to fix it Frontend: - 'Image too large' error title in the status callout - ConversationTimeline identifies user messages containing image attachments when an image_too_large error occurs - Affected user message bubbles get a red error border highlight to guide the user to the message they need to edit