Interface Freezing Issue in Agent Mode

Bug Report: Interface Freezing Issue in Agent Mode

Description

I am experiencing a persistent issue with the Cursor interface while using the Agent mode. The interface frequently freezes for several seconds at a time. During these freezes, the interface becomes completely unresponsive, preventing any interaction.

Steps to Reproduce

  1. Open Cursor and switch to Agent mode an do some action.
  2. Perform any action (e.g., navigating through menus, editing code).
  3. Observe the interface freezing intermittently.

System Information

  • Cursor Version: 1.0.0
  • VSCode Version: 1.96.2
  • Commit: 53b99ce608cba35127ae3a050c1738a959750860
  • Date: 2025-06-04T19:26:40.367Z
  • Electron: 34.5.1
  • Chromium: 132.0.6834.210
  • Node.js: 20.19.0
  • V8: 13.2.152.41-electron.0
  • OS: Linux x64 6.8.0-60-lowlatency

Additional Information

  • This issue significantly hinders my ability to use Cursor effectively in Agent mode.
  • I have checked the forum to ensure this issue hasn’t been reported already.

Open process monitor and see if you experience massive disk writes when Cursor freezes. I’ve experienced the same issue as it turns out the state.vscdb was being updated at that time and completely crippling my PC. If that is the case, try the script below and add it to your autostart.

#!/bin/bash

Source and destination paths

BACKUP_DIR=“$HOME/.config/Cursor/User/globalStorage”
SOURCE_FILE=“${BACKUP_DIR}state.vscdb”
TEMP_DIR=“/tmp/cursor_state”
TEMP_FILE=“$TEMP_DIR/state.vscdb”
BACKUP_FILE=“$BACKUP_DIR/state.vscdb_backup”

Function to create backup

create_backup() {
# Create backup directory if it doesn’t exist
mkdir -p “$BACKUP_DIR”

# Create backup with timestamp
backup_file="$BACKUP_DIR/state.vscdb_backup"

# Copy the temp file to backup location
cp "$TEMP_FILE" "$backup_file"
echo "Backup created: $backup_file"

}

Create temp directory if it doesn’t exist

mkdir -p “$TEMP_DIR”

Check if backup exists and use it, otherwise use original file

if [ -f “$BACKUP_FILE” ]; then
echo “Using existing backup file”
cp “$BACKUP_FILE” “$TEMP_FILE”
else
# Check if source file exists
if [ ! -f “$SOURCE_FILE” ]; then
echo “Error: Neither backup nor source file exists”
exit 1
fi
echo “Using original source file”
cp “$SOURCE_FILE” “$TEMP_FILE”
fi

Remove existing symlink if it exists

if [ -L “$SOURCE_FILE” ]; then
rm “$SOURCE_FILE”
fi

Create symlink

ln -s “$TEMP_FILE” “$SOURCE_FILE”

echo “Cursor state file has been moved to $TEMP_FILE and symlinked”

Start backup loop in background

while true; do
create_backup
sleep 600 # Sleep for 10 minutes
done &