github / github/copilot-cli

@ file autocomplete breaks on paths containing spaces

オープン
#2,731 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る
area:input-keyboard
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

### 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_

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
shell
領域
cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
65/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。