Cursor failing to execute long commands still

Describe the Bug

Bug as exactly described here, but it is closed now so I can’t add to it.

Steps to Reproduce

See Cursor failing to execute long commands

Expected Behavior

Commands should run.

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.0.0 (user setup)
VSCode Version: 1.96.2
Commit: 53b99ce608cba35127ae3a050c1738a959750860
Date: 2025-06-04T19:44:25.253Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.22631

Additional Information

Having to run non trivial commands manually and then pasting in the responses makes Cursor hard to use.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

1 Like

Having the same issue.

Claude code at $20 is my main workaround for now, in plain vscode. Not being able to run console commands reliably if over a trivial length is not really viable, especially since this issue has been around since April.

My current workaround in Cursor is to put this in my .bashrc at the very top of the file:

tok() {
  TOK=1 source ~/.bashrc
}

if [[ -z "$TOK" ]] && ( [[ "$TERM_PROGRAM" == "vscode" ]] || [[ "$TERM_PROGRAM" == "cursor" ]] ); then
  return
fi

What this does is avoids any shell configuration if run by vscode as the agent (as cursor identifies itself when running the shell). The quick tok command alias (meaning ‘terminal ok’ but shorter to type) then just lets me set up the profile with a shortcut myself, for my own terminal use.

So far this is working ok for me.