[BUG] Edit tool fails with "replace_all type is expected as boolean" since v2.1.70

Resolved 💬 3 comments Opened Mar 6, 2026 by mateusfig Closed Mar 10, 2026

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

  1. Use Claude Code CLI v2.1.70 on Windows 2. Make a normal Edit tool call (no replace_all parameter, or with replace_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.

View original on GitHub ↗

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