You'll notice
Fewer false positives when detecting Anthropic API 'safeguards' errors
What
When Claude Code checks whether a 400 error from Anthropic's API is a "safeguards" trip (a safety check that blocked a request), it now also checks the error message against a new pattern matching a specific structured field path, and excludes matches. It does this by first trimming the error down to just its first line before comparing.
Why
This avoids incorrectly classifying certain error messages as safeguards trips when they aren't, which should make error handling and any related messaging more accurate.