openclaw - 💡(How to fix) Fix [Feature Request] Edit tool should show diff output after file changes

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

When the edit tool completes a file modification, it should display a diff showing exactly what changed — similar to how Claude Code and other AI coding tools work.

Root Cause

When the edit tool completes a file modification, it should display a diff showing exactly what changed — similar to how Claude Code and other AI coding tools work.

Code Example

--- a/path/to/file.md
+++ b/path/to/file.md
@@ -5,7 +5,6 @@
 context line
-old line removed
+new line added
 context line
RAW_BUFFERClick to expand / collapse

Summary

When the edit tool completes a file modification, it should display a diff showing exactly what changed — similar to how Claude Code and other AI coding tools work.

Motivation

Currently the edit tool either:

  • Returns verbose JSON that is hard to parse visually
  • Shows only a success/failure status with no context

This makes it difficult for operators to verify that the correct changes were made, especially in multi-agent scenarios where the parent agent needs to confirm sub-agent edits.

Requested Behavior

After a successful edit, display a unified diff:

--- a/path/to/file.md
+++ b/path/to/file.md
@@ -5,7 +5,6 @@
 context line
-old line removed
+new line added
 context line

Benefits

  • Operators can immediately verify edit correctness
  • Reduces accidental data loss from mis-targeted edits
  • Matches user expectations from other AI coding tools (Claude Code, etc.)
  • Enables better collaboration in multi-agent workflows

Environment

  • OpenClaw version: 2026.5.7

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Feature Request] Edit tool should show diff output after file changes