Repository navigation
Description
Summary
The Cursor provider intermittently changes from available to sign-in-required, even though the Cursor CLI session is still authenticated. It can recover to available without any sign-in action.
This appears to conflate a provider initialization/model-discovery failure with an authentication failure.
Environment
- OpenBot: 0.52.1
- Cursor Agent CLI:
2026.10.22-27dcf5f - OS: macOS / Darwin 25.4.0
Reproduction
- Connect the Cursor provider and verify it is
available. - Leave the provider idle or restart/reconnect it later.
- Observe that OpenBot sometimes reports:
Sign in with Cursor or set CURSOR_API_KEY to use Cursor. - Wait or retry without signing in.
- The provider becomes
availableagain and lists models successfully.
Observed logs
2026-10-28T05:32:25.172Z ... {\"provider\":\"cursor\",\"from\":\"available\",\"to\":\"sign-in-required\",\"version\":\"2026.10.22-27dcf5f\",\"message\":\"Sign in with Cursor or set CURSOR_API_KEY to use Cursor.\"}
2026-10-28T05:32:42.197Z ... {\"provider\":\"cursor\",\"count\":11,\"durationMs\":987}
2026-10-28T05:32:42.200Z ... {\"provider\":\"cursor\",\"from\":\"sign-in-required\",\"to\":\"available\",\"version\":\"2026.10.22-27dcf5f\",\"message\":null}
2026-10-28T06:40:22.226Z ... {\"provider\":\"cursor\",\"from\":\"available\",\"to\":\"sign-in-required\",\"version\":\"2026.10.22-27dcf5f\",\"message\":\"Sign in with Cursor or set CURSOR_API_KEY to use Cursor.\"}
2026-10-28T06:47:33.677Z WARN ... {\"provider\":\"cursor\",\"stage\":\"initialize\",\"durationMs\":180331,\"timeout\":true,\"message\":\"Cursor did not list its models within 180 s. The computer may be busy.\"}
2026-10-28T06:50:33.942Z ... {\"provider\":\"cursor\",\"count\":32,\"durationMs\":2424}
2026-10-28T06:50:33.943Z ... {\"provider\":\"cursor\",\"from\":\"sign-in-required\",\"to\":\"available\",\"version\":\"2026.10.22-27dcf5f\",\"message\":null}
The first occurrence recovered in 17 seconds with no authentication action. The second includes an explicit 180-second model-list timeout and later recovered without signing in. The provider log contains no 401, 403, token expired, unauthorized, or refresh-token rejection around these events. cursor-agent status still reports the account as logged in.
OpenBot also stops idle provider CLIs, so the issue may be related to provider lifecycle/reinitialization:
2026-10-28T04:45:04.896Z ... Stopped an idle provider CLI. {\"provider\":\"cursor\"}
Expected behavior
- Report
sign-in-requiredonly when authentication is confirmed to be invalid. - Show a connection/initialization timeout when model discovery fails or times out.
- Do not prompt the user to sign in again if the existing session remains valid.
Activity