zbirenbaum / zbirenbaum/copilot.lua

No Copilot models working

Open
#723 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
4.1k
Forks
161
Avg merge
11h 54m
Merged PRs (30d)
13

Description

Version Information

Neovim Version 0.12.3
macOS 26.5.1
Latest copilot.lua via lazy

Description

When attempting to use this plugin several weeks ago, just after the change to make use of the new authentication style via sqlite3 databases I had a working solution. Since then it appears I made some form of change and can no longer get any working interactions with the models. I cannot find anything like my problem anywhere so it is likely a setting I am unaware of that I changed. I just don't know where else to turn to.

My intention has been to use this plugin in conjunction with CodeCompanion.nvim and since I was receiving errors such as a

[chat::_submit_http] Error: {
body = '{"error":{"message":"The requested model is not supported.","code":"model_not_supported","param":"model","type":"invalid_request_error"}}',
exit = 0,

when attempting to use CodeCompanion, I tried setting to default models and using the minimum config they provide. Neither changed result, so I figured the problem must be here with copilot.lua.

So I have tried multiple times to re-authenticate, revoke access and re-authenticate again, to no avail. This is both within the minimal configs, and with my typical configs. Occasionally, when trying :Copilot enable I would get an LSP crash log which, when reading the latest logs in either ~/.local/state/nvim/lsp.log or ~/.repro/state/nvim/lsp.log shows

[WARN][2026-07-07 13:46:25] ...lar/neovim/0.12.3/share/nvim/runtime/lua/vim/lsp/log.lua:150 "buf_attach_client called on unloaded buffer (id: 1): "
[WARN][2026-07-07 13:47:09] ...lar/neovim/0.12.3/share/nvim/runtime/lua/vim/lsp/log.lua:150 "[OrgCustomAgentClient] >[OrgCustomAgentClient] list nhampton20/dotfiles -> 404"

Any help with or similar stories would be greatly appreciated. I cannot

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported minimal configuration, Neovim 0.12.3, and the latest ~/.local/state/nvim/lsp.log or ~/.repro/state/nvim/lsp.log output. Reproduce the failure with :Copilot enable and the CodeCompanion configuration, then compare the model_not_supported and OrgCustomAgentClient messages. Done means a supported model interaction works without the reported LSP crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, lua, neovim
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.