Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
Hello,
I’m having this weird bug where in the CLI I cannot use any of the Claude or OpenAI models. However, other models such as Gemini or Composer are working.
This has been persisted for weeks and since Cursor IDE still work with respective providers, I would rule out the that the model providers are failing.
Any help would be greatly appreciated!
Dedacted Log from the debug:
— Cursor Agent Debug Session 2026-03-13T07:40:09.846Z —
2026-03-13T07:40:09.848
debug-session-start
{
“event”: “debug-session-start”,
“port”: 43111,
“basePort”: 43111,
“attempts”: 1,
“ephemeralFallback”: false,
“directory”: “/var/folders/[redacted]/T/cursor-agent-debug-[redacted]”,
“logFile”: “/var/folders/[redacted]/T/cursor-agent-debug-[redacted]/session.log”,
“pid”: 88656,
“startTime”: “2026-03-13T07:40:09.848Z”
}
2026-03-13T07:40:10.260
console.backend {“level”:“warn”,“message”:“[hooks] Claude Code event "Notification" is not supported in Cursor and will be ignored”,“contextPath”:[“console”],“metadata”:{“source”:“console.warn”}}
2026-03-13T07:40:10.260
console.backend {“level”:“warn”,“message”:“[hooks] Claude Code event "PermissionRequest" is not supported in Cursor and will be ignored”,“contextPath”:[“console”],“metadata”:{“source”:“console.warn”}}
2026-03-13T07:40:10.260
console.backend {“level”:“warn”,“message”:“[hooks] Unknown Claude Code event "SubagentStart", skipping”,“contextPath”:[“console”],“metadata”:{“source”:“console.warn”}}
2026-03-13T07:40:10.260
console.backend {“level”:“warn”,“message”:“[hooks] Unknown Claude Code event "PostToolUseFailure", skipping”,“contextPath”:[“console”],“metadata”:{“source”:“console.warn”}}
2026-03-13T07:40:10.264
askpass.server.started {“socketPath”:“/tmp/cursor-askpass-[redacted].sock”,“helperPath”:“/Users/[username]/.local/share/cursor-agent/versions/2026.03.11-[redacted]/cursor-askpass”}
2026-03-13T07:40:10.299
logger.default {“level”:“info”,“message”:“[isSandboxHelperSupported] Starting sandbox support check…”,“contextPath”:}
2026-03-13T07:40:10.300
logger.default {“level”:“info”,“message”:“[checkBinaryAvailable] Resolved binary path: /Users/[username]/.local/share/cursor-agent/versions/2026.03.11-[redacted]/cursorsandbox”,“contextPath”:}
2026-03-13T07:40:10.300
logger.default {“level”:“info”,“message”:“[checkBinaryAvailable] Binary path exists: true”,“contextPath”:}
2026-03-13T07:40:10.300
logger.default {“level”:“info”,“message”:“[isSandboxHelperSupported] darwin platform, binary available, sandbox supported!”,“contextPath”:}
2026-03-13T07:40:10.637
statsig.refresh.success {“clientInitialized”:true}
2026-03-13T07:40:10.765
No .git directory found starting from: /Users/[username]/code
2026-03-13T07:40:10.800
stderr.intercepted {“text”:“\u001b[?25l”}
2026-03-13T07:40:10.805
conversationClassification.init {“conversationId”:“9f7bab7b-3eb6-4d7f-bc89-672f879ce3c7”,“workspacePath”:“/Users/[username]/code”,“backendUrl”:“https://api2.cursor.sh”,“dbPath”:“/Users/[username]/.cursor/ai-tracking/ai-code-tracking.db”,“transcriptsDir”:“/Users/[username]/.cursor/projects/Users-[username]-code/agent-transcripts”,“insecure”:false}
2026-03-13T07:40:10.805
conversationClassification.meta.initial {“conversationId”:“9f7bab7b-3eb6-4d7f-bc89-672f879ce3c7”,“lastUpdatedAt”:1773387610805,“model”:“unknown”,“mode”:“default”}
2026-03-13T07:40:10.805
commitScoring.init {“workspacePath”:“/Users/[username]/code”,“backendUrl”:“https://api2.cursor.sh”,“dbPath”:“/Users/[username]/.cursor/ai-tracking/ai-code-tracking.db”,“insecure”:false}
2026-03-13T07:40:10.806
Loading existing conversation
2026-03-13T07:40:10.806
analytics.track {“eventName”:“cli.request.create”,“props”:{“length”:9,“model”:“gpt-5.4-medium”}}
2026-03-13T07:40:10.807
structured-log.info {“key”:“agent_cli”,“message”:“agent_cli.turn.start”,“metadata”:{“turn_type”:“new”,“bring_your_own_key”:“false”,“request_id”:“6af9887e-3cfb-4392-82af-83e0f23dff5b”,“trace_id”:“c88a3631f0dfd2266e26a8acbe767a41”,“span_id”:“fb70e16f2b6f24a3”}}
2026-03-13T07:40:10.841
startup.metrics {“total_ms”:2514,“bundle_load_ms”:266,“config_load_ms”:28,“statsig_ms”:1,“tracing_init_ms”:668,“analytics_init_ms”:1,“auth_ms”:28,“server_config_ms”:406,“hooks_config_ms”:4,“build_resources_ms”:36,“render_ms”:112,“has_compile_cache”:true}
2026-03-13T07:40:10.841
analytics.track {“eventName”:“cli.startup.tti”,“props”:{“total_ms”:2514,“bundle_load_ms”:266,“config_load_ms”:28,“statsig_ms”:1,“tracing_init_ms”:668,“analytics_init_ms”:1,“auth_ms”:28,“server_config_ms”:406,“hooks_config_ms”:4,“build_resources_ms”:36,“render_ms”:112,“has_compile_cache”:true,“is_headless”:false}}
2026-03-13T07:40:10.841
structured-log.info {“key”:“agent_cli”,“message”:“agent_cli.startup.tti”,“metadata”:{“total_ms”:“2514”,“bundle_load_ms”:“266”,“config_load_ms”:“28”,“statsig_ms”:“1”,“tracing_init_ms”:“668”,“analytics_init_ms”:“1”,“auth_ms”:“28”,“server_config_ms”:“406”,“hooks_config_ms”:“4”,“build_resources_ms”:“36”,“render_ms”:“112”,“has_compile_cache”:“true”,“is_headless”:“false”}}
2026-03-13T07:40:10.847
startup.otel.span.emitted {“total_ms”:2514,“phases_emitted”:10}
2026-03-13T07:40:11.387
User does not belong to a team, skipping team commands
2026-03-13T07:40:12.621
analytics.track {“eventName”:“cli.hook.executed”,“props”:{“platform”:“cli”,“hookStep”:“sessionStart”,“hookSource”:“claude-user”,“hookType”:“command”,“status”:“failed”,“latencyMs”:1710,“failClosed”:false,“exitCode”:0}}
2026-03-13T07:40:13.058
logger {“message”:“[nal_agent_retries] Initial request”,“metadata”:{“attempt”:0,“actionCase”:“userMessageAction”,“requestId”:“6af9887e-3cfb-4392-82af-83e0f23dff5b”}}
2026-03-13T07:40:13.191
structured-log.flush.success {“count”:2}
2026-03-13T07:40:14.088
otel.error hydrateSummaryArchives c88a3631f0dfd2266e26a8acbe767a41-914587b112f5f842 - You can only call end() on a span once.
2026-03-13T07:40:14.111
logger {“message”:“Stream ended without turnEnded — connection likely dropped mid-stream; caught non-retriable stream error, rethrowing as-is”,“metadata”:{“caughtError”:“ConnectError: [resource_exhausted] Error”}}
2026-03-13T07:40:14.113
logger {“message”:“[NAL client stall detector] Stream activity resumed after stall”,“metadata”:{“reqId”:“6af9887e-3cfb-4392-82af-83e0f23dff5b”,“stall”:{“duration_ms”:3,“model_name”:“GPT-5.4”,“disposed_ago_ms”:0,“last_server_sent_heartbeat_ago_ms”:885,“last_inbound_message_type”:“interactionUpdate:stepCompleted”,“last_outbound_message_type”:“kvClientMessage:setBlobResult”,“activities”:“[disposed] (MOST RECENT)\ndisposed\n[inbound_message]\ninteractionUpdate:stepCompleted\nconversationCheckpointUpdate\n[outbound_write]\nkvClientMessage:setBlobResult\n[inbound_message]\nkvServerMessage\nconversationCheckpointUpdate\n[outbound_write]\nkvClientMessage:setBlobResult (x2)\n[inbound_message]\nkvServerMessage (x2)\n[outbound_write]\nkvClientMessage:setBlobResult (x4)\n[inbound_message]\nkvServerMessage (x4)”}}}
2026-03-13T07:40:14.114
logger {“message”:“[AGENT_ERROR_DIAGNOSTICS] requestId=6af9887e-3cfb-4392-82af-83e0f23dff5b originalRequestId=6af9887e-3cfb-4392-82af-83e0f23dff5b decision=THROW k”,“metadata”:{“decision”:“THROW k”,“willRetry”:false,“enableAgentRetries”:true,“endlessRetries”:false,“isRunningInTest”:false,“stallAborted”:false,“serverErrorRetries”:0,“transportErrorRetries”:0,“attempt”:0,“requestId”:“6af9887e-3cfb-4392-82af-83e0f23dff5b”,“originalRequestId”:“6af9887e-3cfb-4392-82af-83e0f23dff5b”}}
2026-03-13T07:40:14.114
logger {“message”:“[nal_agent_retries] Error not retryable”,“metadata”:{“attempt”:0,“actionCase”:“userMessageAction”,“error”:{“cause”:{“name”:“ConnectError”,“rawMessage”:“Error”,“code”:8,“metadata”:{},“details”:[{“type”:“aiserver.v1.ErrorDetails”,“value”:{“0”:8,“1”:57,“2”:18,“3”:130,“4”:1,“5”:10,“6”:14,“7”:80,“8”:114,“9”:111,“10”:118,“11”:105,“12”:100,“13”:101,“14”:114,“15”:32,“16”:69,“17”:114,“18”:114,“19”:111,“20”:114,“21”:18,“22”:110,“23”:87,“24”:101,“25”:39,“26”:114,“27”:101,“28”:32,“29”:104,“30”:97,“31”:118,“32”:105,“33”:110,“34”:103,“35”:32,“36”:116,“37”:114,“38”:111,“39”:117,“40”:98,“41”:108,“42”:101,“43”:32,“44”:99,“45”:111,“46”:110,“47”:110,“48”:101,“49”:99,“50”:116,“51”:105,“52”:110,“53”:103,“54”:32,“55”:116,“56”:111,“57”:32,“58”:116,“59”:104,“60”:101,“61”:32,“62”:109,“63”:111,“64”:100,“65”:101,“66”:108,“67”:32,“68”:112,“69”:114,“70”:111,“71”:118,“72”:105,“73”:100,“74”:101,“75”:114,“76”:46,“77”:32,“78”:84,“79”:104,“80”:105,“81”:115,“82”:32,“83”:109,“84”:105,“85”:103,“86”:104,“87”:116,“88”:32,“89”:98,“90”:101,“91”:32,“92”:116,“93”:101,“94”:109,“95”:112,“96”:111,“97”:114,“98”:97,“99”:114,“100”:121,“101”:32,“102”:45,“103”:32,“104”:112,“105”:108,“106”:101,“107”:97,“108”:115,“109”:101,“110”:32,“111”:116,“112”:114,“113”:121,“114”:32,“115”:97,“116”:103,“117”:97,“118”:105,“119”:110,“120”:32,“121”:105,“122”:110,“123”:32,“124”:97,“125”:32,“126”:109,“127”:111,“128”:109,“129”:101,“130”:110,“131”:116,“132”:46,“133”:32,“134”:0,“135”:24,“136”:1},“debug”:{“error”:“ERROR_PROVIDER_ERROR”,“details”:{“title”:“Provider Error”,“detail”:“We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.”,“isRetryable”:false},“isExpected”:true}}]},“requestId”:“6af9887e-3cfb-4392-82af-83e0f23dff5b”,“displayInfo”:{“title”:“Provider Error”,“detail”:“We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.”,“isRetryable”:false,“connectCode”:8,“errorCode”:57,“errorDetails”:{“error”:“ERROR_PROVIDER_ERROR”,“details”:{“title”:“Provider Error”,“detail”:“We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.”,“isRetryable”:false,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}},“name”:“k”},“serverErrorRetries”:0,“transportErrorRetries”:0}}
2026-03-13T07:40:14.114
analytics.track {“eventName”:“cli.request.completed”,“props”:{“end_reason”:“error”,“lines_changed”:0,“files_changed”:0,“todos_completed”:0,“tools_used”:0,“time_elapsed_ms”:0,“estimated_tokens”:0}}
2026-03-13T07:40:14.115
structured-log.info {“key”:“agent_cli”,“message”:“agent_cli.turn.outcome”,“metadata”:{“turn_type”:“new”,“bring_your_own_key”:“false”,“request_id”:“6af9887e-3cfb-4392-82af-83e0f23dff5b”,“trace_id”:“c88a3631f0dfd2266e26a8acbe767a41”,“span_id”:“fb70e16f2b6f24a3”,“outcome”:“error”,“error_type”:“non_retriable”,“error_code”:“PROVIDER_ERROR”,“error_text”:“Provider Error We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.”,“grpc_code”:“resource_exhausted”,“hit_simulated_thinking_threshold”:“false”}}
2026-03-13T07:40:14.115
stopUiConversation: hasReceivedCheckpoint: true, numTurns: 0, abortedState.completedTurns.length: 1, abortedState.pendingTurn: false
2026-03-13T07:40:14.115
unhandledRejection: Provider Error We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment. {“stack”:“k: Provider Error We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.\n at /Users/[username]/.local/share/cursor-agent/versions/2026.03.11-[redacted]/index.js:2:3070650\n at T.requestId (/Users/[username]/.local/share/cursor-agent/versions/2026.03.11-[redacted]/index.js:2:3070748)\n at ce (/Users/[username]/.local/share/cursor-agent/versions/2026.03.11-[redacted]/index.js:2:3071013)\n at ue.run (/Users/[username]/.local/share/cursor-agent/versions/2026.03.11-[redacted]/index.js:2:3073940)”,“error”:{“cause”:{“name”:“ConnectError”,“rawMessage”:“Error”,“code”:8,“metadata”:{},“details”:[{“type”:“aiserver.v1.ErrorDetails”,“value”:{“0”:8,“1”:57,“2”:18,“3”:130,“4”:1,“5”:10,“6”:14,“7”:80,“8”:114,“9”:111,“10”:118,“11”:105,“12”:100,“13”:101,“14”:114,“15”:32,“16”:69,“17”:114,“18”:114,“19”:111,“20”:114,“21”:18,“22”:110,“23”:87,“24”:101,“25”:39,“26”:114,“27”:101,“28”:32,“29”:104,“30”:97,“31”:118,“32”:105,“33”:110,“34”:103,“35”:32,“36”:116,“37”:114,“38”:111,“39”:117,“40”:98,“41”:108,“42”:101,“43”:32,“44”:99,“45”:111,“46”:110,“47”:110,“48”:101,“49”:99,“50”:116,“51”:105,“52”:110,“53”:103,“54”:32,“55”:116,“56”:111,“57”:32,“58”:116,“59”:104,“60”:101,“61”:32,“62”:109,“63”:111,“64”:100,“65”:101,“66”:108,“67”:32,“68”:112,“69”:114,“70”:111,“71”:118,“72”:105,“73”:100,“74”:101,“75”:114,“76”:46,“77”:32,“78”:84,“79”:104,“80”:105,“81”:115,“82”:32,“83”:109,“84”:105,“85”:103,“86”:104,“87”:116,“88”:32,“89”:98,“90”:101,“91”:32,“92”:116,“93”:101,“94”:109,“95”:112,“96”:111,“97”:114,“98”:97,“99”:114,“100”:121,“101”:32,“102”:45,“103”:32,“104”:112,“105”:108,“106”:101,“107”:97,“108”:115,“109”:101,“110”:32,“111”:116,“112”:114,“113”:121,“114”:32,“115”:97,“116”:103,“117”:97,“118”:105,“119”:110,“120”:32,“121”:105,“122”:110,“123”:32,“124”:97,“125”:32,“126”:109,“127”:111,“128”:109,“129”:101,“130”:110,“131”:116,“132”:46,“133”:32,“134”:0,“135”:24,“136”:1},“debug”:{“error”:“ERROR_PROVIDER_ERROR”,“details”:{“title”:“Provider Error”,“detail”:“We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.”,“isRetryable”:false},“isExpected”:true}}]},“requestId”:“6af9887e-3cfb-4392-82af-83e0f23dff5b”,“displayInfo”:{“title”:“Provider Error”,“detail”:“We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.”,“isRetryable”:false,“connectCode”:8,“errorCode”:57,“errorDetails”:{“error”:“ERROR_PROVIDER_ERROR”,“details”:{“title”:“Provider Error”,“detail”:“We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.”,“isRetryable”:false,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}},“name”:“k”}}
2026-03-13T07:40:14.137
otel.error hydrateSummaryArchives c88a3631f0dfd2266e26a8acbe767a41-df0c6d0977433867 - You can only call end() on a span once.
2026-03-13T07:40:15.940
structured-log.flush.success {“count”:1}
Steps to Reproduce
In terminal run:
agent --debug --model sonnet-4.6 “Say hello”
Expected Behavior
Models should generate a response.
Screenshots / Screen Recordings
Operating System
MacOS
Version Information
Cursor Agent v2026.03.11-6dfa30c
For AI issues: which model did you use?
All Claude and OpenAI models
Does this stop you from using Cursor
Yes - Cursor is unusable
