Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
when i send a prompt, even a simple hello, if “network”: {
“useHttp1ForAgent”: false
}, tell me connection lost, trying to reconnect, while if it’s true it goes in loop generating, i have trying switching from home network to smartphone network but nothing changed, agent --print works for example
Steps to Reproduce
Open cursor cli and write everything
Expected Behavior
run code
Operating System
Windows 10/11
Version Information
Version: 2.5.20 (user setup)
VSCode Version: 1.105.1
Commit: 511523af765daeb1fa69500ab0df5b6524424610
Date: 2026-02-19T20:41:31.942Z
Build Type: Stable
Release Track: Default
Electron: 39.4.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200
For AI issues: which model did you use?
Auto
Additional Information
from agent --debug
2026-03-05T12:08:57.320
otel.error {“stack”:“OTLPExporterError: Bad Request\n at IncomingMessage. (C:\Users\offic\AppData\Local\cursor-agent\versions\2026.02.27-e7d2ef6\240.index.js:2:314964)\n at IncomingMessage.emit (node:events:519:35)\n at IncomingMessage.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)”,“message”:“Bad Request”,“code”:“400”,“name”:“OTLPExporterError”,“data”:“{"error":"Trace spans collection is disabled for NO_STORAGE privacy mode"}”}
2026-03-05T12:09:10.452
logger {“message”:“[nal_agent_retries] Retrying attempt 4”,“metadata”:{“attempt”:4,“actionCase”:“userMessageAction”}}
2026-03-05T12:09:10.585
logger {“message”:“[NAL client stall detector] Stream activity resumed after stall”,“metadata”:{“reqId”:“e2ab4278-c041-41f6-aaee-bd5babe23183”,“stall”:{“duration_ms”:132,“model_name”:“Claude 4.5 Opus (Thinking)”,“disposed_ago_ms”:0,“last_outbound_message_type”:“runRequest”,“activities”:“[disposed] (MOST RECENT)\ndisposed\n[outbound_write]\nrunRequest”}}}
2026-03-05T12:09:10.586
logger {“message”:“[AGENT_ERROR_DIAGNOSTICS] requestId=e2ab4278-c041-41f6-aaee-bd5babe23183 decision=RETRY (countAsServerError=false, countAsTransportError=true)”,“metadata”:{“decision”:“RETRY (countAsServerError=false, countAsTransportError=true)”,“willRetry”:true,“enableAgentRetries”:true,“endlessRetries”:false,“isRunningInTest”:false,“stallAborted”:false,“serverErrorRetries”:0,“transportErrorRetries”:4,“attempt”:4}}
2026-03-05T12:09:10.586
logger {“message”:“Stream ended without turnEnded — connection likely dropped mid-stream (retry disabled by gate)”}
2026-03-05T12:09:10.586
unhandledRejection: [internal] Stream closed with error code NGHTTP2_ENHANCE_YOUR_CALM {“stack”:“ConnectError: [internal] Stream closed with error code NGHTTP2_ENHANCE_YOUR_CALM\n at i.from (C:\Users\offic\AppData\Local\cursor-agent\versions\2026.02.27-e7d2ef6\index.js:2:72466)\n at d (C:\Users\offic\AppData\Local\cursor-agent\versions\2026.02.27-e7d2ef6\index.js:2:45918)\n at Promise.reject (C:\Users\offic\AppData\Local\cursor-agent\versions\2026.02.27-e7d2ef6\index.js:2:57830)\n at ClientHttp2Stream. (C:\Users\offic\AppData\Local\cursor-agent\versions\2026.02.27-e7d2ef6\index.js:2:55364)\n at ClientHttp2Stream.emit (node:events:507:28)\n at ClientHttp2Stream.emit (node:domain:489:12)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)”,“error”:{“name”:“ConnectError”,“rawMessage”:“Stream closed with error code NGHTTP2_ENHANCE_YOUR_CALM”,“code”:13,“metadata”:{},“details”:,“cause”:{“code”:“ERR_HTTP2_STREAM_ERROR”}}}
Does this stop you from using Cursor
Yes - Cursor is unusable