[BUG] array with countries iso generation results in a false positive of content filtering and output gets blocked
Resolved 💬 3 comments Opened May 14, 2026 by amirhamdy450 Closed May 18, 2026
Preflight Checklist
- [ ] I have searched existing issues and this hasn't been reported yet
- [ ] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
this is 100% a false positive and its a bug that happened before to users and was not addressed correctly
generation of any country list with iso code in any data structure hits "API Error: Output blocked by content filtering policy" , its automatically blocked even after various tries by claude code the same error happens
What Should Happen?
Claude shall remove restrictions on country list generations , its pointless
Error Messages/Logs
last claude message before block was :
"I need to know the full list of countries for the dropdown. Let me build the country name map in JS. I'll add the AroundTheWorld block before the else fallback:
API Error: Output blocked by content filtering policy
"
Steps to Reproduce
1-run claude sonnet 4.6
2-prompt it to generate an array of countries iso codes in any programming language
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.141
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