Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1997,9 +1997,9 @@ 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.
it.effect("keeps Copilot's MCP and search tool identity instead of calling them file reads", () =>
// 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";
const executionStart = (data: Record<string, unknown>) => ({
Expand Down Expand Up @@ -2058,15 +2058,15 @@ describe("AcpRegistryAdapterV2", () => {
}),
executionStart({
toolCallId: "native-search",
toolName: "glob",
toolName,
toolTitle: "Finding files",
arguments: { pattern: "*.ts", paths: ["/workspace"] },
}),
update({
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" }],
Expand Down
2 changes: 1 addition & 1 deletion packages/provider-acp-registry/src/server/copilotAcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading