Authentication error in IDE

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Some time ago, I installed the CLI (“agent” cmd), and since then I’ve been having quite a serious authentication issue.

When I open Cursor, I have to log out and then log back in. If I open a new window, I have to do it again for the sidebar to work properly.

The same thing happens when I load a different project in the same window - I have to log in again.

Has anyone else experienced this issue?

Steps to Reproduce

  1. Install the “Agent”.
  2. Open the Cursor application.
  3. Check if the sidebar communication works - if it does, proceed to step 4.
  4. Switch the project / open a new folder (File => Open => select folder), then test the sidebar.
  5. Open a new Cursor window, select a folder, and see if the sidebar works.

Expected Behavior

User session should be shared in each window.

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

IDE:
Version: 2.5.0-pre.16.patch.1
VSCode Version: 1.105.1
Commit: 6a660d2ce321a7b8cb168c733bb17a388c2b8660
Date: 2026-01-29T10:08:42.054Z
Build Type: Stable
Release Track: Nightly
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.2.0

CLI:
CLI Version 2026.01.28-fd13201
OS darwin (arm64)
Terminal apple-terminal
Shell zsh

For AI issues: add Request ID with privacy disabled

Request ID: c3c3029d-7185-425e-8bff-a3e91a1e8f82
{“error”:“ERROR_NOT_LOGGED_IN”,“details”:{“title”:“Authentication error”,“detail”:“If you are logged in, try logging out and back in.”,“isRetryable”:false,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
Authentication error If you are logged in, try logging out and back in.
ZYe: Authentication error If you are logged in, try logging out and back in.
at JXf (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:36357:38408)
at VXf (vscode-file://vscode-…

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the detailed report.

We recently fixed a similar sign-in issue where sessions weren’t saved between windows. Since you’re on nightly 2.5.0-pre.16.patch.1, the fix might not have made it into that build yet.

Please try this:

  1. Update the nightly build: Help > Check for Updates. There may already be a newer nightly with the fix.
  2. Do a full auth reset:
    • Close all Cursor windows
    • Open Keychain Access (Spotlight > “Keychain Access”)
    • Search for “cursor” and delete all related entries
    • Reopen Cursor and sign in again

If that doesn’t help, please switch to the stable channel for now (Cursor Settings > Beta > Stable) to see if the issue also happens there.

Let me know how it goes. If it still happens after these steps, I’ll need the Dev Tools console logs for deeper debugging.

Sure, I’ll test it and try to give feedback as soon as possible.

Reload Window Helps, but it still may happen and “block” the agent again in sometime, happens randomly and regardless of network connection used (switching networks does not help, any of them works after Cursor restart)

1 Like