b01f361edf
Every view attached to an API-agent message stayed in the history as a base64 data URL, and the whole history goes with every request (up to 24 per message). Requests grew by one screenshot per message until the endpoint refused them with HTTP 413, after which every message failed. Keep the newest two views as pictures and swap older ones for a short note; the text sent with them and every other message stay. HTTP 413 now says the conversation is too large for the endpoint and to start a new chat. Fixes #2298 Main now speaks the Anthropic protocol too, where a view is an `image` block rather than an OpenAI `image_url` part: drop_old_views trims both, before trim_history. ui.ai_http_too_large is in every catalog that has the other ai_http_* messages. Co-authored-by: Framewrk CI <ci@framewrklabs.ai>