Repository navigation
fix: recover orphaned Anthropic native web searches - #1645
Conversation
|
| repaired | ||
| } | ||
|
|
||
| /// Remove duplicate tool_result blocks so each tool_use_id is answered/// exactly once, preferring real output over a synthetic placeholder. |
There was a problem hiding this comment.
The mid-sentence /// renders literally as “answered/// exactly” in the function documentation, making the description harder to read. This documentation issue does not block merging.
| /// Remove duplicate tool_result blocks so each tool_use_id is answered/// exactly once, preferring real output over a synthetic placeholder. | |
| /// Remove duplicate tool_result blocks so each tool_use_id is answered | |
| /// exactly once, preferring real output over a synthetic placeholder. |
Artifacts
- This authored script extracts the comment from the cited source, renders it with rustdoc, and reports the resulting docblock text.
Rustdoc output with corrected wording
- Running the script with only the stray marker removed rendered “answered exactly”, establishing the comparison baseline.
Rustdoc output with source wording
- Running the script against the comment as written rendered “answered/// exactly”, confirming the documentation defect.
Ran code and verified through T-Rex
Prompt To Fix With AI
This is a comment left during a code review.
Path: crates/jcode-provider-anthropic/src/lib.rs
Line: 481
Comment:
**Remove the stray doc marker**
The mid-sentence `///` renders literally as “answered/// exactly” in the function documentation, making the description harder to read. This documentation issue does not block merging.
```suggestion
/// Remove duplicate tool_result blocks so each tool_use_id is answered
/// exactly once, preferring real output over a synthetic placeholder.
```
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
Merged into master, thanks! Crate tests and clippy pass locally on the merged result. |
Summary
server_tool_useblocks that have no matchingweb_search_tool_resultpause_turnresume behavior is unchangedFixes #1638.
Validation
master