feat: 集成 openclaw-zero-token 反检测策略(Profile装饰、干净退出欺骗、AIMD反封延迟)
This commit is contained in:
@@ -348,6 +348,14 @@ close 参数:
|
||||
emit('progress', { step: 'connect', message: `Continuing session: ${sessionId} (mode: ${mode})` });
|
||||
// Don't navigate — stay on the current chat page for multi-round
|
||||
continuedSession = true;
|
||||
|
||||
// AIMD anti-ban delay: break fixed-interval pattern between successive requests
|
||||
const baseDelay = parseInt(process.env.GEMINI_BASE_DELAY, 10) || 15;
|
||||
const maxDelay = parseInt(process.env.GEMINI_MAX_DELAY, 10) || 120;
|
||||
const jitter = Math.random() * 5;
|
||||
const delaySec = Math.min(maxDelay, baseDelay * 0.7 + jitter);
|
||||
emit('progress', { step: 'anti-ban', message: `AIMD delay ${delaySec.toFixed(1)}s (breaking fixed-interval pattern)` });
|
||||
await sleep(delaySec * 1000);
|
||||
} else if (args.chatUrl) {
|
||||
emit('progress', { step: 'navigate', message: `Navigating to chat URL: ${args.chatUrl}` });
|
||||
await page.goto(args.chatUrl, { waitUntil: 'domcontentloaded', timeout: 60000 });
|
||||
|
||||
Reference in New Issue
Block a user