Skip to content

[WIP] Misleading error reporting when token not available: Error reported to user as "model not found" #1180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Jul 5, 2025

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original issue description:

When the plugin encounters an authentication issue, this may be shown to the user as "Model not found ". Only opening the logs shows the real issue - Example:

[WARN  Fr 04 Jul 2025 11:39:24 CEST] /home/masssmde/.local/share/nvim/lazy/CopilotChat.nvim/lua/CopilotChat/client.lua:396: Failed to authenticate with copilot: ...zy/CopilotChat.nvim/lua/CopilotChat/config/providers.lua:67: Failed to find GitHub token
[WARN  Fr 04 Jul 2025 11:39:24 CEST] /home/masssmde/.local/share/nvim/lazy/CopilotChat.nvim/lua/CopilotChat/client.lua:354: Failed to authenticate with copilot: ...zy/CopilotChat.nvim/lua/CopilotChat/config/providers.lua:67: Failed to find GitHub token
[WARN  Fr 04 Jul 2025 11:39:24 CEST] /home/masssmde/.local/share/nvim/lazy/CopilotChat.nvim/lua/CopilotChat/client.lua:354: Failed to authenticate with github_models: ...zy/CopilotChat.nvim/lua/CopilotChat/config/providers.lua:67: Failed to find GitHub token
[ERROR Fr 04 Jul 2025 11:39:24 CEST] /home/masssmde/.local/share/nvim/lazy/CopilotChat.nvim/lua/CopilotChat/init.lua:913: ...re/nvim/lazy/CopilotChat.nvim/lua/CopilotChat/client.lua:440: Model not found: o3-mini
[ERROR Fr 04 Jul 2025 11:39:32 CEST] /home/masssmde/.local/share/nvim/lazy/CopilotChat.nvim/lua/CopilotChat/init.lua:913: ...re/nvim/lazy/CopilotChat.nvim/lua/CopilotChat/client.lua:440: Model not found: o3-mini

Consider elevating "token not found" warning to an error?

Fixes #1179.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Misleading error reporting when token not available: Error reported to user as "model not found"
2 participants