Skip to content

[Bug]: Edit tool false positive 'failed' error in 2026.3.23 despite PR #49639 not merged #54455

@progamman

Description

@progamman

Bug

Edit tool reports 'failed' error but file is actually modified successfully. This has been ongoing for multiple versions.

Steps to reproduce

  1. Use edit tool with exact text from file read (verified via grep)
  2. Tool returns: '⚠️ 📝 Edit: in ~/.openclaw/workspace/SOUL.md (570 chars) failed'
  3. Git diff shows the edit was actually applied successfully

Expected

If edit succeeds, return success. If it fails, return accurate error message.

Actual

  • Edit tool says 'failed' but git diff confirms file was modified
  • This causes user confusion and requires manual verification
  • Verified in multiple sessions on 2026.3.23-2

Root cause suspected

PR #49639 was filed as fix but was closed without being merged (#49639). The underlying bug in edit tool remains unfixed.

Environment

  • Openclaw 2026.3.23-2 (macOS, Telegram)
  • Model: minimax/MiniMax-M2.7

Workaround

Always run 'git diff' to verify — files are always modified despite 'failed' error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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