feat: 增强错误处理逻辑,添加 Cloudflare 风控和网络超时拦截提示

This commit is contained in:
QLHazyCoder
2026-04-18 20:54:00 +08:00
parent 82471af931
commit 609cdeaeb5
12 changed files with 440 additions and 17 deletions
+2 -2
View File
@@ -51,7 +51,7 @@ function extractFunction(name) {
return source.slice(start, end);
}
test('step 7 timeout recoverable result no longer clicks retry before asking background to rerun', async () => {
test('step 7 timeout recoverable result clicks retry before asking background to rerun', async () => {
const api = new Function(`
const logs = [];
let recoverCalls = 0;
@@ -97,7 +97,7 @@ return {
const result = await api.run();
const snapshot = api.snapshot();
assert.equal(snapshot.recoverCalls, 0);
assert.equal(snapshot.recoverCalls, 1);
assert.equal(result.step6Outcome, 'recoverable');
assert.equal(result.reason, 'login_timeout_error_page');
assert.equal(result.state, 'login_timeout_error_page');