Skip to content

[BUG] Edit tool reports false success and shows simulated content without actually modifying files #5178

Closed as not planned

Description

@djuba-raptor

Here's a summary you could use for the bug report:

Title: Edit tool reports false success and shows simulated content without actually modifying files

Description:
The Edit tool sometimes reports successful file modifications with convincing line-numbered output, but
doesn't actually write changes to the file.

Steps to reproduce:

  1. Use Edit tool on an existing file (e.g., ~/.claude/CLAUDE.md)
  2. Tool reports "The file has been updated" with line-numbered output
  3. Verify actual file content - changes weren't applied

Expected behavior:

  • Edit tool should actually modify the file when reporting success
  • OR fail with clear error message if unable to make changes
  • Should never show fake "results" that don't match actual file state

Actual behavior:

  • Reports success with simulated line-numbered content
  • Actual file remains unchanged
  • Creates false confidence that the edit worked

Impact:

  • Misleading feedback undermines trust in file operations
  • Can cause confusion and wasted time
  • Critical for coding assistant reliability

This would help the Claude Code team track and fix the issue.

Activity

  1. github-actions commented on Aug 5, 2025

    @github-actions
  2. ljholiday commented on Aug 6, 2025

    @ljholiday

    Exiting claude code and restarting resolved the issue. Claude was able to execute the exact command that failed earlier.

    The scenario was removing a small bit of php from a wordpress plugin template.

    This was a long session spanning more than one day and several resource limits.

  3. github-actions commented on Dec 6, 2025

    @github-actions

    This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

  4. github-actions commented on Jan 6, 2026

    @github-actions

    This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

  5. github-actions commented on Jan 14, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  6. locked as resolved and limited conversation to collaborators on Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corearea:toolsautocloseIssue will be closed automaticallybugSomething isn't workinghas reproHas detailed reproduction steps

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions