Copilot CLI floods Windows Credential Manager with copilot-mcp-oauth / copilot-keychain-chunk entries, causing CredWrite error 8 for other apps
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
Start by tracing how Copilot CLI stores MCP OAuth credentials and keychain chunks in Windows Credential Manager; the issue does not name source files or tests, so locate the credential storage and auth cleanup entry points first. Reproduce the reported accumulation if possible, then inspect how entries are created, updated, and removed. Done means credential entries do not accumulate across auth updates or clearing, and CredWrite failures are handled gracefully.
索引モデルが issue の本文から書いたものです。
説明
Summary
Copilot CLI accumulated hundreds of entries in Windows Credential Manager and never removed them. The vault reached a state where no application could write a credential. For example, az devops login failed, and so did cmdkey /add from the command line.
Environment
- Copilot CLI 1.0.116
- Windows, Entra ID (AzureAD) user account
Symptoms
Unable to use secure credential store in this environment.
(8, 'CredWrite', 'Not enough memory resources are available to process this command')
cmdkey /add:x /user:u /pass:abcfails with "Not enough memory resources are available".- The error occurs even for 1-character values, and for the SESSION, LOCAL_MACHINE and ENTERPRISE persistence modes.
- Adding entries through the Credential Manager UI still worked.
- Event Viewer showed nothing relevant (no Vault, DPAPI or LSA errors).
- No policy blocks credential storage (
DisableDomainCreds= 0).
Evidence
cmdkey /list showed 332 entries. 268 were Copilot's:
- 135 x
*.copilot-mcp-oauth - 133 x
copilot-keychain-chunk.<n>.<n>.<n>
The other 64 entries were from other applications. The Credentials vault folder held about 120 KB.
Confirmation
I deleted only the 268 Copilot entries. Credential writes worked again immediately, using the same Python keyring WinVaultKeyring call that failed before.
Expected behavior
- Update or overwrite existing entries instead of creating new ones.
- Remove entries when an MCP server's auth is cleared or no longer needed.
- Store tokens more compactly, with fewer chunked entries.
- Handle
CredWritefailures gracefully.
Workaround
cmdkey /list | Select-String 'Target:' | % {($_ -replace '.*Target:\s*','').Trim()} |
? { $_ -match 'copilot-mcp-oauth$|copilot-keychain-chunk\.' } | % { cmdkey /delete:$_ }
Then re-authenticate MCP servers.
Open question
It's unclear which limit was hit (entry count, total size, or something else). UI saves still worked while API writes failed.
- 主要言語
- Python
- スター
- 11.5k
- フォーク
- 2k
- 平均マージ
- 6時間 34分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/copilot-cli のほかの issue
-
area:plugins
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
github/copilot-cli#5567 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
github/copilot-cli#5489 ·
-
Built-in functions.view returns no content for large files despite documenting automatic truncationオープンarea:tools
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
github/copilot-cli#5476 ·
-
triage
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
github/copilot-cli#5377 ·
-
area:platform-windows area:tools
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
github/copilot-cli#5340 ·
github/copilot-cli の issue をすべて見る
似ている issue
-
marketing
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
Status: Triage Suggestion
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
collabnix/awesome-mcp-lists#515 ·
メンテナーはふだん 1 日以内に返信
-
Look-ahead bias via resample('1min').interpolate(method='time') in CCIStrategy and ReinforcedQuickieオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
documentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信