# acp: Fix spawning login task \(\#38567\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 18df6a81b420914507515e7ba3c19665e4e11197

Requested commit: 18df6a81b420914507515e7ba3c19665e4e11197

Commit: 18df6a81b420914507515e7ba3c19665e4e11197

Tree: cacd98321fcf5d1a4ecc7a4c4c0a3c8990f3c392

Author: Cole Miller

Committer: GitHub

## Message

```
acp: Fix spawning login task (#38567)

Reverts #38175, which is not correct, since in fact we do need to
pre-quote the command and arguments for the shell when using
`SpawnInTerminal` (although we should probably change the API so that
this isn't necessary). Then, applies the same fix as #38565 to fix the
root cause of being unable to spawn the login task on macOS, or in any
case where the command/args contain spaces.

Release Notes:

- Fixed being unable to login with Claude Code or Gemini using the
terminal.
```

## Parents

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

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