On Windows 11, using WSL in agent mode, every time a command is executed, an extra "q" character appears automatically after the command ends. What is causing this issue?

Describe the Bug

On Windows 11, using WSL in agent mode, every time a command is executed, an extra “q” character appears automatically after the command ends. What is causing this issue?

Steps to Reproduce

I asked it to compile the Vue project for me.

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

版本: 1.2.4 (user setup)
提交: 1.99.3
日期: a8e95743c5268be73767c46944a71f4465d05c90
Electron: 2025-07-10T17:09:01.383Z
ElectronBuildId: 34.5.1
Chromium: undefined
Node.js: 132.0.6834.210
V8: 20.19.0
OS: 13.2.152.41-electron.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Relentless ongoing issue with Zsh. It was briefly fixed, but it came back and ruins the agent experience.

There are some workarounds regarding the agent using a different terminal, however the only solution that consistently works is to move away from Zsh to Bash or Git Bash.

Incredibly frustrating that we’re forced to work in a way we don’t want because of an unfixed bug, that’s been reported 100s of times.

1 Like

every time i skip a command it sends q^D which is:

  1. q - quit vim like environments
  2. ctrl+D - quit the terminal