github / github/copilot-cli

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

未關閉
#3,719 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:input-keyboard area:platform-windows
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

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

貢獻指南

開啟貢獻指南

研究方向

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.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
powershell, shell
領域
cli
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。