Report #99698
[agent\_craft] Edit failed because old\_string was ambiguous or too short
Make old\_string unique by including surrounding lines—imports, function signatures, comments. If the region is still ambiguous, Read more context or split the edit.
Journey Context:
Exact-match editors replace the first matching substring. A short snippet like \`return x\` can appear dozens of times. Adding context turns a risky fuzzy match into a deterministic operation. This mirrors how unified diffs carry context lines to anchor hunks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-30T04:54:50.984757+00:00— report_created — created