Session usageCount incremented twice per request in browser‑based crawlers
Session usageCount incremented twice per request in browser‑based crawlers: a task in LegoFlow-SWE (Harbor dataset). When using PlaywrightCrawler (or any crawler that extends BrowserCrawler ), each successful request causes session.usageCount to increase by 2 instead of 1 . This makes the session…
The task
When using `PlaywrightCrawler` (or any crawler that extends `BrowserCrawler`), each successful request causes `session.usageCount` to increase by **2** instead of **1**. This makes the session hit `maxUsageCount` much earlier than intended, leading to premature session retirement and degraded crawling performance.
Part of Lego-X/LegoFlow-SWE.