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.