Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

fix(session-pool): round-robin fingerprints in SessionFactory

diegosouzapwd22564df4d72
diff --git a/open-sse/services/sessionPool/sessionFactory.ts b/open-sse/services/sessionPool/sessionFactory.ts
index ab23e17bab..39c1c2e596 100644
--- a/open-sse/services/sessionPool/sessionFactory.ts
+++ b/open-sse/services/sessionPool/sessionFactory.ts
@@ -25,7 +25,10 @@ export class SessionFactory {
* would involve Playwright browser automation.
*/
createSession(): Session {
- const fingerprint = this.rotator.random();
+ // Round-robin so each session in a warm pool gets a distinct fingerprint
+ // (a pool of look-alike sessions defeats the purpose). The rotator still
+ // exposes random() for callers that want unpredictability over time.
+ const fingerprint = this.rotator.next();
return new Session(
fingerprint,
this.config.cooldownBase,