Latest v2.2.20 Significant Delay (~27 seconds) Between Sequential Agent Mode Terminal Executions

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

In Agent Mode, when the AI executes sequential terminal commands, there is a ~27 second delay between the completion of one command and the execution of the next command. This delay occurs regardless of command complexity - even trivially simple commands that execute in ~10 milliseconds experience this overhead.

Steps to Reproduce

  1. Create a simple test file:

    @"
    Line 1: Test content
    Line 2: Test content
    Line 3: Test content
    Line 4: Test content
    Line 5: Test content
    "@ | Set-Content "test_timing.txt"
    
  2. Open Cursor IDE and start Agent Mode (Ctrl+I or Cmd+I)

  3. Ask the agent to run this command with timestamps:

    Run this command: Write-Host "START: $(Get-Date -Format 'HH:mm:ss.fff')"; Get-Content "test_timing.txt" | Select-Object -First 5; Write-Host "END: $(Get-Date -Format 'HH:mm:ss.fff')"
    
  4. Immediately after completion, ask the agent to run the same command again (repeat 4 more times for a total of 5 executions)

  5. Record the timestamps from each execution and calculate the gaps between END of one run and START of the next

  6. Observe: Each transition takes ~26-30 seconds despite the command itself executing in ~10ms

Expected Behavior

  • Sequential terminal commands should execute with minimal overhead between calls
  • For simple, non-blocking commands, the gap between executions should be < 5 seconds
  • The agent should be able to chain rapid terminal operations efficiently
  • Terminal-heavy workflows (build scripts, file operations, git commands) should not be bottlenecked by agent orchestration
  • Ideal: Near-instant transitions (~1-2 seconds) for trivial commands where no complex reasoning is required between executions

Operating System

Windows 10/11
MacOS
Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.20 (user setup)
VSCode Version: 1.105.1
Commit: b3573281c4775bfc6bba466bf6563d3d498d1070
Date: 2025-12-12T06:29:26.017Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200

For AI issues: which model did you use?

Claude 4.5 Opus High Max Mode

Additional Information

Bug Report: Significant Delay (~27 seconds) Between Sequential Agent Mode Terminal Executions

Describe the Bug

In Agent Mode, when the AI executes sequential terminal commands, there is a ~27 second delay between the completion of one command and the execution of the next command. This delay occurs regardless of command complexity - even trivially simple commands that execute in ~10 milliseconds experience this overhead.

The bottleneck is not the terminal or shell - commands execute in milliseconds. The delay is entirely in the Cursor/Agent orchestration layer between tool calls.

Measured impact: 5 simple Get-Content commands that took a combined 52 milliseconds of actual execution time required ~2 minutes of total elapsed time due to the ~27 second gap between each agentic call. This represents a 99.95% efficiency loss for sequential terminal workflows.

Environment

Component Version/Details
Cursor Version 2.2.20 (build b3573281c4775bfc6bba466bf6563d3d498d1070, x64)
OS Windows 10 (win32 10.0.26200)
Shell PowerShell 7 (C:\Program Files\PowerShell\7\pwsh.exe)
AI Model Claude (Agent Mode)

Summary

When running sequential terminal commands in Agent Mode, there is a consistent ~27 second delay between the completion of one command and the start of the next, even for trivially simple commands that execute in milliseconds.

Steps to Reproduce

  1. Create a simple test file:

    @"
    Line 1: Test content
    Line 2: Test content
    Line 3: Test content
    Line 4: Test content
    Line 5: Test content
    "@ | Set-Content "test_timing.txt"
    
  2. Open Cursor IDE and start Agent Mode (Ctrl+I or Cmd+I)

  3. Ask the agent to run this command with timestamps:

    Run this command: Write-Host "START: $(Get-Date -Format 'HH:mm:ss.fff')"; Get-Content "test_timing.txt" | Select-Object -First 5; Write-Host "END: $(Get-Date -Format 'HH:mm:ss.fff')"
    
  4. Immediately after completion, ask the agent to run the same command again (repeat 4 more times for a total of 5 executions)

  5. Record the timestamps from each execution and calculate the gaps between END of one run and START of the next

  6. Observe: Each transition takes ~26-30 seconds despite the command itself executing in ~10ms

