This guide covers launcher-specific diagnostics. For installing or troubleshooting GitHub Copilot CLI itself, start with GitHub's official installation documentation.
If the GitHub Copilot Chat extension for VS Code is or was installed, it can leave a copilot, copilot.bat, or copilot.ps1 bootstrapper under its extension global storage directory:
...\Code\User\globalStorage\github.copilot-chat\copilotCli\
If that directory appears earlier on PATH than the real Copilot CLI installation, the plain copilot command can resolve to the bootstrapper instead of the actual executable. The bootstrapper may hang in a terminal and leave an orphaned powershell.exe process consuming CPU. Repeated launches can leave multiple stuck processes.
You can reproduce the resolution outside this extension by running the same command in a regular terminal.
Copilot CLI Launcher starts a terminal and sends the configured command, just as a user would type it. It deliberately does not scan the filesystem or resolve PATH, so it cannot silently choose a different binary.
- An explicit command path inside
github.copilot-chat\copilotCli\requires confirmation on every launch. - The plain
copilotcommand on Windows requires confirmation on the first launch of each VS Code session. - Only Launch Anyway accepts the risk. Dismissing the prompt or choosing another action blocks that launch.
Find every matching command in resolution order:
Get-Command copilot -All
where copilotThen set copilotCliLauncher.cliCommand to the full, quoted path of the real Copilot CLI executable. For example:
"copilotCliLauncher.cliCommand": "\"C:\\Users\\<you>\\AppData\\Local\\Microsoft\\WinGet\\Packages\\GitHub.Copilot_Microsoft.Winget.Source_8wekyb3d8bbwe\\copilot.exe\""The exact location depends on how Copilot CLI was installed. Verify the path on your machine instead of copying the example unchanged.
If the same hang occurs when you run the resolved bootstrapper directly in a regular terminal, report it to GitHub through the official Copilot CLI documentation. The launcher does not modify or replace GitHub's bootstrapper.
Follow GitHub's official installation documentation, then verify the command in a regular terminal:
copilot --versionRestart VS Code after installing the CLI so newly created terminals inherit the updated environment.
Missing-command guidance depends on VS Code terminal shell integration. When integration is unavailable, the launcher can send the command but cannot observe its completion or determine that it is missing. The extension does not download software, create installer files, or run installation commands.
- Confirm the workspace is trusted.
- Open Copilot CLI Launcher: Open Settings from the Command Palette.
- Verify that
copilotCliLauncher.cliCommandworks in a regular terminal. - If the path contains spaces, quote the executable path in the setting.
Use escaped double quotes around executable paths that contain spaces:
"copilotCliLauncher.cliCommand": "\"C:\\Program Files\\GitHub Copilot\\copilot.exe\""The setting is machine-scoped. Workspace configuration cannot replace the command that is launched.
The launcher uses the workspace folder containing the active editor. To select a starting folder in a multi-root window, open a file from the target workspace before clicking the launcher button.
If the active editor is outside every workspace folder, the launcher uses the first workspace folder. If no workspace is open, it leaves the terminal working directory unset.
If the configured command works in a regular VS Code terminal but not through the launcher, open a GitHub issue and include the non-sensitive diagnostics listed in SUPPORT.md. Never include credentials, tokens, customer data, or private repository content.