Hey, this is a known HTTP/2 issue in the CLI. The NGHTTP2_ENHANCE_YOUR_CALM error points to exactly that.
Workaround is to switch the CLI to HTTP/1. From your post, it looks like you already tried useHttp1ForAgent: true, but you said it “goes in a loop generating”. Can you clarify what exactly happens?
- Does the CLI keep showing retry errors over and over, like with HTTP/2?
- Or does it say it is “generating” but the response never comes back?
- Or something else?
Also please check a couple of things:
-
Make sure the config is in the right file,
.cursor/cli_config.jsonin your home directory (C:\Users\offic\.cursor\cli_config.json):{ "network": { "useHttp1ForAgent": true } } -
Restart the CLI after changing the config.
-
Try running
agent --debugwith HTTP/1 and share the log. We can check if the error changes.
Another user with the same issue fixed it this way: Cursor Agent can't connect backend - #3 by MJ_Kim
If HTTP/1 still does not help, please share the debug log for that case too, and confirm if you are using a VPN, proxy, or antivirus.