Copilot CLI starts in wrong working directory
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 6
説明
### 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_
コントリビューションガイド
調査の方向性
新しい PowerShell 7 ウィンドウで `agency copilot --allow-all` を実行して問題を再現し、その後、CLI の agent worker の起動と作業ディレクトリの処理を追跡します。`copilot` が起動されたディレクトリを worker が報告し、ユーザーごとの VS Code インストールフォルダーを報告しない状態になれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- powershell, vscode
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 52/100