CLI intermittently fails due to SSL error

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

The CLI does not work reliably and fails intermittently with an SSL-related error. The issue occurs sporadically without any configuration changes on the client side. Retrying the same command at a later time sometimes succeeds.

Steps to Reproduce

1 - run cli agent (cursor-agent)
2 - type any prompt

Expected Behavior

prompt processed and answered

Operating System

MacOS

Version Information

CLI Version: 2026.01.23-916f423
Model: GPT-5.2
OS: darwin (arm64)
Terminal: iterm2
Shell: zsh
Last Request ID: 05cd3fad-c3d1-4afb-b9cc-987474d070fc

For AI issues: which model did you use?

any

Additional Information

Error: [internal] 40AC61F401000000:error:0A000410:SSL routines:ssl3_read_bytes:ssl/tls alert handshake
failure:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:916:SSL alert number 40

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey @minosh

This looks an awfully lot like [Known Issue] HTTP/2 Connection Failures with SSLV3_ALERT_HANDSHAKE_FAILURE, but this is the first time I’ve seen it affecting the CLI.

Can you try configuring the CLI to use network.useHttp1ForAgent=true and let me know if that helps?