Skip to content

Windows Terminal setup doesn't work in WSL #2991

@qwaz

Description

@qwaz

Describe the bug

Copilot CLI running in Windows Terminal/WSL refuses to setup Windows Terminal.
✗ No supported terminal detected. `/terminal-setup` is supported only in VS Code, Cursor, Windsurf and Windows Terminal.

The WSL Ubuntu distro automatically sets TERM=xterm-256color. I expect this is somehow related.

The keybinding is installed to the Windows Terminal profile, and if I install the keybinding on Windows Terminal + Powershell, that also fixes the problem in Windows Terminal + WSL. However, it would be great if it works automatically inside Windows Terminal + WSL.

Affected version

GitHub Copilot CLI: 1.0.36 / Windows Terminal: 1.24.10921.0 / WSL Distro: Ubuntu 24.04.4 LTS

Steps to reproduce the behavior

Run /terminal-setup inside Copilot, running in WSL distro on Windows Terminal

Expected behavior

Windows terminal is setup to send correct key sequence for shift + enter.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text inputarea:platform-windowsWindows-specific: PowerShell, cmd, Git Bash, WSL, Windows Terminal

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions