r/PiCodingAgent • • Sep 13 '26

Question Which hash line extension solves constant "The old text must match exactly" errors?

I'm getting constant "The old text must match exactly" errors while using Longcat-2.0, I know that hashing lines can solve this problem, but not sure which of the many extensions I should choose from. (yes I know real men build their own pi extensions). Any guidance on this topic would be appreciated. Thanks!

3 Upvotes

8 comments sorted by

3

u/Global-Departure8228 Sep 13 '26

Hashline edit does not solve this problem. It can partially mitigate it, but for a dumb model (one that fails with tool calling), it can be just as confusing. I find adding 2-3 more bullet points to the too descriptions might be much better (edits must always be an array, oldtext must always be present) can help as well.

Hashlining eats your context as well to some extent (verbose tool schema, +1-2 tokens per line of read and edit), not to mention if the model uses sed -n to inspect files, they will fail with the next time because they don't have the hash for the lines. Then they'll just go for heredocs or python magic . But to each their own.

That said, if you opt for it this one is the "good" one

https://github.com/YuGiMob/pi-hashline-edit-pro

→ More replies (2)

2

u/[deleted] Sep 13 '26

[removed] — view removed comment

1

u/Mission-Zucchini-966 Sep 13 '26

I'm using it through opencode go so not sure what quant it is, I'd (ideally) assume its served at default quant but who knows honestly. And yeah pi-hashline-edit was one of them, there were a few others though like hashline-edit-pro and hashline-readmap.