Skip to content

[Bug]: GitHub Copilot searches and MCP calls can be mislabeled as file reads #38346

Closed

Description

@amv146

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. In T3 Code, use GitHub Copilot CLI through the ACP provider.
  2. Ask Copilot to search files and read code. With an external MCP server configured, also ask it to call a read-only MCP tool.
  3. Expand the turn's activity log.
  4. Inspect the descriptive activity labels, tool names, classification, and integration attribution.

The attached MCP example uses protocol replay with demo-library.search_books and demo-weather.current_weather, not a fresh live Copilot turn. The native search/read example uses captured Copilot events.

Expected behavior

Copilot activities retain enough identity to describe what actually happened: searches are identified as searches, file reads as reads, and integration calls by their tool name and source.

In the MCP example, the activity group should say Used demo library and demo weather integrations, with named tool entries such as Search books and Current weather and expandable tool input and results.

Actual behavior

Two cases were independently verified:

  • MCP calls complete, but instead of named integration tools such as Search books and Current weather, they are presented as file reads under Read 2 files, without correct integration attribution.
  • A live Copilot built-in glob call emits toolName: "glob" in its native event but kind: "read" in ACP, so the search appears as a file read.

The MCP-identity fix does not correct native glob/view labeling. MCP tools can also be named search_files and read_code, so labels such as Search files and Read code alone do not establish that a call was native rather than MCP-backed.

This report concerns activity presentation, not an execution failure.

For the MCP example, the ordinary ACP notification supplies a flattened title and kind: "read". Copilot's opt-in native tool.execution_start event supplies the exact MCP server and tool names, but that identity is not carried into the activity projection on the affected code.

Impact

Minor bug or occasional failure

The activity log misrepresents what the agent did, obscures which operations and tools it used, and makes external MCP activity harder to distinguish from local file reads.

Version or commit

T3 Code 0.1.9; GitHub Copilot CLI 1.0.112, the same Copilot version as in the original reproduction.

Environment

Windows; Chromium web client.

Logs or stack traces

Representative sanitized MCP payloads used by the replay, not a fresh live capture:

github.com/copilot/sessionEvent
{
  "sessionId": "demo-session",
  "type": "tool.execution_start",
  "data": {
    "toolCallId": "demo-call",
    "mcpServerName": "demo-library",
    "mcpToolName": "search_books"
  }
}

session/update
{
  "sessionId": "demo-session",
  "update": {
    "sessionUpdate": "tool_call",
    "toolCallId": "demo-call",
    "title": "demo-library-search_books",
    "kind": "read",
    "status": "in_progress",
    "rawInput": {
      "arguments": { "query": "paper airplanes" },
      "limit": 2
    }
  }
}

For the independently captured native search, the relevant fields were:

github.com/copilot/sessionEvent
{
  "type": "tool.execution_start",
  "data": {
    "toolCallId": "native-search",
    "toolName": "glob",
    "toolTitle": "Finding files",
    "arguments": { "pattern": "*.ts", "paths": ["<workspace>"] }
  }
}

session/update
{
  "update": {
    "sessionUpdate": "tool_call",
    "toolCallId": "native-search",
    "title": "Finding files matching *.ts",
    "kind": "read",
    "status": "pending",
    "rawInput": { "pattern": "*.ts", "paths": ["<workspace>"] },
    "locations": [{ "path": "<workspace>" }]
  }
}

The workspace path and call ID above are sanitized; the native tool name and ACP kind are from the live capture.

Screenshots, recordings, or supporting files

Screenshot and seven-second recording showing MCP calls grouped as Read 2 files through GitHub Copilot's ACP integration. This is a protocol replay, not a fresh live Copilot turn.

MCP calls through GitHub Copilot shown as Read 2 files

reproduction-trimmed.mp4

Workaround

No confirmed end-user workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions