Skip to content

Windows: Ctrl+G cannot launch code-insiders --wait #3733

Description

@burkeholland

Bug

On Windows, Ctrl+G cannot launch VS Code Insiders when $EDITOR is set to the standard wait command:

$env:EDITOR = 'code-insiders --wait'

The same command works directly from PowerShell.

Repro

$env:EDITOR = 'code-insiders --wait'
code-insiders --wait # works
copilot
# Press Ctrl+G

Expected

Copilot CLI opens VS Code Insiders and waits for the prompt file to close.

Actual

✗ Error: Editor 'code-insiders --wait' not found. Check your $COPILOT_EDITOR, $VISUAL, or $EDITOR environment variable.

Using a .cmd wrapper also fails with spawn EINVAL.

Notes

code-insiders resolves to a Windows .cmd shim, so this appears related to #1882. The fix is likely to handle Windows .cmd / .bat editor commands through cmd /c or shell: true, and to support editor commands with arguments such as --wait.

Environment

  • Windows
  • PowerShell
  • Copilot CLI 1.0.60
  • VS Code Insiders

Activity

changed the title [-]Windows: Ctrl+G treats EDITOR="code-insiders --wait" as a literal executable[/-] [+]Windows: Ctrl+G editor launch cannot run code-insiders --wait[/+] on Jun 9, 2026
changed the title [-]Windows: Ctrl+G editor launch cannot run code-insiders --wait[/-] [+]Windows: Ctrl+G cannot launch code-insiders --wait[/+] on Jun 9, 2026
added
area:platform-windowsWindows-specific: PowerShell, cmd, Git Bash, WSL, Windows Terminal
area:configurationConfig files, instruction files, settings, and environment variables
on Jun 9, 2026
added theissue type on Jun 9, 2026

bsivanov commented on Jun 9, 2026

@bsivanov

I think the same is reproducible with code --wait, so not limited to Insiders build.

copilot-cli-bot commented on Sep 19, 2026

@copilot-cli-bot

This appears to be resolved as of GitHub Copilot CLI v1.0.86. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:configurationConfig files, instruction files, settings, and environment variablesarea:platform-windowsWindows-specific: PowerShell, cmd, Git Bash, WSL, Windows Terminal

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions