Desktop-app sessions die a few minutes after spawn

Đang mở
#4,048 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, macos
Lĩnh vực
authentication, desktop

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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 status reports 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

  1. Create a new worktree session in the app; wait ~2–3 minutes.

  2. Ask the agent to call web_search (or any github-mcp-server-* tool).

  3. 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
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
2.1k
Fork
157
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/app

Tất cả issue của github/app

Issue tương tự

Thêm issue về Security

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.