Cursor AI Connection Bug Report
Issue Description
I’m consistently experiencing connection errors when using Claude 3.7 Sonnet in Cursor. The console shows numerous connection errors, with “Error connecting to anthropic” messages appearing in the UI.
- Resume button: Does not work when connection fails
- Try Again button: Functions, but erases the most recent message
- Frequency: Occurs approximately every 10-20 messages
- Workarounds: Sometimes requires creating a new chat or restarting Cursor
Error Details
Console shows multiple recurring errors:
[composer] Error in AI response: ConnectError: [unavailable] Error
[composer] Failed to get complete AI response
[Extension Host] (node:89124) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 data listeners added to [TLSSocket]. MaxListeners is 10.
Error checking file existence: Error: Unable to resolve filesystem provider with relative file path 'webview-panel:webview-panel/webview-4bcf102c-877b-42d2-b828-f24e2a94496d'
System Information
Cursor:
- Version: 0.46.4 (Universal)
- VSCode Version: 1.96.2
- Commit: db71624816f6d52f6e54f47c37cdc7df23e22620
- Date: 2025-02-25T07:25:26.412Z
- Electron: 32.2.6
- Chromium: 128.0.6613.186
- Node.js: 20.18.1
- V8: 12.8.374.38-electron.0
- OS: Darwin arm64 24.3.0
Machine:
- MacBook Air 15-Inch, M2, 2023
- Chip: Apple M2
- Memory: 8 GB
- OS: macOS Sequoia 15.3.1
Additional Information
Same issue occurs with Claude 3.7 Sonnet. I can still use Cursor most of the time, but these connection errors are frequent and disruptive.
Screenshots attached showing console errors and UI error message