With the latest release, every terminal task launched stays in running state and fails to close automatically once finished

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

With the latest release, every terminal task launched by agent stays in running state and fails to close automatically once finished.

Steps to Reproduce

when agent create terminal task

Expected Behavior

task have finished,but termial is running

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 3.12.10 (user setup)
VS Code Extension API: 1.128.0
Commit: 24a12dbd9cabf48956ce5bb3dbd234e41385b3d0
Date: 2026-07-16T03:15:48.538Z
Layout: Agent Window
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Windows_NT x64 10.0.26200

For AI issues: add Request ID with privacy disabled

1b766df6-1db1-409c-9d28-563e7f6a1d2c

Does this stop you from using Cursor

No - Cursor works, but with this issue

This is something we’ve seen reported: agent terminals staying in the “Running” state (timer still ticking) after the command has actually finished. A recent update did include a fix for terminals not clearing after they finish, but from your report it looks like that didn’t fully resolve it on Windows, so I’ve reported your case for the team to take another look.

Two quick things to help me narrow it down:

  1. When this happens, does the agent keep working normally and it’s only the “N Terminals Running” indicator that stays up, or does it actually leave the agent waiting/blocked?
  2. If you run “Developer: Reload Window” (Ctrl+Shift+P → type “Reload Window”), do the stale entries clear?

It shouldn’t stop Cursor from working in the meantime, but I know the ticking timers are misleading. Let me know and I’ll keep this thread updated.

question 1: agent work normally,and succeded,just left the terminal task running still,otherwise I close them by hand