agent: Handle context window exceeded errors from Anthropic (#28688)

![CleanShot 2025-04-14 at 11 15
38@2x](https://github.com/user-attachments/assets/9e803ffb-74fd-486b-bebc-2155a407a9fa)

Release Notes:

- agent: Handle context window exceeded errors from Anthropic
b45230784dAgus Zubiaga committed on 4/14/2025, 2:39:33 PM· committed by GitHubparent4a57664
9 files changedLine totals unavailable