fix(anthropic): stop retrying content-filter refusals - #162
Conversation
Co-Authored-By: ForgeCode <noreply@forgecode.dev>
🤖 CodeAnt AI — Review Status
|
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (3 files)
Previous Review Summary (commit 2865c53)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 2865c53)Status: 1 Warning Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (3 files)
Reviewed by step-3.7-flash · Input: 67.1K · Output: 9.3K · Cached: 725.8K |
|
Closing as empty mergify config duplicate (the same mergify config update was already merged to main in tailcallhq#3834, tailcallhq#3829, tailcallhq#3817, etc.). This PR has 0 file changes — mergify auto-respawned its housekeeping branch post-merge. |
|
Reopening — I accidentally closed this in a bulk-cleanup pass that was targeting a different mergify duplicate. This is a real Anthropic-related fix and should not have been closed. Apologies for the churn. |
Co-Authored-By: ForgeCode <noreply@forgecode.dev>
…c-refusal-20260813 Co-Authored-By: ForgeCode <noreply@forgecode.dev>
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
Co-Authored-By: ForgeCode <noreply@forgecode.dev>
Co-Authored-By: ForgeCode <noreply@forgecode.dev>
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
Superseded by #166.
Co-Authored-By: ForgeCode noreply@forgecode.dev |
|
Closed as superseded by #166; branch retained. |
User description
Semantic upstream reconciliation of tailcallhq/forgecode commit b8ac475 (tailcallhq#3640).
Anthropic
stop_reason: refusalnow parses, maps toContentFilter, and terminates as a non-retryable domain error when no tool calls exist.Verification:
cargo test -p forge_app message_delta_refusal_stop_reason --libcargo test -p forge_app refusal_maps_to_content_filter --libcargo test -p forge_domain into_full_refusal_is_non_retryable_error --libcargo test -p forge_domain result_stream_ext::tests --libCodeAnt-AI Description
Stop retrying Anthropic refusals and explain how to recover
What Changed
Impact
✅ Fewer repeated requests for refused prompts✅ Clearer safety-filter guidance✅ Correct handling of Anthropic refusal responses💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.