[BUG] Edit tool fails with "replace_all type is expected as boolean" since v2.1.70
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Since updating to v2.1.70, the Edit tool intermittently fails with: > The parameter replace_all type is expected as boolean but provided as string This is a regression — the same edits worked fine before this update.
What Should Happen?
Edit tool completes the edit successfully.
Error Messages/Logs
`The parameter replace_all type is expected as boolean but provided as string`
Steps to Reproduce
- Use Claude Code CLI v2.1.70 on Windows 2. Make a normal
Edittool call (noreplace_allparameter, or withreplace_all: false) 3. Error occurs intermittently — more frequent in longer edit sequences
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.61
Claude Code Version
2.1.70
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
Regression introduced in the 2026-03-05 update. Did not occur in the previous version.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