# edit_prediction: Normalize prompt paths to Unix style \(\#61792\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/6dcb0e57b5a6d12cc6bab21c11488fd76db0eaaf)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 6dcb0e57b5a6d12cc6bab21c11488fd76db0eaaf

Requested commit: 6dcb0e57b5a6d12cc6bab21c11488fd76db0eaaf

Commit: 6dcb0e57b5a6d12cc6bab21c11488fd76db0eaaf

Tree: e1222b1ec788f4dd87f4a40bb1a951f365715966

Author: Ben Kunkle

Committer: GitHub

## Message

```
edit_prediction: Normalize prompt paths to Unix style (#61792)

# Objective

- Fix V4 edit prediction requests failing for local Windows projects
because native path separators do not match Unix-formatted context paths
on the server.

## Solution

- Canonicalize serialized buffer paths through the existing `RelPath`
representation.

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

## Suggested .rules additions

- Paths serialized for edit prediction APIs must use `RelPath`'s Unix
representation rather than platform-native `PathBuf` formatting.

---

Release Notes:

- N/A
```

## Parents

- [50ac7dc925bb3a9ed19bd1c5ba446fbb001a4146](https://git.cafe/gitcafe/zed/commit/50ac7dc925bb3a9ed19bd1c5ba446fbb001a4146?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/6dcb0e57b5a6d12cc6bab21c11488fd76db0eaaf?format=markdown)
