Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
Cursor CLI intermittently reports Error: Authentication error during previously functioning interactive sessions.
The error can occur after as little as 1–2 hours or after an overnight session (less than 12 hours old).
The CLI remains logged in, and new agent processes authenticate successfully.
Steps to Reproduce
- Start an interactive Cursor CLI session using agent.
- Work normally for several hours, potentially leaving the session idle overnight.
- The existing session eventually reports Error: Authentication error.
- Run agent status in a separate terminal — authentication is valid.
- Run agent -p “Reply with exactly OK” — succeeds.
- Resume the failed conversation using agent --resume= — succeeds immediately.
Expected Behavior
Long-running interactive sessions should maintain or refresh authentication automatically without requiring a process restart.
Operating System
MacOS
Version Information
Product: Cursor CLI
Operating system: macOS, Apple Silicon (M4)
CLI version: 2026.10.22-27dcf5f
Date: 27 October 2026
Additional Information
Actual behaviour
The existing interactive process loses usable authentication even though the user remains logged in and new processes authenticate successfully.
Diagnostics
agent status: Logged in successfully
agent -p “Reply with exactly OK”: Returns OK
agent update: Already up to date
No CURSOR_ environment variables present
No logout, credential deletion or reinstallation required
Resuming the same conversation in a new CLI process restores functionality
Suspected cause
Possible stale authentication state or failed token refresh within a long-running CLI process.
Impact
Interrupts development sessions and requires manually restarting the CLI process. Work can resume, but the failure is disruptive and potentially affects unattended agent workflows.
Additional information
Similar symptoms have been reported in earlier Cursor CLI/ACP authentication issues.
Reproducibility: Intermittent, observed multiple times.
Workaround: Restart CLI and resume the existing session.
About Cursor CLI
CLI Version 2026.10.22-27dcf5f
Latest 2026.10.22-27dcf5f (up to date)
Model Auto
Subscription Tier Ultra
OS Darwin (arm64)
Terminal iterm2
Shell zsh
Does this stop you from using Cursor
No - Cursor works, but with this issue
