**Title:** File search passes empty ripgrep type and fails

Open Beginner friendly
#3,295 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Domain
cli, search

Research direction

Start at the file-search tool entry point where the ripgrep command is assembled, since the payload names no source file or test. Reproduce a search without a file type and inspect the generated arguments; done means the empty type produces no --type/-t argument while a valid type still works.

Written by the indexing model from the issue text.

Description

Title: File search passes empty ripgrep type and fails

Description

Copilot Desktop file/code searches fail across all projects with:

rg: unrecognized file type:

The file-search tool appears to pass an empty file type to ripgrep, equivalent to:

rg --type '' PATTERN

Reproduction

  1. Open any project in Copilot Desktop.
  2. Ask Copilot to search project files without specifying a language/file type.
  3. Search fails with the error above.
  4. Reproduces across all projects and sessions.

Observed

An empty type value fails consistently. A valid registered type such as js works.

Expected

When no file type is specified, omit the --type/-t argument entirely.

Environment

  • Copilot Desktop/CLI version: 1.0.80
  • OS: macOS Darwin
  • Date observed: August 28, 2026

Field Value
App version 1.1.14
OS macOS 27.0.0
Theme GitHub
Path /chat
Tenure Week 3
Dominant language
No language data
Stars
2.1k
Forks
157
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/app

All issues in github/app

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.