Files
zed/crates/settings_ui
Smit Barmase 3524cb2297 settings_ui: Save new project skills to the remote in remote workspaces (#66224)
Part of #59088
Stacked on #66207

Creating a project skill in a remote project over SSH, WSL, or a dev
container wrote it to your local machine instead. The skill creator took
the remote folder path and used it on the local disk. So the save either
failed, or the skill landed in a folder the project never sees. The
form, URL import, and share links all hit this.

The skill creator now writes through the project, the same way share and
delete do after #66207, so the skill ends up on the remote. Before
writing, it checks for an existing skill with the same name on the
machine that has the files, so it won't overwrite one, even in a
gitignored or excluded `.agents`. That check is a new
`Project::host_path_is_dir`, which uses the existing `GetPathMetadata`
request, so no proto changes.

Collab guests can't check the host's disk, so saving a project skill in
a project someone shared with you now fails with an error. Hiding the
creator for shared projects is a separate PR.

Global skills in a remote project still get created locally. They should
go to the remote's `~/.agents/skills`, but Zed doesn't load skills from
there yet, see #58222. I'll do that separately.

Release Notes:

- Fixed the skill creator saving project skills to the local machine
instead of the remote in remote workspaces.
2026-10-29 12:55:32 +00:00
..