github / github/copilot-cli

@ file autocomplete breaks on paths containing spaces

Abierto
#2,731 0 comentarios 2 reacciones 0 asignados Ver en GitHub
area:input-keyboard
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

Autocomplete for @ file references doesn't seem to work for navigating into a folder with a space in the path.

### Affected version

GitHub Copilot CLI 1.0.27

### Steps to reproduce the behavior

1. Initial condition: A file exists at `c:\foo bar\file.md`
2. Type `@c:\foo` in the prompt
3. Autocomplete suggests `@c:\foo bar\` (a folder with a space in its name)
4. Press Tab to complete the path segment
5. Press Backspace to remove [the space](https://github.com/github/copilot-cli/issues/2429) and continue navigating

### Expected behavior

Autocomplete continues showing the folder's contents, allowing further navigation into the folder (e.g., to select `file.md`).

### Actual behavior

The autocomplete menu disappears and path resolution stops. The space in "foo bar" terminates autocomplete for the @ file reference. There appears to be no way to use autocomplete to navigate into files inside directories whose names contain spaces. (Quoting the path from the beginning doesn't trigger autocomplete at all.)

### Additional context

_No response_

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Reproduce the issue in GitHub Copilot CLI 1.0.27 using an @ reference to c:\foo bar\file.md, then trace the @ file autocomplete and path-resolution entry points. Confirm the fix by navigating past the space with Tab and Backspace until file.md is suggested, while preserving the documented behavior for paths without spaces.

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
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
65/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.