# copilot: Fix auth db fallback \(\#57764\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bc64e1f9556228a95b8aa772680352688310387f

Requested commit: bc64e1f9556228a95b8aa772680352688310387f

Commit: bc64e1f9556228a95b8aa772680352688310387f

Tree: d956065902641b0727f159526a71623f5908ed30

Author: Anthony Eid

Committer: GitHub

## Message

```
copilot: Fix auth db fallback (#57764)

This PR uses https://github.com/zed-industries/zed/pull/57758 as a base
and adds tests, cleans up the comments, and checks changes the database
query used in auth.db to include oauth key.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #ISSUE

Release Notes:

- Fixed GitHub Copilot Chat showing an empty model dropdown for users on
newer Copilot SDK builds

---------

Co-authored-by: Alexander Shlemov <eodus@users.noreply.github.com>
Co-authored-by: cameron <cameron.studdstreet@gmail.com>
```

## Parents

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

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