Skip to content

Commit 6d5cce6

Browse files
style(sessions): keep retry budget diff minimal
Remove non-essential explanatory comments from the retry-budget change and regression test. Co-authored-by: Cursor <[email protected]>
1 parent e5974c9 commit 6d5cce6

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

src/auto-reply/reply/session-init-retry-budget.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Exercises the real (non-mocked) session-accessor functions under an
2-
// induced revision-conflict burst, mirroring the retry loop in session.ts.
31
import fs from "node:fs";
42
import os from "node:os";
53
import path from "node:path";

src/auto-reply/reply/session.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,6 @@ function resolveInitSessionStateAttemptContext(
307307
};
308308
}
309309

310-
// A single retry was insufficient under bursts of rapid consecutive turns
311-
// on the same sessionKey. See the `!committed.ok` branch below.
312310
const MAX_SESSION_INIT_ATTEMPTS = 4;
313311

314312
/** Initializes or reuses the reply session state for one inbound turn. */

0 commit comments

Comments
 (0)