Hey, thanks for the report. This is a known issue with terminal command timeouts in Agent mode.
The system timeout is currently around 10 minutes for foreground commands, and when npm test runs longer than that, Cursor cuts the connection with a “user aborted” error. The team is working on improving timeout handling, but there isn’t a complete fix yet.
Similar issues are discussed here:
- Agent was interrupted after working in the console for a long time
- Timeout setting on terminal/shell Agent tool
Can you add the Request ID from your screenshot and these details:
- Cursor version (Menu > About Cursor > Copy)
- About how long
npm testruns before it gets cut off - How often it happens
That’ll help the team track progress on the fix.