-
-
Notifications
You must be signed in to change notification settings - Fork 69.4k
Edit tool fails with exact match requirement - no retry logic #44210
Copy link
Copy link
Open
Description
Description
When using the edit tool, if the oldText does not match exactly (including whitespace and newlines), the edit fails with an error. There is no staleness detection or retry mechanism.
Expected behavior
The tool should either:
- Detect if the file was modified between read and edit
- Provide a retry option
- Show current file content on match failure
Related Issues
- feat: allow suppressing tool-error warnings for mutating tools (exec) #18630
- Edit tool: return current file content on match failure (optimistic concurrency) #18132
Workaround
Using exec + echo/append to write to files instead.
Environment
- OpenClaw version: 2026.3.11
- Node: 22.22.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.