Skip to content

Commit 039ad23

Browse files
committed
feat: increase browser timeouts for better reliability
1 parent 28a7e4c commit 039ad23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/browser/BrowserSession.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { BrowserActionResult } from "../../shared/ExtensionMessage"
1111
import { discoverChromeHostUrl, tryChromeHostUrl } from "./browserDiscovery"
1212

1313
// Timeout constants
14-
const BROWSER_NAVIGATION_TIMEOUT = 15_000 // 15 seconds
14+
const BROWSER_NAVIGATION_TIMEOUT = 20_000 // 20 seconds
1515

1616
interface PCRStats {
1717
puppeteer: { launch: typeof launch }
@@ -256,7 +256,7 @@ export class BrowserSession {
256256

257257
// Wait for console inactivity, with a timeout
258258
await pWaitFor(() => Date.now() - lastLogTs >= 500, {
259-
timeout: 3_000,
259+
timeout: 5_000,
260260
interval: 100,
261261
}).catch(() => {})
262262

0 commit comments

Comments
 (0)