Description
The problem
When I generate a commit message with Copilot in GitHub Desktop, macOS displays a keychain prompt:
copilot-runtime wants to use your confidential information stored in “copilot-mcp-oauth” in your keychain.
The dialog asks for the “login” keychain password and offers Always Allow, Deny, and Allow. I don't expect generating a commit message to need access to OAuth credentials for MCP servers configured outside Desktop, and the prompt does not explain why they are needed.
Release version
3.6.11
Operating system
macOS 27.2.1 (Apple silicon)
Steps to reproduce the behavior
- Have Copilot CLI configured with MCP servers that use OAuth, with an existing
copilot-mcp-oauthkeychain item. - Open a repository with changes in GitHub Desktop.
- Use Copilot to generate commit details.
- Observe the keychain access prompt for
copilot-runtimeandcopilot-mcp-oauth.
Log files
Not provided.
Screenshots
Not provided because the screenshot contains personal file names. The prompt text is quoted above.
Additional context
The installed app contains a GitHub-signed copilot-runtime. The prompt appears to be related to Desktop's runtime discovering the existing Copilot CLI MCP configuration, but I haven't verified the precise initialization path or whether granting access is necessary for commit message generation.
Ideally, commit message generation would not load unrelated MCP credentials; alternatively, Desktop could explain why access is necessary. Could Desktop isolate its Copilot configuration or avoid initializing MCP servers for this feature?
Activity
desktop-triage commentedon Nov 17, 2026
Triage summary: This is a reproducible bug with clear steps, version, and OS — requesting
bug(confidence: HIGH). I'm requestingpriority-3(confidence: MEDIUM) since it affects a narrow set of users who have Copilot CLI MCP servers with OAuth-backed keychain items configured, and a workaround (deny the prompt) likely exists, though the keychain-access nature of the prompt is a privacy-sensitive detail worth engineering attention. No duplicate issues were found indesktop/desktop.Initial hypothesis:
CopilotStore.generateCommitMessagecreates its Copilot runtime client viathis.createClient(account, repositoryPath, credentials)with noenvoverride (desktop/app/src/lib/stores/copilot-store.ts
Lines 1049 to 1057 in 01cde4f
getAssistedCommitClientEnvironment()before calling the samecreateClient(desktop/app/src/lib/stores/copilot-store.ts
Lines 897 to 914 in 01cde4f
desktop/app/src/lib/copilot-assisted-commit.ts
Lines 583 to 603 in 01cde4f
createClientitself (desktop/app/src/lib/stores/copilot-store.ts
Lines 806 to 849 in 01cde4f
copilot-runtimeprocess only receives extraGH_HOST/GITHUB_COPILOT_INTEGRATION_IDvars layered on top of whateveroptions.envis passed — for commit-message generation that'sundefined, so the runtime process inherits the full host environment (e.g.HOME/XDG_CONFIG_HOME), letting it discover the user's real Copilot CLI config, including any MCP servers with OAuth secrets incopilot-mcp-oauth, before session-level flags likeenableConfigDiscovery: false(set increateSession,desktop/app/src/lib/stores/copilot-store.ts
Lines 851 to 876 in 01cde4f
copilot-runtime/copilot-sdkstartup behavior (not in this repo), so it remains a hypothesis pending reproduction.