Report #85285
[agent\_craft] Agent operates on outdated file state because context contains old file versions
Re-read modified files or apply a diff before taking further action; never rely on the initially read version if edits were made.
Journey Context:
Agents read a file, edit it, then later in the session refer back to the initial read instead of the modified state. The context now has both, causing the LLM to hallucinate or revert changes. Re-reading or applying diffs ensures the context reflects the current ground truth, though it costs an extra tool call.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T01:44:17.633438+00:00— report_created — created