Expected Behavior

  • Sequential terminal commands should execute with minimal overhead between calls
  • For simple, non-blocking commands, the gap between executions should be < 5 seconds
  • The agent should be able to chain rapid terminal operations efficiently
  • Terminal-heavy workflows (build scripts, file operations, git commands) should not be bottlenecked by agent orchestration
  • Ideal: Near-instant transitions (~1-2 seconds) for trivial commands where no complex reasoning is required between executions

Actual Behavior

Each transition between terminal commands takes 26-30 seconds regardless of command complexity.

Measured Data (Fact-Based)

Test Setup

  • Simple text file with 21 lines
  • Command: Get-Content "file.txt" | Select-Object -First 20
  • 5 sequential executions

Raw Timestamps

Run START END Execution Time
1 16:37:54.501 16:37:54.516 15 ms
2 16:38:24.190 16:38:24.199 9 ms
3 16:38:51.600 16:38:51.610 10 ms
4 16:39:17.904 16:39:17.913 9 ms
5 16:39:44.428 16:39:44.437 9 ms

Agent Overhead Between Calls

Transition Gap (seconds)
Run 1 → Run 2 29.674 s
Run 2 → Run 3 27.401 s
Run 3 → Run 4 26.294 s
Run 4 → Run 5 26.515 s

Summary Statistics

Metric Value
Average Command Execution ~10.4 ms
Average Agent Overhead ~27.5 seconds
Min Agent Overhead 26.294 s
Max Agent Overhead 29.674 s
Total Test Duration ~1 min 50 sec
Actual Work Time ~52 ms

Impact

  • 5 trivial commands that took 52 milliseconds of actual execution required ~2 minutes of total time
  • Efficiency loss: 99.95% of time spent waiting for agent transitions
  • Makes iterative terminal-based workflows extremely slow
  • Significantly impacts developer productivity for tasks requiring multiple sequential commands

Reproduction Script

# Create test file
@"
Line 1: Test content
Line 2: Test content
Line 3: Test content
Line 4: Test content
Line 5: Test content
"@ | Set-Content "test_timing.txt"

# Command to run (with timestamps)
Write-Host "START: $(Get-Date -Format 'HH:mm:ss.fff')"; Get-Content "test_timing.txt" | Select-Object -First 5; Write-Host "END: $(Get-Date -Format 'HH:mm:ss.fff')"

Ask the agent to run the above command 5 times sequentially and record timestamps.

Potential Causes (Speculation)

  1. Round-trip to AI API - Each command result may require full API round-trip
  2. Token processing overhead - Terminal output being tokenized and processed
  3. No command batching - Sequential commands not being optimized
  4. Safety/confirmation delays - Built-in delays for user review (even when not needed)

Suggested Improvements

  1. Command Batching - Allow agents to queue multiple independent commands
  2. Streaming Execution - Start next command while previous result is being processed
  3. Fast-Path for Simple Commands - Reduce overhead for trivially simple operations
  4. Parallel Tool Calls for Terminal - If commands are independent, execute in parallel

Workaround

Currently, the only workaround is to chain multiple commands into a single terminal call:

# Instead of 5 separate calls, use one call with loop
1..5 | ForEach-Object { 
    Write-Host "Run $_: $(Get-Date -Format 'HH:mm:ss.fff')"
    Get-Content "file.txt" | Select-Object -First 20
}

However, this defeats the purpose of agentic workflows where the AI needs to observe each result before deciding the next action.

Additional Context

  • This delay is consistent across different command types
  • Delay appears similar for both simple and complex commands
  • The shell itself responds instantly (as shown by ~10ms execution times)
  • The overhead is entirely in the Cursor/Agent orchestration layer

Severity: Medium-High (significant productivity impact for terminal-heavy workflows)
Category: Performance / Agent Mode
Reproducibility: 100% reproducible

Does this stop you from using Cursor

Yes - Cursor is unusable

1 Like

# Cursor Agent Terminal Delay - Test Results

