Desktop-app sessions die a few minutes after spawn
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- github, macos
調査の方向性
Start by reproducing the failure using the listed worktree-session steps and inspect the process logs for copilot_runtime::session::mcp::tool_catalog and remote::api_session_exporter. Trace how the GitHub credential registration is used by github-mcp-server after spawn and how a stale catalog affects later turns. Done means the credential failure no longer terminates the app-hosted session or makes subsequent turns unusable.
索引モデルが issue の本文から書いたものです。
説明
Title: Desktop-app sessions die a few minutes after spawn: "GitHub credential registration is no longer available for this session" → stale github-mcp-server catalog treated as fatal
Environment
-
GitHub Copilot desktop app 1.1.22 (commit c3daa01), macOS (arm64), bundled CLI 1.0.84-5
-
Account: TwoPatient (github.com);
gh auth statusreports valid tokens (GH_TOKEN and keyring) -
Standalone CLI 1.0.86 (
/opt/homebrew/bin/copilot) is not affected
Summary
In app-hosted sessions, the GitHub credential registration the CLI server uses for the built-in github-mcp-server (dynamic header provider) disappears a few minutes after the process spawns. github-mcp-server initialises fine at warm-up, but the first call to any of its tools (web_search, github-mcp-server-*) fails with a header-provider error, the MCP tool catalog is marked stale, and every subsequent model turn fails until the session ends with sessionEnd reason: error. Background sub-agents in the same process die too. App restarts (3×) did not help.
Steps to reproduce
-
Create a new worktree session in the app; wait ~2–3 minutes.
-
Ask the agent to call
web_search(or anygithub-mcp-server-*tool). -
Observe the tool error, then repeated session errors on the next turns, then the session terminates.
Actual
Tool result:
Plain text
MCP tool catalog changed before tool "github-mcp-server-web_search" could be invoked: Failed to verify cached MCP tools: MCP request failed: Transport send error: unexpected server response: dynamic header provider failed: GitHub credential registration is no longer available for this session
Followed by 5 × session.error:
Plain text
Execution failed: Failed to refresh MCP tools for server github-mcp-server; the last catalog is stale
then session.end reason: error — CLI process exits, worktree session unusable.
Process log (copilot_runtime::session::mcp::tool_catalog): 30+ Failed to list MCP tools for github-mcp-server; continuing with the previously listed tools: … GitHub credential registration is no longer available for this session. Processes that never call github-mcp tools show the same root symptom non-fatally in remote::api_session_exporter: remote session batch flush failed {"error":"GitHub credential authority error: GitHub token provider registration \"<uuid>\" is unavailable"} from ~2 s after spawn.
| Field | Value |
|---|---|
| App version | 1.1.22 |
| OS | macOS 27.0.0 |
| Theme | GitHub |
| Path | /chat |
| Tenure | Week 19 |
- 主要言語
- 言語のデータがありません
- スター
- 2.1k
- フォーク
- 157
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/app のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
似ている issue
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Nmap
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
Mend: dependency security vulnerability untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
blocklist removal
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
MetaMask/eth-phishing-detect#296544 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Azure/azure-functions-docker#1257 ·