CopilotForXcode icon indicating copy to clipboard operation
CopilotForXcode copied to clipboard

Copilot for Xcode 0.51.0 — No model configuration found with Copilot Free and Auto

Open yarovi opened this issue 1 month ago • 11 comments

Description

GitHub Copilot for Xcode fails to respond to chat requests with the error No model configuration found.

Environment

GitHub Copilot for Xcode: 0.51.0

Language Server: 1.523.3

Subscription: GitHub Copilot Free

Account status: Active

Model selection: Auto

Steps to reproduce

Sign in to GitHub Copilot for Xcode.

Open the Copilot Chat window.

Select Ask or Agent mode.

Keep Auto selected.

Send a simple message such as "Hello".

Actual result

No model configuration found

Expected result

Copilot should resolve an available model and respond to the chat request.

Relevant logs

[AutoModelService] Fetched auto model for reserve in 137ms: mai-code-1.1-flash

[AutoModelService] Fetched auto model for standby in 140ms: mai-code-1.1-flash

Error: No model configuration found at PYe.getBestChatModelConfig(...)

Additional information

The GitHub account is active, and Copilot Chat works correctly on GitHub.com. Refreshing the connection, restarting Xcode, restarting macOS, and switching between Ask and Agent did not resolve the issue.

yarovi avatar Oct 18 '26 04:10 yarovi

I have the same issue

trlambert1 avatar Oct 20 '26 04:10 trlambert1

We are also facing same issue.

PrernaC11 avatar Oct 23 '26 04:10 PrernaC11

Me too, despite it's working well in the CLI and on VS Code. Looking at ~/Library/Logs/GitHubCopilot/github-copilot-for-xcode.log I could find this, maybe it can help:

[2026-10-24T21:40:34.014Z] [info] [GitHubCopilot] [4404] check status response: Response(status: Active, user: Optional("RicardoBarroso"))
[2026-10-24T21:40:34.015Z] [info] [GitHubCopilot] [4404] No BYOK API keys found, fetching BYOK API keys...
[2026-10-24T21:40:34.015Z] [info] [GitHubCopilot] [4404] No BYOK models found, fetching BYOK models...
[2026-10-24T21:40:34.050Z] [info] [GitHubCopilot] [4404] window/logMessage: {
  "type" : 3,
  "message" : "[AuthManager] resolveSessionWithSource: persisted store resolved a session"
}

...

[2026-10-24T21:44:07.960Z] [info] [GitHubCopilot] [4404] window/logMessage: {
  "message" : "[agenticTurnProcessor] Error in processing turn 1b250a45-67b1-4aac-8807-9bb28f41a1da Error: No model configuration found\n    at PYe.getBestChatModelConfig (\/snapshot\/copilot-language-server-internal\/dist\/main.js:2438:12997)\n    at process.processTicksAndRejections (node:internal\/process\/task_queues:103:5)\n    at async t.resolveModelConfiguration (\/snapshot\/copilot-language-server-internal\/dist\/main.js:2584:6346)\n    at async ModelPickerUtils.getModelConfigurationById (\/snapshot\/copilot-language-server-internal\/dist\/main.js:2584:9562)\n    at async fke.processWithModelAndToolCall (\/snapshot\/copilot-language-server-internal\/dist\/main.js:3731:17406)\n    at async fke.process (\/snapshot\/copilot-language-server-internal\/dist\/main.js:3731:15761)\n    at async handleConversationTurnChecked (\/snapshot\/copilot-language-server-internal\/dist\/main.js:4062:20552)\n    at async Xt.messageHandler (\/snapshot\/copilot-language-server-internal\/dist\/main.js:4187:88801)",
  "type" : 1
}

RicardoBarroso avatar Oct 24 '26 21:10 RicardoBarroso

[2026-10-24T21:40:34.014Z] [info] [GitHubCopilot] [4404] check status response: Response(status: Active, user: Optional("RicardoBarroso")) [2026-10-24T21:40:34.015Z] [info] [GitHubCopilot] [4404] No BYOK API keys found, fetching BYOK API keys... [2026-10-24T21:40:34.015Z] [info] [GitHubCopilot] [4404] No BYOK models found, fetching BYOK models... [2026-10-24T21:40:34.050Z] [info] [GitHubCopilot] [4404] window/logMessage: { "type" : 3, "message" : "[AuthManager] resolveSessionWithSource: persisted store resolved a session" }

...

