Copilot CLI starts in wrong working directory
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
### Describe the bug
When `copilot` is launched, the agent worker process runs in a working directory that does **not** match the directory the user launched `copilot` from. Instead, the worker's CWD is set to the per-user VS Code install folder (`C:\Users\\AppData\Local\Programs\Microsoft VS Code`).
### Affected version
GitHub Copilot CLI 1.0.55-1
### Steps to reproduce the behavior
1. Open a fresh PowerShell 7 window via Windows Terminal
2. Confirm `pwd` shows `C:\Users\`.
3. Run `agency copilot --allow-all`.
4. Ask the agent: *"What is your current working directory?"* — or have it run any tool that reports CWD.
### Expected behavior
Agent CWD is `C:\Users\` (the directory `copilot` was launched from).
## Actual
Agent CWD is `C:\Users\\AppData\Local\Programs\Microsoft VS Code\`.
### Additional context
_No response_
Hướng dẫn đóng góp
Hướng nghiên cứu
Tái hiện sự cố từ một cửa sổ PowerShell 7 mới với `agency copilot --allow-all`, sau đó theo dõi quá trình khởi động agent worker của CLI và cách xử lý thư mục làm việc. Hoàn thành khi worker báo cáo thư mục mà từ đó `copilot` được khởi chạy, thay vì thư mục cài đặt VS Code riêng cho từng người dùng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- powershell, vscode
- Lĩnh vực
- cli
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 52/100