Repository navigation
improve(browser): default managed Chromium to efficient headless launches - #154607
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. |
74f3df4 to
60fb947
Compare
c18bc0a to
89730fc
Compare
60fb947 to
4968ca6
Compare
89730fc to
4428666
Compare
4968ca6 to
8dde9d3
Compare
c0baa35 to
3c64630
Compare
|
Codex review: needs real behavior proof before merge. Reviewed September 27, 2026, 2:59 AM ET / 06:59 UTC (Revision 13). ClawSweeper reviewWhat this changesThe Browser plugin makes managed Chromium headless by default, discovers full Chromium in Playwright caches, changes managed-profile launch and cleanup, and updates Doctor, documentation, and tests. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 12 items remain Keep open. Current main does not provide the requested headless default, and this maintainer-associated PR has two source-backed merge blockers. Priority: P2 Review scores
Verification
How this fits togetherThe Browser plugin turns browser configuration and profile selection into a local Chromium launch or an attachment to an external browser. Its status, Doctor, and cleanup paths report or manage the resulting browser process. flowchart LR
A[Browser configuration] --> B[Selected profile]
B --> C{Local managed browser?}
C -->|Yes| D[Choose launch mode and Chromium]
C -->|No| E[Attach to external browser]
D --> F[Browser process and profile]
F --> G[Browser actions and status]
F --> H[Stop and cleanup]
Decision needed
Why: The proposed default changes an established manual-login workflow, and source plus prior review do not show explicit acceptance of that upgrade tradeoff. Before merge
Findings
Agent review detailsSecurityNeeds attention: The new lockless-shell cleanup can act on a matching process without proving OpenClaw launched it. PR surfaceSource +366, Tests +1057, Docs +43, Generated 0. Total +1466 across 33 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep established managed profiles visible unless their owner explicitly selected headless mode, use headless launches for fresh profiles, and require live launch provenance before cross-runtime shell termination; verify Windows profile continuity and the published update path. Do we have a high-confidence way to reproduce the issue? Yes at the source level: start an existing desktop managed profile with headless omitted and it resolves to headless; a separate shell using the exact managed directory and port also satisfies the new stop path's ownership checks. This read-only review did not execute either scenario. Is this the best way to solve the issue? No. The fresh-profile launch improvement is useful, but unconditional upgrade behavior and lockless process ownership need narrower boundaries. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cd481e80875d. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (12 earlier review cycles; latest 8 shown)
|
8dde9d3 to
e195e10
Compare
3c64630 to
2247bee
Compare
Baseline-Refresh: cfeb04380368e1f3bf8b3d356edc35bdc4520869
Preserve Playwright cache aliases, hermetic installs, relative paths and native Apple-silicon selection under Rosetta. Complete the merged lifecycle cleanup and headless-source type cutover with focused frozen-dependency proof.
Baseline-Refresh: 9b9692323f05c902c8973a1d7d9d2976d512ebfd
Baseline-Refresh: 885814352a87bc9ad03b29f1de1e5d45ff855916
|
Merged via squash.
|
Related: #154341. Browser stack 7/8; follows #154508.
What Problem This Solves
Managed Chromium should start headlessly without silently switching established profiles to headless shell or missing a correctly installed full browser.
User Impact
Managed Chromium defaults to headless while preserving explicit headed overrides, externally owned workflows and existing profile ownership. Automatic Playwright-cache discovery uses full Chromium only, including native Apple-silicon installs when Node runs under Rosetta.
Explicit headless-shell paths remain a separate-profile choice on Linux/macOS; headed shell and managed Windows shell stay unsupported. Native Windows continuity is a separate final-stack proof obligation, not claimed by these unit tests.
Why This Change Was Made
Evidence
Independently reviewed signed candidate:
912203312877f1d3622097eb3b9345b1751d2f21, tree69d0c2c12ccd043762b7974dee7c0a6570478580. This integrates the reviewed correction with fixed baselinefe60f48f1715b148c34618a678b8e499d9ed4c41. Fresh review of the installed successor found no remaining findings; the SDK-boundary and generated-configuration findings are resolved. Required GitHub CI/security checks and enforced reviews remain separate landing gates.7512696385ff2c975e0eed2971f5545a5f10d5ba; boundary declarations, Browser typecheck and 26-file type-aware lint also passed in that run.cf978e36tree snapshot with frozen integrated inputs. Nine tests in three affected files, targeted help-source lint/format and whitespace checks also passed. This is new integrated-input proof, not reuse of the older generator run.cf978e36snapshot with Node 26.7.0 and fs-safe 0.26.5, required-native mode, no skips or retries. Its original scoped fault-injection exception is unchanged.The 30 non-resolution product blobs match the previously reviewed correction
bdd62126a06686877ebe712199374dbe6cc7c817; the integrated changes regenerate the configuration digest and preserve the reviewed browser help wording. Earlier cache-test formatting reuse rests on syntax/behavior equivalence, not unchanged test-blob identity. The snapshot proofs above are tree-bound; they are not fresh execution of every suite or CI on signed commit91220331. Prior-head failures are not relabeled green. CI run 38692362541 remains failed: global UI formatting, two UI lint errors, and two architecture-specific browser fixtures. Only the browser fixtures are corrected here; the unrelated UI files are unchanged. Current-head CI run 38697328760 completed successfully with all 70 jobs complete and no failures. Required native gates qualified this exact head before landing.Earlier Linux/macOS profile-continuity and launch-performance receipts remain historical evidence on their original sources. No native Windows preservation or published-updater execution is claimed here.
Earlier targeted evidence, retained at its original source
Static and original-defect phases and final suites/hash verification used the earlier frozen dependency set. The cache suite passed 22 tests in 32.565 s; cleanup passed 46 tests in 26.178 s. Both workflow aggregates were completed/cancelled, not overall green; their proof phases and later successful native lease-stop continuations do not establish current-head CI.