# acp: Fix /logout for agents that support it \(\#40248\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4f656cedfa4d3622ef58bcfc425a33d0c7361488

Requested commit: 4f656cedfa4d3622ef58bcfc425a33d0c7361488

Commit: 4f656cedfa4d3622ef58bcfc425a33d0c7361488

Tree: 630b56ed25a8b17001062b9e55d3e9b2ddc24cdf

Author: Ben Brandt

Committer: GitHub

## Message

```
acp: Fix /logout for agents that support it (#40248)

We were clearing the message editor too early. We only want to clear the
message editor if we are going to short circuit and return early before
submitting.
Otherwise, the agents that can handle this themselves won't have the
ability to do so.

Release Notes:

- acp: Fix /logout not working for some agents
```

## Parents

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

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