Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Pseudoterminals are not closed when an agent is archived. This causes Cursor to allocate very many terminals, eventually it hits the macOS maximum open terminals limit (512). When this happens, macOS refuses to open more terminals and Cursor crashes
Steps to Reproduce
- start an agent, have it run some commands in a shell
- archive it
- list open ptys
e.g.
❯ sudo lsof /dev/ptmx | sed 1d | awk '{print $1}' | uniq -c
Password:
303 Cursor
2 ghostty
Expected Behavior
Cursor needs to manage open PTYs in order to avoid exhausting OS resources
Operating System
MacOS
Version Information
Version: 3.5.33
VSCode Version: 1.105.1
Commit: aac81804b986d739acab348ed96b8bea6e83cc50
Date: 2026-05-22T06:47:48.039Z
Layout: glass
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 24.6.0
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor