Repository navigation
fix(browser): tolerate delayed startup readiness responses - #149284
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 1:17 PM ET / 17:17 UTC (Revision 2). ClawSweeper reviewWhat this changesIncrease managed-browser startup probe timeouts to tolerate delayed responses, with a regression test and troubleshooting guidance. Merge readiness✅ Ready for maintainer review The prior documentation finding is resolved, and no actionable introduced defects remain. The fix is still absent from pinned main and the latest release. Priority: P2 Review scores
Verification
How this fits togetherThe browser plugin launches managed Chrome and checks its Chrome DevTools Protocol connection before reporting startup success. Failed readiness or ownership checks trigger cleanup of the launched process. flowchart TD
A[Browser start request] --> B[Launch managed Chrome]
B --> C[Retry readiness probes]
C --> D{Ready and owned?}
D -->|Yes| E[Keep browser running]
D -->|Timeout or failure| F[Clean up launched browser]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +19, Docs +1. Total +20 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep startup tolerance in the existing readiness owner while preserving endpoint ownership checks, cleanup, and separate remote-profile timing. Do we have a high-confidence way to reproduce the issue? Yes, at the source level: repeated post-launch responses taking 750 ms exceed main's 250 ms probe limit and exhaust readiness retries. The regression models that path; no live Gateway reproduction was performed. Is this the best way to solve the issue? Yes. Adjusting the existing per-probe allowance addresses repeated premature timeouts without introducing another retry mechanism or a configuration option. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ad6939104457. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Corrected the troubleshooting sentence to describe the fixed eight-second readiness retry window and removed the retired configuration key. Verified the fixed default in the browser configuration owner and the key retirement in config validation and Doctor; formatting, diff sanity, and independent review pass. The runtime fix and its existing regression proof are unchanged. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…149284) * fix(browser): tolerate delayed startup readiness responses * docs(browser): remove retired readiness setting reference
What Problem This Solves
Fixes managed browser starts failing their readiness check when a busy Gateway delays responses beyond the short per-request deadline.
User Impact
Starting the managed browser tolerates moderate scheduling delays instead of stopping a browser that can still become ready. Individual failed probes can take longer; the existing eight-second readiness retry window, cleanup, and cancellation remain in place.
Why This Change Was Made
Raise the post-launch HTTP probe allowance from 250ms to 1.5s, which also raises the derived WebSocket stage allowance from 500ms to 2s. Increasing only the overall retry window would continue repeating the same short attempts. Document the timing behavior without changing configuration or remote-browser policy.
Evidence