@devries-cameron20 / t3code-1 / commits / 9bf349cf6b
Fork 0

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

fix(cursor): preserve internal agent errors without transport labels (#11365)

shivam committed Sep 13, 2026 at 22:35 UTC 9bf349cf6b3988dd01e2d9871b99e1be883aaa41
2 files changed +4 -1
apps/server/src/provider/acp/CursorTransportFailure.test.ts
+2
@@ -38,6 +38,8 @@ describe("CursorTransportFailure", () => {
38 "Error: ConnectError: [unauthenticated] sign in",
39 "Error: ConnectError: [permission_denied] subscription required",
40 "Error: HTTP 500 from the application being debugged",
41 + "Error: RetriableError: [internal] Failed to run step, exceeded max retries",
42 + "Error: RetriableError: [internal] Failed to run step, exceeded max retries\n at step (cli.js:1:2)",
43 ])("preserves prose, code and non-transport errors: %s", (message) => {
44 expect(failureFor([...message])).toBeUndefined();
45 });
apps/server/src/provider/acp/CursorTransportFailure.ts
+2 -1
@@ -1,6 +1,7 @@
1 const maxLineLength = 4096;
2 +// Cursor also uses RetriableError for agent-loop failures; preserve those diagnostics.
3 const transportError =
3 - /^Error: (?:RetriableError: .+|ConnectError: \[(?:unavailable|aborted|deadline_exceeded)\].*)$/;
4 + /^Error: (?:RetriableError: (?!\[internal\]).+|ConnectError: \[(?:unavailable|aborted|deadline_exceeded)\].*)$/;
5 const serverError = "Something went wrong communicating with the server. Please try again.";
6
7 interface ReplyState {