Skip to content

Commit 58fb9e0

Browse files
PR Batch Testerclaude
andcommitted
test(provider-cursor): keep only the no-progress resume cases that matter
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent ebcf129 commit 58fb9e0

1 file changed

Lines changed: 0 additions & 41 deletions

File tree

‎packages/provider-cursor/src/server/adapter.test.ts‎

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -272,22 +272,6 @@ describe("CursorAdapterV2", () => {
272272
}),
273273
failure: { class: "transport_error", message: "Provider turn failed." },
274274
},
275-
{
276-
reason: "an error Cursor's run ended with after the turn ended",
277-
updates: [
278-
{ type: "text-delta", text: "The answer." },
279-
{ type: "turn-ended" },
280-
] satisfies ReadonlyArray<InteractionUpdate>,
281-
wait: Effect.succeed({
282-
id: "native-cursor-run",
283-
requestId: "native-request",
284-
status: "error" as const,
285-
error: { message: "Checkpoint persistence failed" },
286-
model: { id: "claude-fable-5" },
287-
durationMs: 1,
288-
}),
289-
failure: { class: "provider_error", message: "Checkpoint persistence failed" },
290-
},
291275
{
292276
reason: "no failure when Cursor's resume after the turn ended made no progress",
293277
// Cursor's SDK resumed from an older checkpoint after the answer was
@@ -328,31 +312,6 @@ describe("CursorAdapterV2", () => {
328312
message: "Agent turn stopped after repeated resume attempts made no progress",
329313
},
330314
},
331-
{
332-
reason: "the error a continuation's tool call after the turn ended stopped with",
333-
updates: [
334-
{ type: "text-delta", text: "The answer." },
335-
{ type: "turn-ended" },
336-
{
337-
type: "partial-tool-call",
338-
modelCallId: "native-model-call",
339-
callId: "read-file",
340-
toolCall: { type: "read", args: { path: "math.ts" } },
341-
},
342-
] satisfies ReadonlyArray<InteractionUpdate>,
343-
wait: Effect.succeed({
344-
id: "native-cursor-run",
345-
requestId: "native-request",
346-
status: "error" as const,
347-
error: { message: "Agent turn stopped after repeated resume attempts made no progress" },
348-
model: { id: "claude-fable-5" },
349-
durationMs: 1,
350-
}),
351-
failure: {
352-
class: "provider_error",
353-
message: "Agent turn stopped after repeated resume attempts made no progress",
354-
},
355-
},
356315
{
357316
reason: "no answer from a resume after the turn ended that made no progress",
358317
updates: [{ type: "turn-ended" }] satisfies ReadonlyArray<InteractionUpdate>,

0 commit comments

Comments
 (0)