How to fix Cursor agent mode terminal stuck
Quite often, AI assistant code editors get stuck in terminal while executing something like "git log". Thats because git by default uses unix utilities like less, vi and others that require user input to complete execution. Moreover, sometimes I can't to provide any input to command that agent mode runs at all. Ideally, you should reconfigure all utilities that git uses by default, but here is one-line sample command that fixed 90% of such cases for me:
git config --global core.pager "cat"
`