diff --git a/internal/connect/clients.go b/internal/connect/clients.go index 23a7343b0..ac415ed08 100644 --- a/internal/connect/clients.go +++ b/internal/connect/clients.go @@ -103,7 +103,7 @@ var allClients = []ClientDef{ ServerKey: "servers", Supported: true, Icon: "vscode", - ClientInfoNames: []string{"Visual Studio Code", "visual-studio-code", "vscode"}, + ClientInfoNames: []string{"Visual Studio Code", "Visual Studio Code - Insiders", "visual-studio-code", "vscode"}, ReloadHint: "Run \"MCP: List Servers\" → Restart (or reload the window) in VS Code to load MCPProxy", }, { @@ -119,8 +119,9 @@ var allClients = []ClientDef{ // Local harness, which the "vscode" client above still serves (#1896). // // Presence is matched exactly against clientInfo.name: the Copilot CLI - // sends "copilot-cli", other Copilot hosts "github-copilot-developer". - ClientInfoNames: []string{"copilot-cli", "github-copilot-developer", "copilot"}, + // sends "copilot-cli", VS Code's agent host "vscode-agent-host" (#1959), + // other Copilot hosts "github-copilot-developer". + ClientInfoNames: []string{"copilot-cli", "vscode-agent-host", "github-copilot-developer", "copilot"}, ReloadHint: "Reload the VS Code window (or restart Copilot CLI) to load MCPProxy", }, { diff --git a/internal/connect/copilot_client_test.go b/internal/connect/copilot_client_test.go index 538441abd..fefb0e775 100644 --- a/internal/connect/copilot_client_test.go +++ b/internal/connect/copilot_client_test.go @@ -48,8 +48,9 @@ func TestConnectCopilotWritesTheCopilotUserConfig(t *testing.T) { // Presence ("seen", calls in the last 24h) is matched exactly against the // clientInfo.name of the MCP initialize request. The Copilot CLI sends -// "copilot-cli" and other Copilot hosts send "github-copilot-developer", so -// both have to be aliases of this client or it never shows as connected. +// "copilot-cli", VS Code's agent host "vscode-agent-host" (#1959) and other +// Copilot hosts send "github-copilot-developer", so all of them have to be +// aliases of this client or it never shows as connected. func TestCopilotClientInfoNamesMatchWhatCopilotSends(t *testing.T) { def := FindClient("copilot") if def == nil { @@ -59,7 +60,7 @@ func TestCopilotClientInfoNamesMatchWhatCopilotSends(t *testing.T) { for _, name := range def.ClientInfoNames { have[name] = true } - for _, want := range []string{"copilot-cli", "github-copilot-developer"} { + for _, want := range []string{"copilot-cli", "vscode-agent-host", "github-copilot-developer"} { if !have[want] { t.Errorf("ClientInfoNames = %v, missing %q", def.ClientInfoNames, want) }