You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: upgrade node-pty to 1.2.0-beta.11 to fix macOS PTY leak
node-pty v1.1.0 has an off-by-one bug in pty_posix_spawn() on macOS
where low_fds[0] (allocated via posix_openpt()) is never closed due
to a buggy cleanup loop (`count > 0` vs the correct `i <= count`).
This leaks 1 PTY master fd per pty.spawn() call, eventually exhausting
all 511 PTY pairs on macOS (kern.tty.ptmx_max).
Upstream fix: microsoft/node-pty#882 (merged 2026-01-28).
Also fixes the abort handler to kill the entire process group (-pid)
with SIGTERM instead of sending SIGHUP to just the launcher PID,
ensuring the Claude binary grandchild is also terminated.
0 commit comments