Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(cursor): read account limits for SDK browser sign-ins #24443

Closedzaydiscold(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/24443/headopened View on GitHub

Showing 2 changed files with 54 additions and 4 deletions.

x
0 of 2 viewed, 2 left
53 additions and 3 deletionspackages/provider-cursor/src/server/driver.test.tsModified
View file
@@ -3,6 +3,7 @@
import * as NodeServices from "@effect/platform-node/NodeServices";
import { expect, it } from "@effect/vitest";
import {
+ DEFAULT_SERVER_SETTINGS,
MessageId,
NodeId,
ProjectId,
@@ -21,6 +22,8 @@
import * as Stream from "effect/Stream";
import { vi } from "vite-plus/test";
import * as HttpClient from "effect/http/HttpClient";
+import * as HttpClientResponse from "effect/http/HttpClientResponse";
+import * as HostProcess from "@t3tools/shared/HostProcess";
​
import {
DEFAULT_HANDOFF_TOKEN_CAP,
@@ -102,12 +105,40 @@
instanceId: ProviderInstanceId.make("cursor-browser-persisted"),
displayName: "Personal Cursor",
enabled: true,
- environment: [{ name: "CURSOR_API_KEY", value: "", sensitive: true }],
+ // Clear inherited Cursor settings so the fixture always takes the mocked Keychain path.
+ environment: [
+ { name: "CURSOR_API_KEY", value: "", sensitive: true },
+ { name: "CURSOR_AUTH_TOKEN", value: "", sensitive: true },
+ { name: "CURSOR_API_ENDPOINT", value: "", sensitive: false },
+ { name: "AGENT_CLI_CREDENTIAL_STORE", value: "default", sensitive: false },