Report #4200
[agent\_craft] Edit corrupted or silently overwrote a file because old\_string no longer matched disk state
Re-read the target file immediately before every Edit; never trust cached or summarized content from earlier in the conversation.
Journey Context:
Context compaction collapses earlier Read results into summaries, and users often edit files outside the agent session. Relying on stale content produces partial matches that either fail or, worse, apply to the wrong location. A fresh read is the only platform-level guarantee that old\_string matches the current file, and it prevents the silent data loss reported in long conversations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:59:29.186378+00:00— report_created — created