[2026-10-24T21:44:07.960Z] [info] [GitHubCopilot] [4404] window/logMessage: { "message" : "[agenticTurnProcessor] Error in processing turn 1b250a45-67b1-4aac-8807-9bb28f41a1da Error: No model configuration found\n at PYe.getBestChatModelConfig (/snapshot/copilot-language-server-internal/dist/main.js:2438:12997)\n at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n at async t.resolveModelConfiguration (/snapshot/copilot-language-server-internal/dist/main.js:2584:6346)\n at async ModelPickerUtils.getModelConfigurationById (/snapshot/copilot-language-server-internal/dist/main.js:2584:9562)\n at async fke.processWithModelAndToolCall (/snapshot/copilot-language-server-internal/dist/main.js:3731:17406)\n at async fke.process (/snapshot/copilot-language-server-internal/dist/main.js:3731:15761)\n at async handleConversationTurnChecked (/snapshot/copilot-language-server-internal/dist/main.js:4062:20552)\n at async Xt.messageHandler (/snapshot/copilot-language-server-internal/dist/main.js:4187:88801)", "type" : 1 }

Nikolaymie avatar Oct 25 '26 19:10 Nikolaymie

https://github.com/github/CopilotForXcode/issues/965#issuecomment-6402126834

Nikolaymie avatar Oct 25 '26 19:10 Nikolaymie

I ran into the same issue. After investigating, I found that the MAI model returned by Auto requires LSP 1.541 or later (reference), while Copilot for Xcode 0.51 bundles LSP 1.523, which cannot handle the MAI model.

I replaced the bundled LSP with the latest version and got it working!😄 Here are the steps:

  1. Close GitHub Copilot for Xcode.
  2. Download the latest copilot-language-server-arm64 from https://github.com/github/copilot-language-server-release/releases.
  3. Replace the existing file in /Applications/GitHub Copilot for Xcode.app/Contents/Applications/GitHub Copilot for Xcode Extension.app/Contents/Resources/copilot-language-server-arm64. '/Applications/GitHub Copilot for Xcode.app/Contents/Resources', Back up the original file first.
  4. chmod +x copilot-language-server-arm64
  5. Start GitHub Copilot for Xcode and verify that the error is resolved.

☕;)

sxsfeq avatar Oct 29 '26 06:10 sxsfeq

Haven't changed nothing and today is working fine! 🙃 🤷‍♂️

RicardoBarroso avatar Oct 31 '26 00:10 RicardoBarroso

7. Haven't changed nothing and today is working fine! 🙃 🤷‍♂️

I forgot there was another place: '/Applications/GitHub Copilot for Xcode.app/Contents/Resources' There are always two places that need to be copied 🥹

sxsfeq avatar Oct 31 '26 01:10 sxsfeq

I got back the same issue again, so I applied the @sxsfeq and it worked great, thank you a lot!

I would like to add a clarification, despite I've downloaded the currently latest version (copilot-language-server-darwin-arm64-1.565.1.zip) when you unzip it we'll see their a file named:

  • copilot-language-server

and despite under the two folders which @sxsfeq indicated:

  • /Applications/GitHub Copilot for Xcode.app/Contents/Resources/
  • /Applications/GitHub Copilot for Xcode.app/Contents/Applications/GitHub Copilot for Xcode Extension.app/Contents/Resources/

you'll find these two files:

  • copilot-language-server
  • copilot-language-server-arm64

you'll have to rename the copilot-language-server which you downloaded to copilot-language-server-arm64 and replace that file on both folders. I tried replacing the same named file and it didn't worked out, it must be this way.

RicardoBarroso avatar Nov 01 '26 21:11 RicardoBarroso

@RicardoBarroso Thank you for the addition.🍻

sxsfeq avatar Nov 02 '26 07:11 sxsfeq

I got back the same issue again, so I applied the @sxsfeq and it worked great, thank you a lot!

I would like to add a clarification, despite I've downloaded the currently latest version (copilot-language-server-darwin-arm64-1.565.1.zip) when you unzip it we'll see their a file named:

  • copilot-language-server

and despite under the two folders which @sxsfeq indicated:

  • /Applications/GitHub Copilot for Xcode.app/Contents/Resources/
  • /Applications/GitHub Copilot for Xcode.app/Contents/Applications/GitHub Copilot for Xcode Extension.app/Contents/Resources/

you'll find these two files:

  • copilot-language-server
  • copilot-language-server-arm64

you'll have to rename the copilot-language-server which you downloaded to copilot-language-server-arm64 and replace that file on both folders. I tried replacing the same named file and it didn't worked out, it must be this way.

Thank you. This helpmed me

trlambert1 avatar Nov 08 '26 15:11 trlambert1