【Claude Code】使用政策拒绝 Claude Code unable to respond Usage Policy refusal 应对

发布时间:2026/7/22 22:30:27
【Claude Code】使用政策拒绝 Claude Code unable to respond Usage Policy refusal 应对 文章目录一、问题描述1.1 环境信息1.2 报错现象二、根因分析2.1 错误链路追踪2.2 可能原因列举三、解决方案方案一:/rewind 回退到触发轮次之前(推荐)方案二:/clear 启动全新会话方案三:非交互模式(-p)的特殊处理四、验证与回归测试五、总结与预防5.1 核心要点5.2 最佳实践建议六、参考资料一、问题描述1.1 环境信息项目说明工具Claude Code CLI(交互模式或-p非交互模式)触发条件对话内容触发 Anthropic 使用政策(AUP)检查影响范围当前会话的全部历史,非仅最新消息1.2 报错现象对话中 Claude Code 突然拒绝响应,返回以下错误: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.常