What
A rate limit is a cap on how much you can use the API in a given time. Claude Code learns about it from information sent with each reply. A streamed reply ends with a stop event, and that event can now carry rate-limit details, which Claude Code adds to the rest of the reply's information. If any name or value in them is invalid, it ignores them all and reports an error.
Why
Rate-limit information can now arrive at the end of a reply, not only when the reply begins, so Claude Code can work from more current figures.