# acp: Fix issue with claude code /logout command \(\#37452\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7633bbf55a79d29acd9feb330f17f323a9de800f

Requested commit: 7633bbf55a79d29acd9feb330f17f323a9de800f

Commit: 7633bbf55a79d29acd9feb330f17f323a9de800f

Tree: 6fb25a13e7442ef965ad40a26e1c954bfa00d6b7

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
acp: Fix issue with claude code /logout command (#37452)

### First issue

In the scenario where you have an API key configured in Zed and you run
`/logout`, clicking on `Use Anthropic API Key` would show `Method not
implemented`.

This happened because we were only intercepting the `Use Anthropic API
Key` click if the provider was NOT authenticated, which would not be the
case when the user has an API key set.

### Second issue

When clicking on `Reset API Key` the modal would be dismissed even
though you picked no Authentication Method (which means you still would
be unauthenticated)

---

This PR fixes both of these issues

Release Notes:

- N/A
```

## Parents

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

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