**Title:** File search passes empty ripgrep type and fails
还没有人认领这个 Issue。
评估
调研方向
从组装 ripgrep 命令的 file-search 工具入口点开始,因为 payload 没有指定源文件或测试。重现一次不指定文件类型的搜索,并检查生成的参数;完成的标准是空类型不会生成 --type/-t 参数,而有效类型仍然能够正常工作。
由索引模型根据 Issue 内容生成。
描述
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
- Open any project in Copilot Desktop.
- Ask Copilot to search project files without specifying a language/file type.
- Search fails with the error above.
- 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 |
- 主要语言
- 没有语言数据
- 星标
- 2.1k
- 派生
- 157
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/app 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 64/100
-
难度 2/5 1-3 小时 新手友好度 65/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
BasedHardware/omi#15662 · 1 条评论 ·
-
type/automation type/performance
难度 2/5 1-3 小时 新手友好度 82/100
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
alexgorbatchev/dotfiles#107 ·
-
bug cli
难度 2/5 1-3 小时 新手友好度 70/100
-
bug
难度 2/5 1-3 小时 新手友好度 88/100