**Date:** 2025-12-14

**Cursor Version:** 2.1.50 (user setup)

**VSCode Version:** 1.105.1

**Commit:** 56f0a83df8e9eb48585fcc4858a9440db4cc7770

**Build Date:** 2025-12-06T23:39:52.834Z

**Electron:** 37.7.0

**OS:** Windows 10 (win32 10.0.26200)

**Shell:** PowerShell 7 (C:\Program Files\PowerShell\7\pwsh.exe)

**AI Model:** Claude Sonnet 4 (Agent Mode)

-–

## Test Summary

Sequential execution of 5 identical terminal commands to measure agent orchestration overhead between tool calls.

-–

## Raw Timestamps

| Run | START | END | Execution Time |

|-----|-------|-----|----------------|

| 1 | 20:40:05.571 | 20:40:05.577 | **6 ms** |

| 2 | 20:40:10.263 | 20:40:10.264 | **1 ms** |

| 3 | 20:40:28.484 | 20:40:28.486 | **2 ms** |

| 4 | 20:40:32.965 | 20:40:32.967 | **2 ms** |

| 5 | 20:40:37.149 | 20:40:37.152 | **3 ms** |

-–

## Agent Overhead Between Calls

| Transition | Gap (seconds) | Notes |

|------------|---------------|-------|

| Run 1 → Run 2 | **4.686 s** | Fast |

| Run 2 → Run 3 | **18.220 s** | Outlier - slow |

| Run 3 → Run 4 | **4.479 s** | Fast |

| Run 4 → Run 5 | **4.182 s** | Fast |

-–

## Summary Statistics

| Metric | Value |

|--------|-------|

| Average Command Execution | ~2.8 ms |

| Average Agent Overhead | **~7.9 seconds** |

| Min Agent Overhead | 4.182 s |

| Max Agent Overhead | 18.220 s |

| Total Test Duration | ~31.6 seconds |

| Actual Work Time | ~14 ms |

| Efficiency Loss | 99.96% |

-–

## Comparison: Version 2.2.20 vs 2.1.50

> :warning: **REGRESSION CONFIRMED:** Version 2.2.20 has significantly worse terminal delay than 2.1.50.

> User downgraded from 2.2.20 to 2.1.50 due to severity of the issue.

| Metric | v2.2.20 (Bug Report) | v2.1.50 (This Test) | Regression |

|--------|----------------------|---------------------|------------|

| Avg Agent Overhead | **~27.5 s** | ~7.9 s | **+248%** :cross_mark: |

| Max Overhead | **29.674 s** | 18.220 s | **+63%** :cross_mark: |

| Min Overhead | **26.294 s** | 4.182 s | **+529%** :cross_mark: |

| Total Test Time | **~110 s** | ~31.6 s | **+248%** :cross_mark: |

-–

## Analysis

### Version 2.2.20 Regression

**The bug report documents a severe regression in Cursor 2.2.20:**

1. **Average overhead increased 3.5x** (7.9s → 27.5s)

2. **Minimum overhead increased 6x** (4.2s → 26.3s)

3. **Regression so severe user had to downgrade**

### Version 2.1.50 Observations

1. **High Variance**: Transitions ranged from 4.2s to 18.2s (4x difference)

2. **Not Optimal**: Even 4-8 seconds is substantial for millisecond commands

3. **Unpredictable**: Cannot rely on consistent performance

4. **One Outlier**: Run 2→3 took 18.2s while others were ~4s

### Possible Causes for 2.2.20 Regression

- New orchestration layer changes

- Additional safety/confirmation delays

- Changed API batching behavior

- New token processing overhead

-–

## Conclusion

**Version 2.2.20 has a critical performance regression in terminal command overhead.**

- **2.1.50**: ~7.9s average overhead (usable, but not ideal)

- **2.2.20**: ~27.5s average overhead (unusable - forced downgrade)

**Recommendation:** Do NOT upgrade to 2.2.20 until this regression is fixed.

-–

## Test Environment

