github / github/copilot-cli

Unable to add-dir with user home directory (Windows)

Offen
#3,719 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:input-keyboard area:platform-windows
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

### Describe the bug

When using /add-dir command, if trying to use ~ for home directory, backslash fails to recognize. It's necessary to use forward-slash, but the autocomplete keeps replacing my forward-slash with backslash.

### Affected version

GitHub Copilot CLI 1.0.60

### Steps to reproduce the behavior

/add-dir ~/.agents/skills
Autocomplete will turn it into ~\.agents\skills and I can't override it
add-dir command fails

### Expected behavior

Expect /add-dir with ~\ to work correctly OR
Autocomplete doesn't replace / with \

### Additional context

Windows 11
Using Windows Terminal with pwsh 7

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by reproducing `/add-dir ~/.agents/skills` on Windows 11 with PowerShell 7 and observe the autocomplete transformation. Inspect the `/add-dir` command and its autocomplete path handling; done means a home-directory path with `~` works, or the autocomplete no longer forces backslashes in a way that makes the command fail.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
powershell, shell
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.