Edit prediction changes (#46169)

1. Handle diffs with no trailing new lines 
2. ep: Don't assume workdir name in edit history paths
3. Fix `imitate_human_edits()` for pure insertions

Release Notes:

- N/A

---------

Co-authored-by: Agus Zubiaga <agus@zed.dev>
efeea7973eOleksiy Syvokon committed on 1/6/2026, 4:49:26 PM· committed by GitHubparent9d05577
4 files changedLine totals unavailable