# assistant: render api key editor if no credentials are set \(\#7197\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6c93c4bd359a9dc7df511df48ddbb59b1551fb60

Requested commit: 6c93c4bd359a9dc7df511df48ddbb59b1551fb60

Commit: 6c93c4bd359a9dc7df511df48ddbb59b1551fb60

Tree: f93d863580d97b2e0365fc8d6a105cc73c295a01

Author: Thorsten Ball

Committer: GitHub

## Message

```
assistant: render api key editor if no credentials are set (#7197)

This hopefully reduces confusion for new users. I updated the docs just
this morning, but I figured it's probably better to fix the issue
itself.

So what this does is to render the API key editor whenever the assistant
panel is opened/focused and no credentials can be found.

See: https://github.com/zed-industries/zed/discussions/6943

Release Notes:

- Fixed assistant panel not showing dialog to enter API key when opened
without saved credentials.

---------

Co-authored-by: Piotr <piotr@zed.dev>
```

## Parents

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

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