Cursor Terminal doesn't execute command, it just waits

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Cursor Terminal can’t execute commands

Steps to Reproduce

I guess this is only on my machine

Expected Behavior

The terminal command doesn’t execute, it just has some Linking Flags failure.

$ cd /Volumes/Developer/veritas/backend && go test ./internal/clustering/... ./internal/translation/... -count=1 -short 2>&1 | tail -40
--: line 19: warning: setlocale: LC_CTYPE: cannot change locale (): Bad file descriptor

Operating System

MacOS

Version Information

Version: 3.1.17 (Universal)
VSCode Version: 1.105.1
Commit: fce1e9ab7844f9ea35793da01e634aa7e50bce90
Date: 2026-04-19T19:33:58.189Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.4.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Thanks for reporting this.
Could you try these steps?

1. Check whether the command works outside Cursor. Open macOS Terminal or iTerm and run the same command there. If it works outside Cursor but hangs inside Cursor, that points toward a Cursor terminal issue.

2. Disable terminal shell integration directly in settings JSON. In Cursor:

- Open Command Palette (Cmd+Shift+P)

- Run `Preferences: Open User Settings`

Then restart Cursor, open a fresh terminal, and try the command again.

3. Check locale values inside Cursor’s terminal. In a new Cursor terminal, please run:

locale

env | grep -E '^(LANG|LC_)'

The warning mentions `LC_CTYPE`, so this will help confirm whether Cursor is launching the terminal with a broken or empty locale environment.

4. Try a temporary locale workaround. In the Cursor terminal, run:

export LANG=en_US.UTF-8

export LC_CTYPE=en_US.UTF-8

Then try your Go command again.

5. Try a clean zsh session inside Cursor

zsh -f

echo hello

Then try a simpler command first, and if that works, try the Go command again.

Lmk how this goes!

echo hello works on Cursor Terminal. But when I start running it in agent mode, it just return this error and the command never ends.

I now have 6 terminals running in background: