Cursor agent mode - when running terminal commands often hangs up the terminal, requiring a click to pop it out in order to continue commands

Having the same issue, it is extremely annoying: [BUG] Terminal tool gets stuck after exit code