[Bug] Anthropic API Error: Prompt Containing "Infinity:NaN" Triggers Usage Policy Violation

Resolved 💬 3 comments Opened Sep 11, 2025 by ecarter Closed Sep 15, 2025

Bug Description
Adding the text "Infinity:NaN" to a prompt results in the following error - API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy (https://www.anthropic.com/legal/aup). Please double press esc to edit your last message or start a new session for Claude Code to assist with a different task.

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 1.0.111
  • Feedback ID: c88df937-915d-4c5d-9876-df98e2b03e76

Errors

[]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