Agent fails to run terminal commands in Git Bash

Req ID: 0ef9bdb2-2ed3-4899-a835-360ef1af2bb4

Sometimes the command is prefixed with [200~ and it causes the command to fail.

Version: 0.50.5 (user setup)
VSCode Version: 1.96.2
Commit: 96e5b01ca25f8fbd4c4c10bc69b15f6228c80770
Date: 2025-05-18T04:26:31.444Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

1 Like

I see you have a “fancy prompt”. bash? If so, try this in .bashrc if you want:

function set_bash_prompt() {
  # Fetch venv name and set, just in case
  if [[ -n "$VIRTUAL_ENV" ]]; then
    venv_name=$(basename "$VIRTUAL_ENV")
    venv_prefix="(${venv_name}) "
  else
    venv_prefix=""
  fi

  # Build prompt
  PS1="${venv_prefix}\u@\h:\w\$ "
}

PROMPT_COMMAND=set_bash_prompt

For me it seems to be helping A LOT with Cursor’s ability to run commands and interpret output etc.