[Bug] Anthropic API Error: Output blocked by content filtering policy on large Compose UI generation
Bug Description
Issue: "Output blocked by content filtering policy" on SoundDetailScreen.kt rewrite
Frequency: Reproducible — blocked 3 consecutive attempts on same task.
Setup:
- ToneWall Android/Jetpack Compose app
- Rewriting SoundDetailScreen.kt to match design layout
- Full codebase context loaded (current screen, design HTML, data model, theme, ViewModel)
- Session running with --allow-dangerously-skip-permissions in bypassPermissions mode
What happened:
1. Attempted: "Rewrite SoundDetailScreen to match design (waveform card, 13 staggered EQ bars, fade animations, play slider, action buttons, related rail, ad banner)"
2. Result: API Error 400 "Output blocked by content filtering policy" — no tool calls executed, no file writes
3. Retried with same prompt: blocked again after ~13s
4. No sensitive data, no external URLs, no credential exposure — pure Kotlin/Compose code
Context: Content was sourced entirely from internal files (current .kt file, design HTML already in repo, local data models), not from pasting external design references or copying recognizable third-party content. Expected output: structural Compose UI code with animations.
Workaround: Breaking the screen into sections (header → EQ bars → actions → rail) succeeds without blocking, so the issue appears isolated to single large-output requests on this particular screen.
Request IDs: (check terminal logs for exact IDs from the three attempts)
Is this a false positive on the filter, or is there content in the design/model context that's triggering it?
Environment Info
- Platform: linux
- Terminal: xterm-256color
- Version: 2.1.196
- Feedback ID: f63524ca-fe9b-4c8f-9452-eb67887a2479
Errors
[]