High CPU usage (100%) from Bash processes after Agent triggers Cursor Terminal

When agent triggers a terminal in Cursor IDE, multiple bash processes are launched that consume 100% CPU. This makes the system unresponsive and prevents running new commands. The issue happens consistently with every new terminal window.

Environment

  • OS: macOS 24.3.0

  • Cursor IDE version: [your version]

  • Server: SSH remote connection to Linux server

Observed Behavior

  • Every time a terminal is opened in Cursor, a bash process starts consuming 100% CPU

  • Multiple bash processes stack up, each using 100% CPU

  • Running ps aux | grep bash | sort -k3 -r shows numerous bash processes with the -l flag using ~99% CPU

  • The processes appear as: /usr/bin/bash -l

  • Killing the processes temporarily resolves the issue, but new high-CPU bash processes appear when opening another terminal

Technical Details

  • The issue seems related to Cursor’s shell integration scripts

  • One of the processes using Cursor shell integration appears as:

/bin/bash --init-file /root/.cursor-server/cli/servers/…/shellIntegration-bash.sh

  • The issue does not occur when using terminals outside Cursor IDE

Attempted Solutions

  • Killing the high-CPU processes (kill -9 [PID]) works temporarily

  • The issue returns when opening new terminal windows

Impact

  • System becomes extremely sluggish

  • Unable to run commands due to CPU saturation

  • Requires killing processes to restore usability

Anyone facing this issue, I would be grateful if someone can provide a quick fix for this

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.