I had the same error on MacOS ARM versions 0.43.0 and on, and just today miraculously discovered something that worked for me.[1] Simply locate the file ptyHostMain.js
in the application bundle and add the following line to the top:
process.on('SIGTERM', () => {});
For me, this was: /Applications/Cursor.app/Contents/Resources/app/out/vs/platform/terminal/node/ptyHostMain.js
. In my case, analyzing Cursor’s logs revealed that the ptyHost
process kept getting killed with code 15 (SIGTERM
).
Suggested by 4o after hours of fruitless debugging with o3! ↩︎