github / github/copilot-cli

Search stuck and never finishes

Abierto
#4,448 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

area:tools
Lenguaje dominante
Shell
Estrellas
11.2k
Forks
1.9k
Merge medio
14 h 16 min
PR fusionados (30 d)
6

Descripción

Describe the bug

I created a md to work around the issue, and it has the description

cat ~/.copilot/instructions/search-tool-workaround.instructions.md

Search / grep tool workaround

In this environment the built-in grep tool (and code-search tooling built on
it) can stall for minutes on the "Search" spinner, even though the underlying
ripgrep work completes in milliseconds. This is a tool-invocation-layer issue,
not a real search cost:

  • Single-file ripgrep: ~2 ms
  • Whole 70 GB / ~825k-file working tree: ~3.8 s

So the multi-minute "Search" hangs are NOT caused by ripgrep or repo size.

Guidance

  • Prefer plain grep/rg and view/cat/sed via the bash tool for
    searching file contents and reading files. These return in milliseconds.
  • Avoid the built-in grep tool here until the responsiveness bug is fixed.
  • Always scope searches to a specific path/file when possible
    (e.g. grep -nE 'pattern' path/to/file).
Affected version

GitHub Copilot CLI 1.0.79

Steps to reproduce the behavior

everytime it needs to Search

Search "something" ....

which stuck forever

Expected behavior

No response

Additional context

No response

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Empieza reproduciendo el bloqueo en GitHub Copilot CLI 1.0.79 usando la herramienta integrada Search/grep y, después, compáralo con los comandos grep o rg basados en bash descritos en ~/.copilot/instructions/search-tool-workaround.instructions.md. Rastrea la capa de invocación de Search en lugar del rendimiento de ripgrep. Se considera completado cuando las búsquedas terminan en vez de quedarse en el spinner de Search.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
shell
Área
cli
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Activo
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.