You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] filterByFilepaths in a search query not working in copilot, the search returns no results #928
When I include filterByFilepaths in a search query, the search returns no results. Removing filterByFilepaths from the same query returns results as expected. The equivalent file: filter in the Sourcebot search UI works correctly.
I also tried using regex-style patterns instead of glob patterns — same issue, no results.
Expected behavior: filterByFilepaths should filter results by filepath, consistent with the file: filter in the search UI.
Actual behavior: Any value in filterByFilepaths causes the query to return zero results. We have .frm files and none of the following works:
query: "sPayPeriodMsg", filterByFilepaths: [".frm"], ref: "dev"
query: "sPayPeriodMsg", filterByFilepaths: ["**/.frm"], ref: "dev"
query: "sPayPeriodMsg", filterByFilepaths: [".*\.frm$"], ref: "dev"
When the filterByFilepaths is removed it returns a hit.
To reproduce
Use copilot to query through mcp.
Any value in filterByFilepaths causes the query to return zero results. We have .frm files and none of the following works:
query: "sPayPeriodMsg", filterByFilepaths: [".frm"], ref: "dev"
query: "sPayPeriodMsg", filterByFilepaths: ["**/.frm"], ref: "dev"
query: "sPayPeriodMsg", filterByFilepaths: [".*\.frm$"], ref: "dev"
When the filterByFilepaths is removed it returns a hit.
@kislam-eps thx for raising - filterByFilepaths is currently escaping any input there, but it should really accept regex, so I will spin a fix for that. Heads up the fix will only ship for our remote MCP server (docs) as our npm package is now deprecated
Activity
winshaurya commentedon Feb 27, 2026
hey team can i attempt to fix this bug ?
brendan-kellam commentedon Mar 16, 2026
@kislam-eps thx for raising -
filterByFilepathsis currently escaping any input there, but it should really accept regex, so I will spin a fix for that. Heads up the fix will only ship for our remote MCP server (docs) as our npm package is now deprecated