From 2b8bbd7187b0b6e1113e6a87ee689911f2745c40 Mon Sep 17 00:00:00 2001 From: Alex Vallone <39172404+amv146@users.noreply.github.com> Date: Wed, 18 Nov 2026 01:03:06 -0800 Subject: [PATCH 1/2] fix(server): label Copilot rg calls as file searches Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts | 6 +++--- packages/provider-acp-registry/src/server/copilotAcp.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts b/apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts index 495f16646a61..29e33550ebc6 100644 --- a/apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts +++ b/apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts @@ -1999,7 +1999,7 @@ describe("AcpRegistryAdapterV2", () => { // Copilot flattens MCP titles and reports kind "read" for MCP calls and glob; its native // tool.execution_start event carries the real identity. - it.effect("keeps Copilot's MCP and search tool identity instead of calling them file reads", () => + it.effect.each(["glob", "rg"])("keeps Copilot's MCP and %s identity", (toolName) => Effect.gen(function* () { const sessionId = "copilot-session"; const executionStart = (data: Record) => ({ @@ -2058,7 +2058,7 @@ describe("AcpRegistryAdapterV2", () => { }), executionStart({ toolCallId: "native-search", - toolName: "glob", + toolName, toolTitle: "Finding files", arguments: { pattern: "*.ts", paths: ["/workspace"] }, }), @@ -2066,7 +2066,7 @@ describe("AcpRegistryAdapterV2", () => { sessionUpdate: "tool_call", toolCallId: "native-search", title: "Finding files matching *.ts", - kind: "read", + kind: toolName === "rg" ? "other" : "read", status: "completed", rawInput: { pattern: "*.ts", paths: ["/workspace"] }, locations: [{ path: "/workspace" }], diff --git a/packages/provider-acp-registry/src/server/copilotAcp.ts b/packages/provider-acp-registry/src/server/copilotAcp.ts index 7b5027147c07..44723c79dc1d 100644 --- a/packages/provider-acp-registry/src/server/copilotAcp.ts +++ b/packages/provider-acp-registry/src/server/copilotAcp.ts @@ -69,7 +69,7 @@ type CopilotToolIdentity = | { readonly kind: "mcp"; readonly server: string; readonly tool: string } | { readonly kind: "search" }; -const COPILOT_SEARCH_TOOLS = new Set(["glob", "grep"]); +const COPILOT_SEARCH_TOOLS = new Set(["glob", "grep", "rg"]); interface CopilotSessionAttribution { delta: { readonly kind: string; readonly text: string; readonly task?: string } | undefined; From e4d3539ec87a64a4a590209b2b1801ca5473c64d Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Wed, 18 Nov 2026 09:25:01 +0000 Subject: [PATCH 2/2] test(server): note Copilot rg reports ACP kind other Co-Authored-By: Claude Opus 5.5 --- .../orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts b/apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts index 29e33550ebc6..1931b1a87b0d 100644 --- a/apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts +++ b/apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts @@ -1997,8 +1997,8 @@ describe("AcpRegistryAdapterV2", () => { }).pipe(Effect.provide(layerTest)), ); - // Copilot flattens MCP titles and reports kind "read" for MCP calls and glob; its native - // tool.execution_start event carries the real identity. + // Copilot flattens MCP titles and reports kind "read" for MCP calls and glob ("other" for rg); + // its native tool.execution_start event carries the real identity. it.effect.each(["glob", "rg"])("keeps Copilot's MCP and %s identity", (toolName) => Effect.gen(function* () { const sessionId = "copilot-session";