Repository navigation
Conversation
|
A note on the red checks here: none of them come from this diff. Apart from the authoring runner, its tests and the changelog, the diff only changes version numbers.
Happy to rebase once |
|
I am reviewing #2259, #2258, #2255, #2167 and #2149. Please state the actual authoring AI vendor for these changes, or confirm they were written without an AI agent. This lets us assign the required independent review correctly. The short "From: Grok" comments do not identify whether Grok authored or reviewed the code. I am checking the current source and tests in parallel; this question does not replace technical review. |
|
Codex source/test review of current head3b4d2799b25f6954c74e17e153bf1fe6fc0b6943 found no P1/P2 issue in the browser-ownership change. All38 authoring-runner tests passed independently in a fresh worktree through the CPU-slot gate. I also ran real headless Chromium with synthetic requests fulfilled or aborted locally: the launch carries both keychain-safe flags, successful close disconnects the owned browser, repeated close is harmless, a real navigation error closes the started browser, and passing an attached Page to This PR still conflicts with current main, and its0.30.2 preparation is older than current0.30.6. Please preserve the lifecycle fix while resolving that release preparation against current main and the repository's release-intent policy. Do not weaken the release check or trigger an unapproved release. An actual authoring-vendor declaration is also needed, as requested above, before this can receive the required cross-vendor verdict. No author-branch change was made by this review. No per-app engine code: generic owned-resource lifecycle only. Fix the class: every setup-failure/terminal-stop path distinguishes owned from attached resources. Held-out evidence: real headless browser lifecycle plus synthetic error/control cases; no app login or native Keychain result. Durable item: an isolated local authoring session with clear resource ownership. |
|
Correction to my earlier note: the two-line comments on #2255, #2167 and #2149 are valid author declarations naming Grok. The gate was incorrectly ignoring declarations from contributor accounts; #2316 fixes that, and #2255/#2149 are now merged after independent review. The missing authorship declaration is only for #2258 and #2259. Please state the actual authoring vendor, or Human if no AI agent authored the change, with the current full head SHA on each PR. No code change is needed for that declaration. |
abrichr
left a comment
There was a problem hiding this comment.
Codex requests changes at e5f74671d44cadd7be902cc35ba0de85adb5e809. This head includes main at 3866ab33. The diff now contains only the authoring runner and its tests.
P1. Stop can report success while recording starts. Desktop launches the browser on the authoring poll thread. If the operator presses Stop during launch, operator_stop() reports halted=True before the runner has registered its browser. When launch finishes, _start_record() installs the browser and starts recording. I observed recording=True and the owned browser still open after Stop returned in a two-thread test with an in-memory browser. Please make a pending start cancellable and close a browser returned after cancellation on its owner thread. Add a regression test that checks the final recording state and browser cleanup. Affected code
The Desktop release-intent check also fails. I ran it against this base and head. It reports that the fix retains 0.30.6 and requires at least 0.30.7 on this base. Please coordinate the applicable bump with the Desktop release owner and update the PR description, which still lists 0.30.2. The authoring declaration requested earlier is still outstanding. Failed CI job
This finding concerns the lifecycle of a Desktop-owned resource and applies across websites. The test used synthetic session state and covered stopping during startup. Native Keychain behavior remains unverified.
|
From: Claude (Anthropic) |
Independent adversarial review: REQUEST CHANGESFrom: Gemini This PR is protected and declared as Claude-authored, so the review had to come from another vendor. Codex could not start because of a local config error, so Gemini (gemini-3.1-pro-preview) reviewed it instead. Gemini got the diff against What Gemini checked. The browser-ownership change itself holds up. Every lifecycle claim in the PR body is backed by code and tests:
The Earlier findings (maintainer-run Codex review at 3b4d279):
Blockers
No real-Chromium or macOS Keychain test was run as part of this review. The maintainer's earlier headless-Chromium lifecycle check applies to the older head. |
e5f7467 to
b43cd7a
Compare
|
Address review comments for head b43cd7a7efd5656501309d94943dcfa0a3838634:
From: Claude (Anthropic) |
Independent adversarial review: REQUEST CHANGESFrom: Codex Stop during browser launch can still be followed by a recording. The contributor has addressed the version and description findings. The changed Python, npm, Cargo and Tauri manifests and locks agree on 0.30.7, the changelog has the matching entry, and the PR summary now names it. I checked source and blob identity on this head. I did not rerun native Chromium or macOS Keychain tests. GitHub attributes the two rebased commits to @yunusarda-sudo. The contributor’s latest Claude attribution names a different SHA beginning |
b43cd7a to
6413dba
Compare
|
From: Claude (Anthropic) |
Independent adversarial review: APPROVEFrom: Gemini Independent cross-vendor adversarial review of Findings & fail-closed verification
Generality gate
|
6413dba to
d2a4789
Compare
|
Rebased onto current The earlier 0.31.1 version bump is dropped so this PR does not fight later releases. The fix is noted under Unreleased in the desktop changelog.
|
Independent adversarial review: APPROVEFrom: Claude The head matches. I read the diff to authoring_runner.py, the new tests and the CHANGELOG entry. I did not run the tests because host load was above the review limit, so this review is static. Correctness. The launcher now returns OwnedChromium instead of a page. The only consumer of self._playwright is _require_empty_cookies, which falls back to the context attribute, so OwnedChromium.context.cookies() is still checked. An injected launcher that returns a page still passes the same check. The https:// check and the pre-navigation empty-cookie check are unchanged. A cookie-check failure still raises AuthoringError and tears the launch down, so a non-empty profile cannot read as a clean start. Teardown and races. Every launch-time failure path closes what was started (try/except BaseException around launch, context, cookies and goto). The start-generation counter covers a halt or stop that arrives while the browser is launching or while the recorder is being created: the in-flight start returns recording False and closes its own browser, and never reports success. The halt path that finds an actuation in progress leaves the browser open and returns RECONCILIATION_REQUIRED, as before. A browser the runner did not launch is never closed, because _close_owned_browser closes only OwnedChromium instances. Keychain and credentials. --use-mock-keychain and --password-store=basic are passed on Desktop's own launch, so Chromium does not touch the login keychain. headless defaults to False, so production behaviour is unchanged. The diff adds no secrets, tokens or credential handling, and no app names in engine code. Non-blocking notes (P2):
No protected path in .github/agent-safety-manifest.json is touched, and the author is not on a claude/* branch, so no cross-vendor review requirement applies on that basis. |
d2a4789 to
63ec08e
Compare
Independent adversarial review: APPROVEFrom: Gemini Independent diff audit of
Merge readiness: CI is 100% green and |
Stale review superseded by exact-head Gemini APPROVE at 63ec08e with all CI green.
Independent adversarial review: APPROVEFrom: Gemini Delta re-review over
|
Independent adversarial review: APPROVEFrom: Claude This is a delta review. It covers only the new commit, fee19ef:
This holds only if CI passes, in particular |
Independent adversarial review: APPROVEFrom: Claude This is a delta review. It covers only commit 4c513de, a change to
This approval holds only if CI passes, in particular |
…it owns Signed-off-by: Yunus Arda Güney <64425746+yunusarda-sudo@users.noreply.github.com>
The fix now sits on current main (0.31.3). The earlier 0.31.1 version bump is dropped so the PR does not fight later releases.
4c513de to
370c8f4
Compare
The authoring Chromium fix ships in this pull request, and 0.32.1 already released the openadapt-types 0.24.2 pin. prepare_release.py bumps the patch version so the desktop release-intent check can publish it.
Independent adversarial review: APPROVEFrom: Claude This is a delta review since my APPROVE at 4c513de. The branch was rebased onto main, not merged. Its own commits were recreated as b32dc24 (the authoring Chromium fix), 370c8f4 (the Unreleased changelog note) and 26a9e4e (the 0.32.2 bump).
This approval holds if CI passes. Merging releases Desktop 0.32.2 under the standing release OK. |
What kind of change does this PR introduce?
Bug fix (Desktop authoring).
Summary
Closes #2218
--use-mock-keychainand--password-store=basic, defined in Desktop (OWNED_CHROMIUM_ARGS), so it doesn't depend on a newer Flow.launch_empty_playwright_chromiumreturns anOwnedChromiumthat holds the Playwright driver, browser, context and page.close()closes context, then browser, then stops the driver; it is idempotent and keeps going if one close fails.stop_recordand a completedhaltclose the owned browser. A paused session keeps it. A halt during an uncertain actuation leaves it alone, as before. A browser the runner didn't launch (an injected/attached one) is never closed.https://target check and the pre-navigation empty-cookie check are unchanged.scripts/prepare_release.py.The developer-tool inventory in the issue is left for follow-up PRs, as the issue allows.
How tested: new synthetic tests in
tests/test_engine/test_authoring_runner.pyuse a fakesync_playwrightdriver, launched headless. They cover the launch flags, teardown order, failure at launch, navigation and cookies, a failing close, stop, halt, a paused session, setup failure after launch, and an attached browser. 38/38 authoring runner tests pass.check_release_consistency.pypasses andcheck_release_intent.pypasses.Not tested: a real Chromium launch on macOS (no keychain host here).
Checklist