Skip to content

Use Claude Code with your ChatGPT, Kimi, Cursor or Grok subscription via a local Anthropic-compatible proxy

Rust

deduplicate cursor client test run options setup

Raine Virtae815c0b34861
diff --git a/src/providers/cursor/client.test.ts b/src/providers/cursor/client.test.ts
index 95aa4e1..3afbdcf 100644
--- a/src/providers/cursor/client.test.ts
+++ b/src/providers/cursor/client.test.ts
@@ -346,11 +346,7 @@ describe("Cursor protocol client", () => {
it("closes the Cursor run stream when the downstream consumer cancels", async () => {
let closeCalls = 0;
const upstream = await runCursorAgent({
- prompt: "hello",
- mode: "AGENT_MODE_AGENT",
- conversationId: "conversation",
- model: { modelId: "composer-2.5" },
- auth: { accessToken: "token", source: "test" },
+ ...buildRunOptions(),
ctx: fakeCursorCtx(),
proto: fakeProto,
openRunStream: async () => ({
@@ -386,11 +382,7 @@ describe("Cursor protocol client", () => {
try {
await runCursorAgent({
- prompt: "hello",
- mode: "AGENT_MODE_AGENT",
- conversationId: "conversation",
- model: { modelId: "composer-2.5" },
- auth: { accessToken: "token", source: "test" },
+ ...buildRunOptions(),
ctx: fakeCursorCtx(),
proto: fakeProto,
openRunStream: async () => ({