Skip to content

Cursor provider intermittently reports sign-in-required when model discovery times out #866

Open

Description

@HoldSworder

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

  1. Connect the Cursor provider and verify it is available.
  2. Leave the provider idle or restart/reconnect it later.
  3. Observe that OpenBot sometimes reports: Sign in with Cursor or set CURSOR_API_KEY to use Cursor.
  4. Wait or retry without signing in.
  5. The provider becomes available again 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-required only 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions