You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
GatewayArea: what it touches
ImprovementsKind: in v2.1.317,
ImprovementsSection of the release
What
Claude Code includes a guide for people writing a gateway, a server that sits between Claude Code and the model provider. The guide tells gateway authors to clean up (sanitize) error messages before passing them on, with exceptions for messages that must reach Claude Code word for word.
There used to be one exception: a 400 or 413 error saying prompt is too long. There are now two. A 400 error from Amazon Bedrock whose entire message is Input is too long. must also be passed through unchanged.
Why
Claude Code recovers from this Bedrock error by dropping older images from the conversation and then compacting it, which means condensing earlier messages to save space. It recognises the error only by its exact text, so a gateway that rewrites the message stops that recovery from happening.
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeFixed the Claude apps gateway hiding Amazon Bedrock's "Input is too long." error, which left sessions failing every turn with "upstream…