Repository navigation
Open
Milestone
Description
Environment
Version: 1.147.0 (Universal)
Commit: 8a14f0cc1b08d531eb83255ea3764ae22aa932b5
Date: 2026-11-17T02:46:11Z
Electron: 43.8.9
ElectronBuildId: 16012121
Chromium: 150.0.7871.250
Node.js: 24.22.1
V8: 15.0.245.31-electron.0
@github/copilot: 1.0.111-0
@github/copilot-sdk: 1.0.33-preview.0
OS: Darwin arm64 25.6.0
Relevant Settings
chat.agent.sandbox.network.allowNetwork: true (default)
chat.agent.sandbox.network.allowLocalNetwork: false (default)
chat.agent.sandbox.network.allowedDomains: including github.com, api.github.com and raw.githubusercontent.com, but not api.githubcopilot.com
chat.agent.sandbox.network.deniedDomains: []
Summary
Two related problems:
-
When the built-in
github-mcp-serverfails to start because of sandbox network host rules, the failure goes to the log only. Nothing in the session UI tells the user that the server failed or why. -
With the sandbox enabled the built-in server is blocked. Given this is a built-in server, I would expect it to be in the default allowlist.
Steps to Reproduce
- Enable the agent sandbox with
chat.agent.sandbox.enabled. - Set
chat.agent.sandbox.network.allowedDomainsto a custom list. - Start an chat session using the copilot harness asking for something from github. The agent host tries to start the built-in
github-mcp-server. - Look in the session UI, then in the agent host log.
Actual behaviour
- The session UI shows nothing. There's no warning, no error badge, and no per-server status. The GitHub tools are silently absent.
- The Agent Host output log shows:
[info] [Copilot:<session-id>] Starting MCP server 'github-mcp-server' (state=stopped)
[warning] [AgentSideEffects] startMcpServer failed for ahp-session:/<id> Request session.mcp.startServer failed with message: MCP server 'github-mcp-server': sandbox network host rules deny this destination
[error] [Copilot:<session-id>] MCP server 'github-mcp-server' failed (error): MCP server 'github-mcp-server': sandbox network host rules deny this destination {"mcpEvent":"statusChanged","mcpServer":"github-mcp-server","mcpStatus":"failed","mcpState":"error","errorType":"mcp-server-failed"}
[info] [Copilot:<session-id>] MCP server 'github-mcp-server' not_configured (stopped) {"mcpEvent":"inventory","mcpServer":"github-mcp-server","mcpStatus":"not_configured","mcpState":"stopped","mcpSource":"builtin"}
- The error message doesn't name the blocked host, so the user can't tell what to allow.
- The server ends in not_configured (stopped), which reads as "never set up", not "blocked by the network sandbox".
Expected behaviour
- A failed MCP startup should be shown in the session or Customizations UI.
- Ideally, it should explain the host that was denied and provide the user to add that host to their allowedDomains.
- A built-in, first-party server shouldn't depend on the user hand-editing allowedDomains. The defaults should ship with the relevant server added unless the user overrides it.
- The final status should show the failure, not not_configured.
Workaround
The user adds *.githubcopilot.com to their allowedDomains setting.
Related issues
- Agent sessions: MCP servers requiring promptString inputs or OAuth fail silently — tools absent with no surfaced error or support documentation #334271: Same symptom. An MCP server fails to start in agent sessions and nothing is surfaced. The cause differs (interactive input or OAuth, not sandbox network rules).
- Surface MCP authentication problems persistently in the primary UI #335528: Asks for a persistent MCP health indicator in the primary UI. It's scoped to auth, but the same UI would cover sandbox startup failures.
- Agent Host: resuming a Copilot CLI session fails when a managed sandbox policy restricts hosts/paths ("Sandbox configuration update violates managed policy") #349234: The agent host handles sandbox host restrictions inconsistently. On create it only logs the error, and on resume it aborts the session.
Metadata
Metadata
Assignees
Labels
No labels
Activity