-
Notifications
You must be signed in to change notification settings - Fork 1
feat: increase browser timeouts #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ import { BrowserActionResult } from "../../shared/ExtensionMessage" | |
| import { discoverChromeHostUrl, tryChromeHostUrl } from "./browserDiscovery" | ||
|
|
||
| // Timeout constants | ||
| const BROWSER_NAVIGATION_TIMEOUT = 15_000 // 15 seconds | ||
| const BROWSER_NAVIGATION_TIMEOUT = 20_000 // 20 seconds | ||
|
|
||
| interface PCRStats { | ||
| puppeteer: { launch: typeof launch } | ||
|
|
@@ -256,7 +256,7 @@ export class BrowserSession { | |
|
|
||
| // Wait for console inactivity, with a timeout | ||
| await pWaitFor(() => Date.now() - lastLogTs >= 500, { | ||
| timeout: 3_000, | ||
| timeout: 5_000, | ||
|
Comment on lines
258
to
+259
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2 - Potential timeout collision This console inactivity timeout is now 5s, which matches the default timeout in Consider either:
|
||
| interval: 100, | ||
| }).catch(() => {}) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2 - Missing justification for timeout values
The timeout was increased from 15s to 20s, but there's no explanation for why 20s was chosen. Consider:
Adding a comment explaining the rationale would help future maintainers understand this choice.