Skip to content

[Bug]: Edit tool returns false positive "failed" error when edit actually succeeds #49363

@progamman

Description

@progamman

Bug type

Regression (worked before, now fails)

Summary

Edit tool reports "failed" error but the file was actually edited successfully - causes user confusion

Steps to reproduce

  1. Use edit tool to modify a file
  2. The edit tool actually succeeds (file is modified)
  3. Tool returns error: "Edit failed" with message about no changes
  4. User is confused - file shows edit worked but tool reports failure

Expected behavior

Edit tool should return success when file is actually modified, or provide accurate error messages

Actual behavior

Edit tool returns "⚠️ Edit: in ~/.openclaw/workspace/memory/index.md (282 chars) failed" but file was actually modified successfully - false positive error

OpenClaw version

2026.3.13 (61d171a)

Operating system

macOS 13.7 (Darwin 22.6.0)

Install method

No response

Model

minimax/MiniMax-M2.5

Provider / routing chain

openclaw gateway -> minimax

Config file / key location

No response

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions