[BUG] Repeated Error editing perl script

Resolved 💬 3 comments Opened Aug 26, 2025 by jpritikin Closed Jan 4, 2026

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [X] Other: Claude Code
  • Claude CLI version: 1.0.92
  • Operating System: Linux 6.14.0-28-generic (Ubuntu)
  • Terminal: ghostty

Bug Description

I asked Claude Code to write a bug report for itself. Here's what it wrote:

The Edit tool experienced repeated invocation failures where tool calls were
submitted with missing required parameters, despite the assistant attempting to
use the tool normally. Multiple consecutive Edit tool calls failed with
validation errors indicating all required parameters (file_path, old_string,
new_string) were missing.

Steps to Reproduce

  1. Attempt to edit a specific regex pattern in the Perl script, specifically trying to change: \n\n(.+?)\n\n to: \n\n([^\n]+?)\n\n
  2. The Edit tool call gets submitted without any parameters filled in
  3. Tool validation fails repeatedly with missing parameter errors

Expected Behavior

Edit tool calls should be properly formed with all required parameters
(file_path, old_string, new_string) populated when the assistant attempts to use
them.

Actual Behavior

Edit tool calls were submitted completely empty, failing validation repeatedly.
The assistant appeared to be attempting normal tool usage but the parameters
weren't being transmitted.

Additional Context

  • This occurred during active file editing session
  • Multiple other tools (Read, Grep) continued working normally during the same

session

  • The issue seemed to resolve after the user manually edited the file
  • This appears to be a tool invocation mechanism issue rather than user error or

normal validation failure

View original on GitHub ↗

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