# acp: Set agent server cwd from project paths \(\#52005\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8f0826f5435eb1d408ceffce4d5e56a465b37e9e

Requested commit: 8f0826f5435eb1d408ceffce4d5e56a465b37e9e

Commit: 8f0826f5435eb1d408ceffce4d5e56a465b37e9e

Tree: 69cd013554da08350889cc23d18e9a68c617e05d

Author: Ben Brandt

Committer: GitHub

## Message

```
acp: Set agent server cwd from project paths (#52005)

## Context

Add Project::default_path_list and reuse it for agent session work
directories and ACP server startup so agent processes start in the
project context by default

We previously removed all cwd from this hoping to have a global process
shared, but it doesn't work for remote projects. Since we're at the
project boundary anyway, we might as well start it up in a similar spot
as a new thread.


## Self-Review Checklist

<!-- Check before requesting review: -->
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- acp: Make sure the agent server is started in a project directory
```

## Parents

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

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