```

Component | Value

-------------------|---------------------------------------

Cursor Version | 2.1.50 (downgraded from 2.2.20)

VSCode Version | 1.105.1

Build | 56f0a83df8e9eb48585fcc4858a9440db4cc7770

Build Date | 2025-12-06T23:39:52.834Z

Electron | 37.7.0

Platform | x64

OS | Windows 10 (10.0.26200)

Shell | PowerShell 7

AI Model | Claude Sonnet 4

Test Date | 2025-12-14 20:40 UTC

```

-–

**Report Generated:** 2025-12-14

**Test Performed By:** AI Agent (Claude Sonnet 4)

Hey, thanks for the report. It looks like a regression. The increase in delay from ~7.9s to ~27.5s between terminal commands is a critical performance issue.

I’ll pass this to the team as a bug. Your timing data and version comparison will be very helpful for the investigation.

If possible, please share the Request ID from an Agent Mode session in version 2.2.20 (chat’s top-right context menu > Copy Request ID). This will speed up diagnostics on the engineering side.

Until the issue is fixed, please stay on version 2.1.50.

1 Like

presently 2.2 is useless to me, period. unusable.

i did not capture any request ID’s. However, i can capture running the test again. Note this is consistent for all windows users at my organization, thus its not unique to me, its consistent across the board for windows users.

1 Like

the request IDs are usually under the chat and you can copy them with one click

so long you didnt delete the chat

1 Like

Cursor Team, you know that your IDE does not allow to disable Auto Update, so that I can stay on properly stable version. Well right now every time I revert to 2.1 it magically auto updates to 2.2. This requires me to take some drastic approach and delete your auto updater and put bogus folder in its place with readonly flag to force it to basically never update. While i get expected popup when launching Cursor its harmless. However, common sense says you need to add features to allow users to STAY on the Stable version where they can get work done, unlike this auto update forcing users to use Unstable version for windows users.

Context: Due to the performance regression in v2.2.20 1, users need to stay on v2.1.50. However, Cursor has no setting to disable auto-updates.

Current Workaround:

Users are forced to:

  1. Delete inno_updater.exe from %LOCALAPPDATA%\Programs\cursor\tools\

  2. Create an empty folder named inno_updater.exe in its place

  3. Set the folder to read-only

This prevents the auto-updater from running, but triggers an error dialog on every Cursor launch that users must dismiss.

Why This Is a Problem:

  1. No official way to stay on stable versions - When a regression is introduced, users cannot protect themselves

  2. Forced to use filesystem hacks - Deleting executables and creating decoy folders is not a supported workflow

  3. Error dialog on every launch - The workaround causes a “MoveFile failed; code 183” error that must be manually dismissed

  4. Enterprise impact - Organizations cannot standardize on known-stable versions across teams

Request:

Please add a setting to disable auto-updates, such as:

  • Settings → Application → “Automatically check for updates” (toggle)

  • Or a --no-update CLI flag

  • Or respect a CURSOR_DISABLE_UPDATES=1 environment variable

This is standard functionality in most development tools (VS Code has it, JetBrains IDEs have it, etc.).

Until then, users who depend on stable terminal performance are stuck using filesystem hacks to prevent forced updates to broken versions.

Hey, thanks for the detailed report and measurements. That really helps the team.

To speed up debugging, please share the Request ID from any Agent Mode session on version 2.2.20 (chat menu in the top-right → Copy Request ID).

Also, please check your extensions:

  1. Settings > Application > Experimental > Extension Monitor Enabled
  2. CMD/CTRL+Shift+P > Developer: Open Extension Monitor
  3. Check if any extensions show high load

About disabling auto-updates, there’s a setting:

  • Settings > Application > Update: None

This will let you stay on version 2.1.50 until a fix is available.

1 Like

Thanks, found the location to turn off auto updates. I think the confusion with instruction is that its VS Code Settings → Application → Update: None
Also disable auto download.

2.3 still has the performance issue:

Same Issue with 2.3.34

When I click “Open in external Terminal,” I notice that the command has already finished executing, but the information in the Agent is scrolling line by line slowly.

I have upgraded to 2.3 version and with legacy terminal tool mode ON it executes faster