# acp: Always pass env to builtin agents \(\#46946\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5c622e3e46fb46cc41f9a2897e41b01aeecf9c21

Requested commit: 5c622e3e46fb46cc41f9a2897e41b01aeecf9c21

Commit: 5c622e3e46fb46cc41f9a2897e41b01aeecf9c21

Tree: 4a46e772a8d09f0690fef877c0dfd6072e3529ea

Author: Ben Brandt

Committer: GitHub

## Message

```
acp: Always pass env to builtin agents (#46946)

Closes #40327

The env vars were only getting added if a custom command was provided.
But it makes sense in either case to be able to specify your env vars,
so now these are applied regardless.

Closes #ISSUE

Release Notes:

- acp: Fix for env vars not being properly applied to built-in ACP
agents.
```

## Parents

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

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