@devries-cameron20 / t3code Mirror · read-only / commits / 77c9e70555
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 13:30 UTC

fix(cursor): preserve recognized transport failure diagnostics (#30631)

Co-authored-by: Trevor Edwards <9443483+trevoedwards@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>

Trevor committed Nov 14, 2026 at 16:36 UTC 77c9e705559617b33ddc09d142b1d904ad1af8b7
2 files changed +5 -2
packages/provider-cursor/src/server/adapter.test.ts
+4 -1
@@ -381,7 +381,10 @@ describe("CursorAdapterV2", () => {
381 model: { id: "claude-fable-5" },
382 durationMs: 1,
383 }),
384 - failure: { class: "transport_error", message: "Provider turn failed." },
384 + failure: {
385 + class: "transport_error",
386 + message: "Error: RetriableError: WritableIterable is closed",
387 + },
388 },
389 {
390 reason: "no failure when Cursor's resume after the turn ended made no progress",
packages/provider-cursor/src/server/adapter.ts
+1 -1
@@ -2696,7 +2696,7 @@ export const makeCursorAdapterV2 = Effect.fn("makeCursorAdapterV2")(function* (
2696 : "provider_error",
2697 })
2698 : makeProviderFailure({
2699 - cause: transportFailure,
2699 + message: transportFailure,
2700 class: "transport_error",
2701 }),
2702 }